diff --git a/packages/google-cloud-dataform/README.md b/packages/google-cloud-dataform/README.md index 9ce97ad7b4c..3c7b2b3295d 100644 --- a/packages/google-cloud-dataform/README.md +++ b/packages/google-cloud-dataform/README.md @@ -99,25 +99,36 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Dataform.update_repository | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1alpha2/dataform.update_repository.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1alpha2/dataform.update_repository.js,packages/google-cloud-dataform/samples/README.md) | | Dataform.write_file | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1alpha2/dataform.write_file.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1alpha2/dataform.write_file.js,packages/google-cloud-dataform/samples/README.md) | | Dataform.cancel_workflow_invocation | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.cancel_workflow_invocation.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.cancel_workflow_invocation.js,packages/google-cloud-dataform/samples/README.md) | +| Dataform.commit_repository_changes | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.commit_repository_changes.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.commit_repository_changes.js,packages/google-cloud-dataform/samples/README.md) | | Dataform.commit_workspace_changes | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.commit_workspace_changes.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.commit_workspace_changes.js,packages/google-cloud-dataform/samples/README.md) | +| Dataform.compute_repository_access_token_status | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.compute_repository_access_token_status.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.compute_repository_access_token_status.js,packages/google-cloud-dataform/samples/README.md) | | Dataform.create_compilation_result | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.create_compilation_result.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.create_compilation_result.js,packages/google-cloud-dataform/samples/README.md) | +| Dataform.create_release_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.create_release_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.create_release_config.js,packages/google-cloud-dataform/samples/README.md) | | Dataform.create_repository | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.create_repository.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.create_repository.js,packages/google-cloud-dataform/samples/README.md) | +| Dataform.create_workflow_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.create_workflow_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.create_workflow_config.js,packages/google-cloud-dataform/samples/README.md) | | Dataform.create_workflow_invocation | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.create_workflow_invocation.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.create_workflow_invocation.js,packages/google-cloud-dataform/samples/README.md) | | Dataform.create_workspace | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.create_workspace.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.create_workspace.js,packages/google-cloud-dataform/samples/README.md) | +| Dataform.delete_release_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.delete_release_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.delete_release_config.js,packages/google-cloud-dataform/samples/README.md) | | Dataform.delete_repository | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.delete_repository.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.delete_repository.js,packages/google-cloud-dataform/samples/README.md) | +| Dataform.delete_workflow_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.delete_workflow_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.delete_workflow_config.js,packages/google-cloud-dataform/samples/README.md) | | Dataform.delete_workflow_invocation | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.delete_workflow_invocation.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.delete_workflow_invocation.js,packages/google-cloud-dataform/samples/README.md) | | Dataform.delete_workspace | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.delete_workspace.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.delete_workspace.js,packages/google-cloud-dataform/samples/README.md) | | Dataform.fetch_file_diff | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.fetch_file_diff.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.fetch_file_diff.js,packages/google-cloud-dataform/samples/README.md) | | Dataform.fetch_file_git_statuses | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.fetch_file_git_statuses.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.fetch_file_git_statuses.js,packages/google-cloud-dataform/samples/README.md) | | Dataform.fetch_git_ahead_behind | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.fetch_git_ahead_behind.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.fetch_git_ahead_behind.js,packages/google-cloud-dataform/samples/README.md) | | Dataform.fetch_remote_branches | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.fetch_remote_branches.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.fetch_remote_branches.js,packages/google-cloud-dataform/samples/README.md) | +| Dataform.fetch_repository_history | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.fetch_repository_history.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.fetch_repository_history.js,packages/google-cloud-dataform/samples/README.md) | | Dataform.get_compilation_result | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.get_compilation_result.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.get_compilation_result.js,packages/google-cloud-dataform/samples/README.md) | +| Dataform.get_release_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.get_release_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.get_release_config.js,packages/google-cloud-dataform/samples/README.md) | | Dataform.get_repository | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.get_repository.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.get_repository.js,packages/google-cloud-dataform/samples/README.md) | +| Dataform.get_workflow_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.get_workflow_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.get_workflow_config.js,packages/google-cloud-dataform/samples/README.md) | | Dataform.get_workflow_invocation | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.get_workflow_invocation.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.get_workflow_invocation.js,packages/google-cloud-dataform/samples/README.md) | | Dataform.get_workspace | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.get_workspace.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.get_workspace.js,packages/google-cloud-dataform/samples/README.md) | | Dataform.install_npm_packages | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.install_npm_packages.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.install_npm_packages.js,packages/google-cloud-dataform/samples/README.md) | | Dataform.list_compilation_results | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.list_compilation_results.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.list_compilation_results.js,packages/google-cloud-dataform/samples/README.md) | +| Dataform.list_release_configs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.list_release_configs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.list_release_configs.js,packages/google-cloud-dataform/samples/README.md) | | Dataform.list_repositories | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.list_repositories.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.list_repositories.js,packages/google-cloud-dataform/samples/README.md) | +| Dataform.list_workflow_configs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.list_workflow_configs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.list_workflow_configs.js,packages/google-cloud-dataform/samples/README.md) | | Dataform.list_workflow_invocations | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.list_workflow_invocations.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.list_workflow_invocations.js,packages/google-cloud-dataform/samples/README.md) | | Dataform.list_workspaces | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.list_workspaces.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.list_workspaces.js,packages/google-cloud-dataform/samples/README.md) | | Dataform.make_directory | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.make_directory.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.make_directory.js,packages/google-cloud-dataform/samples/README.md) | @@ -127,12 +138,16 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Dataform.push_git_commits | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.push_git_commits.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.push_git_commits.js,packages/google-cloud-dataform/samples/README.md) | | Dataform.query_compilation_result_actions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.query_compilation_result_actions.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.query_compilation_result_actions.js,packages/google-cloud-dataform/samples/README.md) | | Dataform.query_directory_contents | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.query_directory_contents.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.query_directory_contents.js,packages/google-cloud-dataform/samples/README.md) | +| Dataform.query_repository_directory_contents | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.query_repository_directory_contents.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.query_repository_directory_contents.js,packages/google-cloud-dataform/samples/README.md) | | Dataform.query_workflow_invocation_actions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.query_workflow_invocation_actions.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.query_workflow_invocation_actions.js,packages/google-cloud-dataform/samples/README.md) | | Dataform.read_file | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.read_file.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.read_file.js,packages/google-cloud-dataform/samples/README.md) | +| Dataform.read_repository_file | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.read_repository_file.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.read_repository_file.js,packages/google-cloud-dataform/samples/README.md) | | Dataform.remove_directory | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.remove_directory.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.remove_directory.js,packages/google-cloud-dataform/samples/README.md) | | Dataform.remove_file | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.remove_file.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.remove_file.js,packages/google-cloud-dataform/samples/README.md) | | Dataform.reset_workspace_changes | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.reset_workspace_changes.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.reset_workspace_changes.js,packages/google-cloud-dataform/samples/README.md) | +| Dataform.update_release_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.update_release_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.update_release_config.js,packages/google-cloud-dataform/samples/README.md) | | Dataform.update_repository | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.update_repository.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.update_repository.js,packages/google-cloud-dataform/samples/README.md) | +| Dataform.update_workflow_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.update_workflow_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.update_workflow_config.js,packages/google-cloud-dataform/samples/README.md) | | Dataform.write_file | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.write_file.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.write_file.js,packages/google-cloud-dataform/samples/README.md) | | Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/quickstart.js,packages/google-cloud-dataform/samples/README.md) | diff --git a/packages/google-cloud-dataform/protos/google/cloud/dataform/v1beta1/dataform.proto b/packages/google-cloud-dataform/protos/google/cloud/dataform/v1beta1/dataform.proto index 466459c3092..afdf707879d 100644 --- a/packages/google-cloud-dataform/protos/google/cloud/dataform/v1beta1/dataform.proto +++ b/packages/google-cloud-dataform/protos/google/cloud/dataform/v1beta1/dataform.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,6 +22,8 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; import "google/type/interval.proto"; option csharp_namespace = "Google.Cloud.Dataform.V1Beta1"; @@ -40,10 +42,12 @@ option (google.api.resource_definition) = { // tables in BigQuery. service Dataform { option (google.api.default_host) = "dataform.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; // Lists Repositories in a given project and location. - rpc ListRepositories(ListRepositoriesRequest) returns (ListRepositoriesResponse) { + rpc ListRepositories(ListRepositoriesRequest) + returns (ListRepositoriesResponse) { option (google.api.http) = { get: "/v1beta1/{parent=projects/*/locations/*}/repositories" }; @@ -77,15 +81,63 @@ service Dataform { } // Deletes a single Repository. - rpc DeleteRepository(DeleteRepositoryRequest) returns (google.protobuf.Empty) { + rpc DeleteRepository(DeleteRepositoryRequest) + returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1beta1/{name=projects/*/locations/*/repositories/*}" }; option (google.api.method_signature) = "name"; } + // Applies a Git commit to a Repository. The Repository must not have a value + // for `git_remote_settings.url`. + rpc CommitRepositoryChanges(CommitRepositoryChangesRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/repositories/*}:commit" + body: "*" + }; + } + + // Returns the contents of a file (inside a Repository). The Repository + // must not have a value for `git_remote_settings.url`. + rpc ReadRepositoryFile(ReadRepositoryFileRequest) + returns (ReadRepositoryFileResponse) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/repositories/*}:readFile" + }; + } + + // Returns the contents of a given Repository directory. The Repository must + // not have a value for `git_remote_settings.url`. + rpc QueryRepositoryDirectoryContents(QueryRepositoryDirectoryContentsRequest) + returns (QueryRepositoryDirectoryContentsResponse) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/repositories/*}:queryDirectoryContents" + }; + } + + // Fetches a Repository's history of commits. The Repository must not have a + // value for `git_remote_settings.url`. + rpc FetchRepositoryHistory(FetchRepositoryHistoryRequest) + returns (FetchRepositoryHistoryResponse) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/repositories/*}:fetchHistory" + }; + } + + // Computes a Repository's Git access token status. + rpc ComputeRepositoryAccessTokenStatus( + ComputeRepositoryAccessTokenStatusRequest) + returns (ComputeRepositoryAccessTokenStatusResponse) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/repositories/*}:computeAccessTokenStatus" + }; + } + // Fetches a Repository's remote branches. - rpc FetchRemoteBranches(FetchRemoteBranchesRequest) returns (FetchRemoteBranchesResponse) { + rpc FetchRemoteBranches(FetchRemoteBranchesRequest) + returns (FetchRemoteBranchesResponse) { option (google.api.http) = { get: "/v1beta1/{name=projects/*/locations/*/repositories/*}:fetchRemoteBranches" }; @@ -125,7 +177,8 @@ service Dataform { } // Installs dependency NPM packages (inside a Workspace). - rpc InstallNpmPackages(InstallNpmPackagesRequest) returns (InstallNpmPackagesResponse) { + rpc InstallNpmPackages(InstallNpmPackagesRequest) + returns (InstallNpmPackagesResponse) { option (google.api.http) = { post: "/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:installNpmPackages" body: "*" @@ -149,21 +202,24 @@ service Dataform { } // Fetches Git statuses for the files in a Workspace. - rpc FetchFileGitStatuses(FetchFileGitStatusesRequest) returns (FetchFileGitStatusesResponse) { + rpc FetchFileGitStatuses(FetchFileGitStatusesRequest) + returns (FetchFileGitStatusesResponse) { option (google.api.http) = { get: "/v1beta1/{name=projects/*/locations/*/repositories/*/workspaces/*}:fetchFileGitStatuses" }; } // Fetches Git ahead/behind against a remote branch. - rpc FetchGitAheadBehind(FetchGitAheadBehindRequest) returns (FetchGitAheadBehindResponse) { + rpc FetchGitAheadBehind(FetchGitAheadBehindRequest) + returns (FetchGitAheadBehindResponse) { option (google.api.http) = { get: "/v1beta1/{name=projects/*/locations/*/repositories/*/workspaces/*}:fetchGitAheadBehind" }; } // Applies a Git commit for uncommitted files in a Workspace. - rpc CommitWorkspaceChanges(CommitWorkspaceChangesRequest) returns (google.protobuf.Empty) { + rpc CommitWorkspaceChanges(CommitWorkspaceChangesRequest) + returns (google.protobuf.Empty) { option (google.api.http) = { post: "/v1beta1/{name=projects/*/locations/*/repositories/*/workspaces/*}:commit" body: "*" @@ -171,7 +227,8 @@ service Dataform { } // Performs a Git reset for uncommitted files in a Workspace. - rpc ResetWorkspaceChanges(ResetWorkspaceChangesRequest) returns (google.protobuf.Empty) { + rpc ResetWorkspaceChanges(ResetWorkspaceChangesRequest) + returns (google.protobuf.Empty) { option (google.api.http) = { post: "/v1beta1/{name=projects/*/locations/*/repositories/*/workspaces/*}:reset" body: "*" @@ -186,7 +243,8 @@ service Dataform { } // Returns the contents of a given Workspace directory. - rpc QueryDirectoryContents(QueryDirectoryContentsRequest) returns (QueryDirectoryContentsResponse) { + rpc QueryDirectoryContents(QueryDirectoryContentsRequest) + returns (QueryDirectoryContentsResponse) { option (google.api.http) = { get: "/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:queryDirectoryContents" }; @@ -248,8 +306,54 @@ service Dataform { }; } + // Lists ReleaseConfigs in a given Repository. + rpc ListReleaseConfigs(ListReleaseConfigsRequest) + returns (ListReleaseConfigsResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*/repositories/*}/releaseConfigs" + }; + option (google.api.method_signature) = "parent"; + } + + // Fetches a single ReleaseConfig. + rpc GetReleaseConfig(GetReleaseConfigRequest) returns (ReleaseConfig) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/repositories/*/releaseConfigs/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new ReleaseConfig in a given Repository. + rpc CreateReleaseConfig(CreateReleaseConfigRequest) returns (ReleaseConfig) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*/repositories/*}/releaseConfigs" + body: "release_config" + }; + option (google.api.method_signature) = + "parent,release_config,release_config_id"; + } + + // Updates a single ReleaseConfig. + rpc UpdateReleaseConfig(UpdateReleaseConfigRequest) returns (ReleaseConfig) { + option (google.api.http) = { + patch: "/v1beta1/{release_config.name=projects/*/locations/*/repositories/*/releaseConfigs/*}" + body: "release_config" + }; + option (google.api.method_signature) = "release_config,update_mask"; + } + + // Deletes a single ReleaseConfig. + rpc DeleteReleaseConfig(DeleteReleaseConfigRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1beta1/{name=projects/*/locations/*/repositories/*/releaseConfigs/*}" + }; + option (google.api.method_signature) = "name"; + } + // Lists CompilationResults in a given Repository. - rpc ListCompilationResults(ListCompilationResultsRequest) returns (ListCompilationResultsResponse) { + rpc ListCompilationResults(ListCompilationResultsRequest) + returns (ListCompilationResultsResponse) { option (google.api.http) = { get: "/v1beta1/{parent=projects/*/locations/*/repositories/*}/compilationResults" }; @@ -257,7 +361,8 @@ service Dataform { } // Fetches a single CompilationResult. - rpc GetCompilationResult(GetCompilationResultRequest) returns (CompilationResult) { + rpc GetCompilationResult(GetCompilationResultRequest) + returns (CompilationResult) { option (google.api.http) = { get: "/v1beta1/{name=projects/*/locations/*/repositories/*/compilationResults/*}" }; @@ -265,7 +370,8 @@ service Dataform { } // Creates a new CompilationResult in a given project and location. - rpc CreateCompilationResult(CreateCompilationResultRequest) returns (CompilationResult) { + rpc CreateCompilationResult(CreateCompilationResultRequest) + returns (CompilationResult) { option (google.api.http) = { post: "/v1beta1/{parent=projects/*/locations/*/repositories/*}/compilationResults" body: "compilation_result" @@ -274,14 +380,63 @@ service Dataform { } // Returns CompilationResultActions in a given CompilationResult. - rpc QueryCompilationResultActions(QueryCompilationResultActionsRequest) returns (QueryCompilationResultActionsResponse) { + rpc QueryCompilationResultActions(QueryCompilationResultActionsRequest) + returns (QueryCompilationResultActionsResponse) { option (google.api.http) = { get: "/v1beta1/{name=projects/*/locations/*/repositories/*/compilationResults/*}:query" }; } + // Lists WorkflowConfigs in a given Repository. + rpc ListWorkflowConfigs(ListWorkflowConfigsRequest) + returns (ListWorkflowConfigsResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*/repositories/*}/workflowConfigs" + }; + option (google.api.method_signature) = "parent"; + } + + // Fetches a single WorkflowConfig. + rpc GetWorkflowConfig(GetWorkflowConfigRequest) returns (WorkflowConfig) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/repositories/*/workflowConfigs/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new WorkflowConfig in a given Repository. + rpc CreateWorkflowConfig(CreateWorkflowConfigRequest) + returns (WorkflowConfig) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*/repositories/*}/workflowConfigs" + body: "workflow_config" + }; + option (google.api.method_signature) = + "parent,workflow_config,workflow_config_id"; + } + + // Updates a single WorkflowConfig. + rpc UpdateWorkflowConfig(UpdateWorkflowConfigRequest) + returns (WorkflowConfig) { + option (google.api.http) = { + patch: "/v1beta1/{workflow_config.name=projects/*/locations/*/repositories/*/workflowConfigs/*}" + body: "workflow_config" + }; + option (google.api.method_signature) = "workflow_config,update_mask"; + } + + // Deletes a single WorkflowConfig. + rpc DeleteWorkflowConfig(DeleteWorkflowConfigRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1beta1/{name=projects/*/locations/*/repositories/*/workflowConfigs/*}" + }; + option (google.api.method_signature) = "name"; + } + // Lists WorkflowInvocations in a given Repository. - rpc ListWorkflowInvocations(ListWorkflowInvocationsRequest) returns (ListWorkflowInvocationsResponse) { + rpc ListWorkflowInvocations(ListWorkflowInvocationsRequest) + returns (ListWorkflowInvocationsResponse) { option (google.api.http) = { get: "/v1beta1/{parent=projects/*/locations/*/repositories/*}/workflowInvocations" }; @@ -289,7 +444,8 @@ service Dataform { } // Fetches a single WorkflowInvocation. - rpc GetWorkflowInvocation(GetWorkflowInvocationRequest) returns (WorkflowInvocation) { + rpc GetWorkflowInvocation(GetWorkflowInvocationRequest) + returns (WorkflowInvocation) { option (google.api.http) = { get: "/v1beta1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}" }; @@ -297,7 +453,8 @@ service Dataform { } // Creates a new WorkflowInvocation in a given Repository. - rpc CreateWorkflowInvocation(CreateWorkflowInvocationRequest) returns (WorkflowInvocation) { + rpc CreateWorkflowInvocation(CreateWorkflowInvocationRequest) + returns (WorkflowInvocation) { option (google.api.http) = { post: "/v1beta1/{parent=projects/*/locations/*/repositories/*}/workflowInvocations" body: "workflow_invocation" @@ -306,7 +463,8 @@ service Dataform { } // Deletes a single WorkflowInvocation. - rpc DeleteWorkflowInvocation(DeleteWorkflowInvocationRequest) returns (google.protobuf.Empty) { + rpc DeleteWorkflowInvocation(DeleteWorkflowInvocationRequest) + returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1beta1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}" }; @@ -314,7 +472,8 @@ service Dataform { } // Requests cancellation of a running WorkflowInvocation. - rpc CancelWorkflowInvocation(CancelWorkflowInvocationRequest) returns (google.protobuf.Empty) { + rpc CancelWorkflowInvocation(CancelWorkflowInvocationRequest) + returns (google.protobuf.Empty) { option (google.api.http) = { post: "/v1beta1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}:cancel" body: "*" @@ -322,7 +481,8 @@ service Dataform { } // Returns WorkflowInvocationActions in a given WorkflowInvocation. - rpc QueryWorkflowInvocationActions(QueryWorkflowInvocationActionsRequest) returns (QueryWorkflowInvocationActionsResponse) { + rpc QueryWorkflowInvocationActions(QueryWorkflowInvocationActionsRequest) + returns (QueryWorkflowInvocationActionsResponse) { option (google.api.http) = { get: "/v1beta1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}:query" }; @@ -338,7 +498,23 @@ message Repository { // Controls Git remote configuration for a repository. message GitRemoteSettings { - // Indicates the status of a Git authentication token. + // Configures fields for performing SSH authentication. + message SshAuthenticationConfig { + // Required. The name of the Secret Manager secret version to use as a + // ssh private key for Git operations. + // Must be in the format `projects/*/secrets/*/versions/*`. + string user_private_key_secret_version = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "secretmanager.googleapis.com/SecretVersion" + } + ]; + + // Required. Content of a public SSH key to verify an identity of a remote + // Git host. + string host_public_key = 2 [(google.api.field_behavior) = REQUIRED]; + } + enum TokenStatus { // Default value. This value is unused. TOKEN_STATUS_UNSPECIFIED = 0; @@ -360,25 +536,90 @@ message Repository { // Required. The Git remote's default branch name. string default_branch = 2 [(google.api.field_behavior) = REQUIRED]; - // Required. The name of the Secret Manager secret version to use as an + // Optional. The name of the Secret Manager secret version to use as an // authentication token for Git operations. Must be in the format // `projects/*/secrets/*/versions/*`. string authentication_token_secret_version = 3 [ - (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = OPTIONAL, (google.api.resource_reference) = { type: "secretmanager.googleapis.com/SecretVersion" } ]; - // Output only. Indicates the status of the Git access token. - TokenStatus token_status = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Optional. Authentication fields for remote uris using SSH protocol. + SshAuthenticationConfig ssh_authentication_config = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Deprecated: The field does not contain any token status + // information. Instead use + // https://cloud.google.com/dataform/reference/rest/v1beta1/projects.locations.repositories/computeAccessTokenStatus + TokenStatus token_status = 4 + [deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Configures workspace compilation overrides for a repository. + // Primarily used by the UI (`console.cloud.google.com`). + // `schema_suffix` and `table_prefix` can have a special expression - + // `${workspaceName}`, which refers to the workspace name from which the + // compilation results will be created. API callers are expected to resolve + // the expression in these overrides and provide them explicitly in + // `code_compilation_config` + // (https://cloud.google.com/dataform/reference/rest/v1beta1/projects.locations.repositories.compilationResults#codecompilationconfig) + // when creating workspace-scoped compilation results. + message WorkspaceCompilationOverrides { + // Optional. The default database (Google Cloud project ID). + string default_database = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The suffix that should be appended to all schema (BigQuery + // dataset ID) names. + string schema_suffix = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The prefix that should be prepended to all table names. + string table_prefix = 3 [(google.api.field_behavior) = OPTIONAL]; } // Output only. The repository's name. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Optional. The repository's user-friendly name. + string display_name = 8 [(google.api.field_behavior) = OPTIONAL]; + // Optional. If set, configures this repository to be linked to a Git remote. - GitRemoteSettings git_remote_settings = 2 [(google.api.field_behavior) = OPTIONAL]; + GitRemoteSettings git_remote_settings = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The name of the Secret Manager secret version to be used to + // interpolate variables into the .npmrc file for package installation + // operations. Must be in the format `projects/*/secrets/*/versions/*`. The + // file itself must be in a JSON format. + string npmrc_environment_variables_secret_version = 3 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "secretmanager.googleapis.com/SecretVersion" + } + ]; + + // Optional. If set, fields of `workspace_compilation_overrides` override the + // default compilation settings that are specified in dataform.json when + // creating workspace-scoped compilation results. See documentation for + // `WorkspaceCompilationOverrides` for more information. + WorkspaceCompilationOverrides workspace_compilation_overrides = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Repository user labels. + map labels = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Input only. If set to true, the authenticated user will be + // granted the roles/dataform.admin role on the created repository. To modify + // access to the created repository later apply setIamPolicy from + // https://cloud.google.com/dataform/reference/rest#rest-resource:-v1beta1.projects.locations.repositories + bool set_authenticated_user_admin = 9 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = INPUT_ONLY + ]; + + // Optional. The service account to run workflow invocations under. + string service_account = 10 [(google.api.field_behavior) = OPTIONAL]; } // `ListRepositories` request message. @@ -392,9 +633,9 @@ message ListRepositoriesRequest { } ]; - // Optional. Maximum number of repositories to return. The server may return fewer - // items than requested. If unspecified, the server will pick an appropriate - // default. + // Optional. Maximum number of repositories to return. The server may return + // fewer items than requested. If unspecified, the server will pick an + // appropriate default. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. Page token received from a previous `ListRepositories` call. @@ -404,9 +645,9 @@ message ListRepositoriesRequest { // must match the call that provided the page token. string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. This field only supports ordering by `name`. If unspecified, the server - // will choose the ordering. If specified, the default order is ascending for - // the `name` field. + // Optional. This field only supports ordering by `name`. If unspecified, the + // server will choose the ordering. If specified, the default order is + // ascending for the `name` field. string order_by = 4 [(google.api.field_behavior) = OPTIONAL]; // Optional. Filter for the returned list. @@ -439,8 +680,8 @@ message GetRepositoryRequest { // `CreateRepository` request message. message CreateRepositoryRequest { - // Required. The location in which to create the repository. Must be in the format - // `projects/*/locations/*`. + // Required. The location in which to create the repository. Must be in the + // format `projects/*/locations/*`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -451,16 +692,17 @@ message CreateRepositoryRequest { // Required. The repository to create. Repository repository = 2 [(google.api.field_behavior) = REQUIRED]; - // Required. The ID to use for the repository, which will become the final component of - // the repository's resource name. + // Required. The ID to use for the repository, which will become the final + // component of the repository's resource name. string repository_id = 3 [(google.api.field_behavior) = REQUIRED]; } // `UpdateRepository` request message. message UpdateRepositoryRequest { - // Optional. Specifies the fields to be updated in the repository. If left unset, - // all fields will be updated. - google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Specifies the fields to be updated in the repository. If left + // unset, all fields will be updated. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; // Required. The repository to update. Repository repository = 2 [(google.api.field_behavior) = REQUIRED]; @@ -482,6 +724,206 @@ message DeleteRepositoryRequest { bool force = 2; } +// `CommitRepositoryChanges` request message. +message CommitRepositoryChangesRequest { + // Represents a single file operation to the repository. + message FileOperation { + // Represents the write file operation (for files added or modified). + message WriteFile { + // The file's contents. + bytes contents = 1; + } + + // Represents the delete file operation. + message DeleteFile {} + + oneof operation { + // Represents the write operation. + WriteFile write_file = 1; + + // Represents the delete operation. + DeleteFile delete_file = 2; + } + } + + // Required. The repository's name. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dataform.googleapis.com/Repository" + } + ]; + + // Required. The changes to commit to the repository. + CommitMetadata commit_metadata = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The commit SHA which must be the repository's current HEAD before + // applying this commit; otherwise this request will fail. If unset, no + // validation on the current HEAD commit SHA is performed. + string required_head_commit_sha = 4 [(google.api.field_behavior) = OPTIONAL]; + + // A map to the path of the file to the operation. The path is the full file + // path including filename, from repository root. + map file_operations = 3; +} + +// `ReadRepositoryFile` request message. +message ReadRepositoryFileRequest { + // Required. The repository's name. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dataform.googleapis.com/Repository" + } + ]; + + // Optional. The commit SHA for the commit to read from. If unset, the file + // will be read from HEAD. + string commit_sha = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Full file path to read including filename, from repository root. + string path = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// `ReadRepositoryFile` response message. +message ReadRepositoryFileResponse { + // The file's contents. + bytes contents = 1; +} + +// `QueryRepositoryDirectoryContents` request message. +message QueryRepositoryDirectoryContentsRequest { + // Required. The repository's name. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dataform.googleapis.com/Repository" + } + ]; + + // Optional. The Commit SHA for the commit to query from. If unset, the + // directory will be queried from HEAD. + string commit_sha = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The directory's full path including directory name, relative to + // root. If left unset, the root is used. + string path = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Maximum number of paths to return. The server may return fewer + // items than requested. If unspecified, the server will pick an appropriate + // default. + int32 page_size = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Page token received from a previous + // `QueryRepositoryDirectoryContents` call. Provide this to retrieve the + // subsequent page. + // + // When paginating, all other parameters provided to + // `QueryRepositoryDirectoryContents` must match the call that provided the + // page token. + string page_token = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// `QueryRepositoryDirectoryContents` response message. +message QueryRepositoryDirectoryContentsResponse { + // List of entries in the directory. + repeated DirectoryEntry directory_entries = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// `FetchRepositoryHistory` request message. +message FetchRepositoryHistoryRequest { + // Required. The repository's name. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dataform.googleapis.com/Repository" + } + ]; + + // Optional. Maximum number of commits to return. The server may return fewer + // items than requested. If unspecified, the server will pick an appropriate + // default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Page token received from a previous `FetchRepositoryHistory` + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `FetchRepositoryHistory` + // must match the call that provided the page token. + string page_token = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// `FetchRepositoryHistory` response message. +message FetchRepositoryHistoryResponse { + // A list of commit logs, ordered by 'git log' default order. + repeated CommitLogEntry commits = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Represents a single commit log. +message CommitLogEntry { + // Commit timestamp. + google.protobuf.Timestamp commit_time = 1; + + // The commit SHA for this commit log entry. + string commit_sha = 2; + + // The commit author for this commit log entry. + CommitAuthor author = 3; + + // The commit message for this commit log entry. + string commit_message = 4; +} + +// Represents a Dataform Git commit. +message CommitMetadata { + // Required. The commit's author. + CommitAuthor author = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The commit's message. + string commit_message = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// `ComputeRepositoryAccessTokenStatus` request message. +message ComputeRepositoryAccessTokenStatusRequest { + // Required. The repository's name. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dataform.googleapis.com/Repository" + } + ]; +} + +// `ComputeRepositoryAccessTokenStatus` response message. +message ComputeRepositoryAccessTokenStatusResponse { + // Indicates the status of a Git authentication token. + enum TokenStatus { + // Default value. This value is unused. + TOKEN_STATUS_UNSPECIFIED = 0; + + // The token could not be found in Secret Manager (or the Dataform + // Service Account did not have permission to access it). + NOT_FOUND = 1; + + // The token could not be used to authenticate against the Git remote. + INVALID = 2; + + // The token was used successfully to authenticate against the Git remote. + VALID = 3; + } + + // Indicates the status of the Git access token. + TokenStatus token_status = 1; +} + // `FetchRemoteBranches` request message. message FetchRemoteBranchesRequest { // Required. The repository's name. @@ -521,9 +963,9 @@ message ListWorkspacesRequest { } ]; - // Optional. Maximum number of workspaces to return. The server may return fewer - // items than requested. If unspecified, the server will pick an appropriate - // default. + // Optional. Maximum number of workspaces to return. The server may return + // fewer items than requested. If unspecified, the server will pick an + // appropriate default. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. Page token received from a previous `ListWorkspaces` call. @@ -533,9 +975,9 @@ message ListWorkspacesRequest { // must match the call that provided the page token. string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. This field only supports ordering by `name`. If unspecified, the server - // will choose the ordering. If specified, the default order is ascending for - // the `name` field. + // Optional. This field only supports ordering by `name`. If unspecified, the + // server will choose the ordering. If specified, the default order is + // ascending for the `name` field. string order_by = 4 [(google.api.field_behavior) = OPTIONAL]; // Optional. Filter for the returned list. @@ -568,8 +1010,8 @@ message GetWorkspaceRequest { // `CreateWorkspace` request message. message CreateWorkspaceRequest { - // Required. The repository in which to create the workspace. Must be in the format - // `projects/*/locations/*/repositories/*`. + // Required. The repository in which to create the workspace. Must be in the + // format `projects/*/locations/*/repositories/*`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -580,8 +1022,8 @@ message CreateWorkspaceRequest { // Required. The workspace to create. Workspace workspace = 2 [(google.api.field_behavior) = REQUIRED]; - // Required. The ID to use for the workspace, which will become the final component of - // the workspace's resource name. + // Required. The ID to use for the workspace, which will become the final + // component of the workspace's resource name. string workspace_id = 3 [(google.api.field_behavior) = REQUIRED]; } @@ -615,12 +1057,12 @@ message PullGitCommitsRequest { } ]; - // Optional. The name of the branch in the Git remote from which to pull commits. - // If left unset, the repository's default branch name will be used. + // Optional. The name of the branch in the Git remote from which to pull + // commits. If left unset, the repository's default branch name will be used. string remote_branch = 2 [(google.api.field_behavior) = OPTIONAL]; - // Required. The author of any merge commit which may be created as a result of merging - // fetched Git commits into this workspace. + // Required. The author of any merge commit which may be created as a result + // of merging fetched Git commits into this workspace. CommitAuthor author = 3 [(google.api.field_behavior) = REQUIRED]; } @@ -634,8 +1076,9 @@ message PushGitCommitsRequest { } ]; - // Optional. The name of the branch in the Git remote to which commits should be pushed. - // If left unset, the repository's default branch name will be used. + // Optional. The name of the branch in the Git remote to which commits should + // be pushed. If left unset, the repository's default branch name will be + // used. string remote_branch = 2 [(google.api.field_behavior) = OPTIONAL]; } @@ -694,9 +1137,9 @@ message FetchGitAheadBehindRequest { } ]; - // Optional. The name of the branch in the Git remote against which this workspace - // should be compared. If left unset, the repository's default branch name - // will be used. + // Optional. The name of the branch in the Git remote against which this + // workspace should be compared. If left unset, the repository's default + // branch name will be used. string remote_branch = 2 [(google.api.field_behavior) = OPTIONAL]; } @@ -725,8 +1168,8 @@ message CommitWorkspaceChangesRequest { // Optional. The commit's message. string commit_message = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Full file paths to commit including filename, rooted at workspace root. If - // left empty, all files will be committed. + // Optional. Full file paths to commit including filename, rooted at workspace + // root. If left empty, all files will be committed. repeated string paths = 3 [(google.api.field_behavior) = OPTIONAL]; } @@ -740,8 +1183,8 @@ message ResetWorkspaceChangesRequest { } ]; - // Optional. Full file paths to reset back to their committed state including filename, - // rooted at workspace root. If left empty, all files will be reset. + // Optional. Full file paths to reset back to their committed state including + // filename, rooted at workspace root. If left empty, all files will be reset. repeated string paths = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. If set to true, untracked files will be deleted. @@ -758,7 +1201,8 @@ message FetchFileDiffRequest { } ]; - // Required. The file's full path including filename, relative to the workspace root. + // Required. The file's full path including filename, relative to the + // workspace root. string path = 2 [(google.api.field_behavior) = REQUIRED]; } @@ -778,8 +1222,8 @@ message QueryDirectoryContentsRequest { } ]; - // Optional. The directory's full path including directory name, relative to the - // workspace root. If left unset, the workspace root is used. + // Optional. The directory's full path including directory name, relative to + // the workspace root. If left unset, the workspace root is used. string path = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. Maximum number of paths to return. The server may return fewer @@ -787,8 +1231,8 @@ message QueryDirectoryContentsRequest { // default. int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Page token received from a previous `QueryDirectoryContents` call. - // Provide this to retrieve the subsequent page. + // Optional. Page token received from a previous `QueryDirectoryContents` + // call. Provide this to retrieve the subsequent page. // // When paginating, all other parameters provided to // `QueryDirectoryContents` must match the call that provided the page @@ -798,17 +1242,6 @@ message QueryDirectoryContentsRequest { // `QueryDirectoryContents` response message. message QueryDirectoryContentsResponse { - // Represents a single entry in a workspace directory. - message DirectoryEntry { - oneof entry { - // A file in the directory. - string file = 1; - - // A child directory in the directory. - string directory = 2; - } - } - // List of entries in the directory. repeated DirectoryEntry directory_entries = 1; @@ -817,6 +1250,17 @@ message QueryDirectoryContentsResponse { string next_page_token = 2; } +// Represents a single entry in a directory. +message DirectoryEntry { + oneof entry { + // A file in the directory. + string file = 1; + + // A child directory in the directory. + string directory = 2; + } +} + // `MakeDirectory` request message. message MakeDirectoryRequest { // Required. The workspace's name. @@ -827,15 +1271,13 @@ message MakeDirectoryRequest { } ]; - // Required. The directory's full path including directory name, relative to the - // workspace root. + // Required. The directory's full path including directory name, relative to + // the workspace root. string path = 2 [(google.api.field_behavior) = REQUIRED]; } // `MakeDirectory` response message. -message MakeDirectoryResponse { - -} +message MakeDirectoryResponse {} // `RemoveDirectory` request message. message RemoveDirectoryRequest { @@ -847,8 +1289,8 @@ message RemoveDirectoryRequest { } ]; - // Required. The directory's full path including directory name, relative to the - // workspace root. + // Required. The directory's full path including directory name, relative to + // the workspace root. string path = 2 [(google.api.field_behavior) = REQUIRED]; } @@ -862,19 +1304,17 @@ message MoveDirectoryRequest { } ]; - // Required. The directory's full path including directory name, relative to the - // workspace root. + // Required. The directory's full path including directory name, relative to + // the workspace root. string path = 2 [(google.api.field_behavior) = REQUIRED]; - // Required. The new path for the directory including directory name, rooted at - // workspace root. + // Required. The new path for the directory including directory name, rooted + // at workspace root. string new_path = 3 [(google.api.field_behavior) = REQUIRED]; } // `MoveDirectory` response message. -message MoveDirectoryResponse { - -} +message MoveDirectoryResponse {} // `ReadFile` request message. message ReadFileRequest { @@ -886,7 +1326,8 @@ message ReadFileRequest { } ]; - // Required. The file's full path including filename, relative to the workspace root. + // Required. The file's full path including filename, relative to the + // workspace root. string path = 2 [(google.api.field_behavior) = REQUIRED]; } @@ -906,7 +1347,8 @@ message RemoveFileRequest { } ]; - // Required. The file's full path including filename, relative to the workspace root. + // Required. The file's full path including filename, relative to the + // workspace root. string path = 2 [(google.api.field_behavior) = REQUIRED]; } @@ -920,17 +1362,17 @@ message MoveFileRequest { } ]; - // Required. The file's full path including filename, relative to the workspace root. + // Required. The file's full path including filename, relative to the + // workspace root. string path = 2 [(google.api.field_behavior) = REQUIRED]; - // Required. The file's new path including filename, relative to the workspace root. + // Required. The file's new path including filename, relative to the workspace + // root. string new_path = 3 [(google.api.field_behavior) = REQUIRED]; } // `MoveFile` response message. -message MoveFileResponse { - -} +message MoveFileResponse {} // `WriteFile` request message. message WriteFileRequest { @@ -950,9 +1392,7 @@ message WriteFileRequest { } // `WriteFile` response message. -message WriteFileResponse { - -} +message WriteFileResponse {} // `InstallNpmPackages` request message. message InstallNpmPackagesRequest { @@ -966,48 +1406,175 @@ message InstallNpmPackagesRequest { } // `InstallNpmPackages` response message. -message InstallNpmPackagesResponse { - -} +message InstallNpmPackagesResponse {} -// Represents the result of compiling a Dataform project. -message CompilationResult { +// Represents a Dataform release configuration. +message ReleaseConfig { option (google.api.resource) = { - type: "dataform.googleapis.com/CompilationResult" - pattern: "projects/{project}/locations/{location}/repositories/{repository}/compilationResults/{compilation_result}" + type: "dataform.googleapis.com/ReleaseConfig" + pattern: "projects/{project}/locations/{location}/repositories/{repository}/releaseConfigs/{release_config}" }; - // Configures various aspects of Dataform code compilation. - message CodeCompilationConfig { - // Optional. The default database (Google Cloud project ID). - string default_database = 1 [(google.api.field_behavior) = OPTIONAL]; + // A record of an attempt to create a compilation result for this release + // config. + message ScheduledReleaseRecord { + // The timestamp of this release attempt. + google.protobuf.Timestamp release_time = 1; + + oneof result { + // The name of the created compilation result, if one was successfully + // created. Must be in the format + // `projects/*/locations/*/repositories/*/compilationResults/*`. + string compilation_result = 2 [(google.api.resource_reference) = { + type: "dataform.googleapis.com/CompilationResult" + }]; + + // The error status encountered upon this attempt to create the + // compilation result, if the attempt was unsuccessful. + google.rpc.Status error_status = 3; + } + } + + // Output only. The release config's name. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Optional. The default schema (BigQuery dataset ID). - string default_schema = 2 [(google.api.field_behavior) = OPTIONAL]; + // Required. Git commit/tag/branch name at which the repository should be + // compiled. Must exist in the remote repository. Examples: + // - a commit SHA: `12ade345` + // - a tag: `tag1` + // - a branch name: `branch1` + string git_commitish = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. If set, fields of `code_compilation_config` override the default + // compilation settings that are specified in dataform.json. + CodeCompilationConfig code_compilation_config = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Optional schedule (in cron format) for automatic creation of + // compilation results. + string cron_schedule = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies the time zone to be used when interpreting + // cron_schedule. Must be a time zone name from the time zone database + // (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). If left + // unspecified, the default is UTC. + string time_zone = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Records of the 10 most recent scheduled release attempts, + // ordered in in descending order of `release_time`. Updated whenever + // automatic creation of a compilation result is triggered by cron_schedule. + repeated ScheduledReleaseRecord recent_scheduled_release_records = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The name of the currently released compilation result for this + // release config. This value is updated when a compilation result is created + // from this release config, or when this resource is updated by API call + // (perhaps to roll back to an earlier release). The compilation result must + // have been created using this release config. Must be in the format + // `projects/*/locations/*/repositories/*/compilationResults/*`. + string release_compilation_result = 6 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "dataform.googleapis.com/CompilationResult" + } + ]; +} - // Optional. The default BigQuery location to use. Defaults to "US". - // See the BigQuery docs for a full list of locations: - // https://cloud.google.com/bigquery/docs/locations. - string default_location = 8 [(google.api.field_behavior) = OPTIONAL]; +// `ListReleaseConfigs` request message. +message ListReleaseConfigsRequest { + // Required. The repository in which to list release configs. Must be in the + // format `projects/*/locations/*/repositories/*`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dataform.googleapis.com/Repository" + } + ]; - // Optional. The default schema (BigQuery dataset ID) for assertions. - string assertion_schema = 3 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Maximum number of release configs to return. The server may + // return fewer items than requested. If unspecified, the server will pick an + // appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. User-defined variables that are made available to project code during - // compilation. - map vars = 4 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Page token received from a previous `ListReleaseConfigs` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListReleaseConfigs` + // must match the call that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} - // Optional. The suffix that should be appended to all database (Google Cloud project - // ID) names. - string database_suffix = 5 [(google.api.field_behavior) = OPTIONAL]; +// `ListReleaseConfigs` response message. +message ListReleaseConfigsResponse { + // List of release configs. + repeated ReleaseConfig release_configs = 1; - // Optional. The suffix that should be appended to all schema (BigQuery dataset ID) - // names. - string schema_suffix = 6 [(google.api.field_behavior) = OPTIONAL]; + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; - // Optional. The prefix that should be prepended to all table names. - string table_prefix = 7 [(google.api.field_behavior) = OPTIONAL]; - } + // Locations which could not be reached. + repeated string unreachable = 3; +} + +// `GetReleaseConfig` request message. +message GetReleaseConfigRequest { + // Required. The release config's name. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dataform.googleapis.com/ReleaseConfig" + } + ]; +} + +// `CreateReleaseConfig` request message. +message CreateReleaseConfigRequest { + // Required. The repository in which to create the release config. Must be in + // the format `projects/*/locations/*/repositories/*`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dataform.googleapis.com/Repository" + } + ]; + + // Required. The release config to create. + ReleaseConfig release_config = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The ID to use for the release config, which will become the final + // component of the release config's resource name. + string release_config_id = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// `UpdateReleaseConfig` request message. +message UpdateReleaseConfigRequest { + // Optional. Specifies the fields to be updated in the release config. If left + // unset, all fields will be updated. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The release config to update. + ReleaseConfig release_config = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// `DeleteReleaseConfig` request message. +message DeleteReleaseConfigRequest { + // Required. The release config's name. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dataform.googleapis.com/ReleaseConfig" + } + ]; +} + +// Represents the result of compiling a Dataform project. +message CompilationResult { + option (google.api.resource) = { + type: "dataform.googleapis.com/CompilationResult" + pattern: "projects/{project}/locations/{location}/repositories/{repository}/compilationResults/{compilation_result}" + }; // An error encountered when attempting to compile a Dataform project. message CompilationError { @@ -1017,11 +1584,12 @@ message CompilationResult { // Output only. The error's full stack trace. string stack = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The path of the file where this error occurred, if available, relative to - // the project root. + // Output only. The path of the file where this error occurred, if + // available, relative to the project root. string path = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The identifier of the action where this error occurred, if available. + // Output only. The identifier of the action where this error occurred, if + // available. Target action_target = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; } @@ -1029,9 +1597,8 @@ message CompilationResult { string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; oneof source { - // Immutable. Git commit/tag/branch name at which the repository should be compiled. - // Must exist in the remote repository. - // Examples: + // Immutable. Git commit/tag/branch name at which the repository should be + // compiled. Must exist in the remote repository. Examples: // - a commit SHA: `12ade345` // - a tag: `tag1` // - a branch name: `branch1` @@ -1045,23 +1612,73 @@ message CompilationResult { type: "dataform.googleapis.com/Workspace" } ]; + + // Immutable. The name of the release config to compile. The release + // config's 'current_compilation_result' field will be updated to this + // compilation result. Must be in the format + // `projects/*/locations/*/repositories/*/releaseConfigs/*`. + string release_config = 7 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "dataform.googleapis.com/ReleaseConfig" + } + ]; } - // Immutable. If set, fields of `code_compilation_overrides` override the default + // Immutable. If set, fields of `code_compilation_config` override the default // compilation settings that are specified in dataform.json. - CodeCompilationConfig code_compilation_config = 4 [(google.api.field_behavior) = IMMUTABLE]; + CodeCompilationConfig code_compilation_config = 4 + [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. The fully resolved Git commit SHA of the code that was + // compiled. Not set for compilation results whose source is a workspace. + string resolved_git_commit_sha = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The version of `@dataform/core` that was used for compilation. string dataform_core_version = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Errors encountered during project compilation. - repeated CompilationError compilation_errors = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + repeated CompilationError compilation_errors = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Configures various aspects of Dataform code compilation. +message CodeCompilationConfig { + // Optional. The default database (Google Cloud project ID). + string default_database = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The default schema (BigQuery dataset ID). + string default_schema = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The default BigQuery location to use. Defaults to "US". + // See the BigQuery docs for a full list of locations: + // https://cloud.google.com/bigquery/docs/locations. + string default_location = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The default schema (BigQuery dataset ID) for assertions. + string assertion_schema = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. User-defined variables that are made available to project code + // during compilation. + map vars = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The suffix that should be appended to all database (Google Cloud + // project ID) names. + string database_suffix = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The suffix that should be appended to all schema (BigQuery + // dataset ID) names. + string schema_suffix = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The prefix that should be prepended to all table names. + string table_prefix = 7 [(google.api.field_behavior) = OPTIONAL]; } // `ListCompilationResults` request message. message ListCompilationResultsRequest { - // Required. The repository in which to list compilation results. Must be in the - // format `projects/*/locations/*/repositories/*`. + // Required. The repository in which to list compilation results. Must be in + // the format `projects/*/locations/*/repositories/*`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1069,13 +1686,13 @@ message ListCompilationResultsRequest { } ]; - // Optional. Maximum number of compilation results to return. The server may return - // fewer items than requested. If unspecified, the server will pick an + // Optional. Maximum number of compilation results to return. The server may + // return fewer items than requested. If unspecified, the server will pick an // appropriate default. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Page token received from a previous `ListCompilationResults` call. - // Provide this to retrieve the subsequent page. + // Optional. Page token received from a previous `ListCompilationResults` + // call. Provide this to retrieve the subsequent page. // // When paginating, all other parameters provided to `ListCompilationResults` // must match the call that provided the page token. @@ -1108,8 +1725,8 @@ message GetCompilationResultRequest { // `CreateCompilationResult` request message. message CreateCompilationResultRequest { - // Required. The repository in which to create the compilation result. Must be in the - // format `projects/*/locations/*/repositories/*`. + // Required. The repository in which to create the compilation result. Must be + // in the format `projects/*/locations/*/repositories/*`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1118,7 +1735,8 @@ message CreateCompilationResultRequest { ]; // Required. The compilation result to create. - CompilationResult compilation_result = 2 [(google.api.field_behavior) = REQUIRED]; + CompilationResult compilation_result = 2 + [(google.api.field_behavior) = REQUIRED]; } // Represents an action identifier. If the action writes output, the output @@ -1350,21 +1968,22 @@ message QueryCompilationResultActionsRequest { } ]; - // Optional. Maximum number of compilation results to return. The server may return - // fewer items than requested. If unspecified, the server will pick an + // Optional. Maximum number of compilation results to return. The server may + // return fewer items than requested. If unspecified, the server will pick an // appropriate default. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Page token received from a previous `QueryCompilationResultActions` call. - // Provide this to retrieve the subsequent page. + // Optional. Page token received from a previous + // `QueryCompilationResultActions` call. Provide this to retrieve the + // subsequent page. // // When paginating, all other parameters provided to // `QueryCompilationResultActions` must match the call that provided the page // token. string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Optional filter for the returned list. Filtering is only currently - // supported on the `file_path` field. + // Optional. Optional filter for the returned list. Filtering is only + // currently supported on the `file_path` field. string filter = 4 [(google.api.field_behavior) = OPTIONAL]; } @@ -1378,34 +1997,190 @@ message QueryCompilationResultActionsResponse { string next_page_token = 2; } -// Represents a single invocation of a compilation result. -message WorkflowInvocation { +// Represents a Dataform workflow configuration. +message WorkflowConfig { option (google.api.resource) = { - type: "dataform.googleapis.com/WorkflowInvocation" - pattern: "projects/{project}/locations/{location}/repositories/{repository}/workflowInvocations/{workflow_invocation}" + type: "dataform.googleapis.com/WorkflowConfig" + pattern: "projects/{project}/locations/{location}/repositories/{repository}/workflowConfigs/{workflow_config}" }; - // Includes various configuration options for this workflow invocation. - // If both `included_targets` and `included_tags` are unset, all actions - // will be included. - message InvocationConfig { - // Immutable. The set of action identifiers to include. - repeated Target included_targets = 1 [(google.api.field_behavior) = IMMUTABLE]; + // A record of an attempt to create a workflow invocation for this workflow + // config. + message ScheduledExecutionRecord { + // The timestamp of this execution attempt. + google.protobuf.Timestamp execution_time = 1; + + oneof result { + // The name of the created workflow invocation, if one was successfully + // created. Must be in the format + // `projects/*/locations/*/repositories/*/workflowInvocations/*`. + string workflow_invocation = 2 [(google.api.resource_reference) = { + type: "dataform.googleapis.com/WorkflowInvocation" + }]; + + // The error status encountered upon this attempt to create the + // workflow invocation, if the attempt was unsuccessful. + google.rpc.Status error_status = 3; + } + } - // Immutable. The set of tags to include. - repeated string included_tags = 2 [(google.api.field_behavior) = IMMUTABLE]; + // Output only. The workflow config's name. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Immutable. When set to true, transitive dependencies of included actions will be - // executed. - bool transitive_dependencies_included = 3 [(google.api.field_behavior) = IMMUTABLE]; + // Required. The name of the release config whose release_compilation_result + // should be executed. Must be in the format + // `projects/*/locations/*/repositories/*/releaseConfigs/*`. + string release_config = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dataform.googleapis.com/ReleaseConfig" + } + ]; - // Immutable. When set to true, transitive dependents of included actions will be - // executed. - bool transitive_dependents_included = 4 [(google.api.field_behavior) = IMMUTABLE]; + // Optional. If left unset, a default InvocationConfig will be used. + InvocationConfig invocation_config = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Optional schedule (in cron format) for automatic execution of + // this workflow config. + string cron_schedule = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies the time zone to be used when interpreting + // cron_schedule. Must be a time zone name from the time zone database + // (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). If left + // unspecified, the default is UTC. + string time_zone = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Records of the 10 most recent scheduled execution attempts, + // ordered in in descending order of `execution_time`. Updated whenever + // automatic creation of a workflow invocation is triggered by cron_schedule. + repeated ScheduledExecutionRecord recent_scheduled_execution_records = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} - // Immutable. When set to true, any incremental tables will be fully refreshed. - bool fully_refresh_incremental_tables_enabled = 5 [(google.api.field_behavior) = IMMUTABLE]; - } +// Includes various configuration options for a workflow invocation. +// If both `included_targets` and `included_tags` are unset, all actions +// will be included. +message InvocationConfig { + // Optional. The set of action identifiers to include. + repeated Target included_targets = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The set of tags to include. + repeated string included_tags = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. When set to true, transitive dependencies of included actions + // will be executed. + bool transitive_dependencies_included = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. When set to true, transitive dependents of included actions will + // be executed. + bool transitive_dependents_included = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. When set to true, any incremental tables will be fully refreshed. + bool fully_refresh_incremental_tables_enabled = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The service account to run workflow invocations under. + string service_account = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// `ListWorkflowConfigs` request message. +message ListWorkflowConfigsRequest { + // Required. The repository in which to list workflow configs. Must be in the + // format `projects/*/locations/*/repositories/*`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dataform.googleapis.com/Repository" + } + ]; + + // Optional. Maximum number of workflow configs to return. The server may + // return fewer items than requested. If unspecified, the server will pick an + // appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Page token received from a previous `ListWorkflowConfigs` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListWorkflowConfigs` + // must match the call that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// `ListWorkflowConfigs` response message. +message ListWorkflowConfigsResponse { + // List of workflow configs. + repeated WorkflowConfig workflow_configs = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Locations which could not be reached. + repeated string unreachable = 3; +} + +// `GetWorkflowConfig` request message. +message GetWorkflowConfigRequest { + // Required. The workflow config's name. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dataform.googleapis.com/WorkflowConfig" + } + ]; +} + +// `CreateWorkflowConfig` request message. +message CreateWorkflowConfigRequest { + // Required. The repository in which to create the workflow config. Must be in + // the format `projects/*/locations/*/repositories/*`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dataform.googleapis.com/Repository" + } + ]; + + // Required. The workflow config to create. + WorkflowConfig workflow_config = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The ID to use for the workflow config, which will become the + // final component of the workflow config's resource name. + string workflow_config_id = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// `UpdateWorkflowConfig` request message. +message UpdateWorkflowConfigRequest { + // Optional. Specifies the fields to be updated in the workflow config. If + // left unset, all fields will be updated. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The workflow config to update. + WorkflowConfig workflow_config = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// `DeleteWorkflowConfig` request message. +message DeleteWorkflowConfigRequest { + // Required. The workflow config's name. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dataform.googleapis.com/WorkflowConfig" + } + ]; +} + +// Represents a single invocation of a compilation result. +message WorkflowInvocation { + option (google.api.resource) = { + type: "dataform.googleapis.com/WorkflowInvocation" + pattern: "projects/{project}/locations/{location}/repositories/{repository}/workflowInvocations/{workflow_invocation}" + }; // Represents the current state of a workflow invocation. enum State { @@ -1432,29 +2207,43 @@ message WorkflowInvocation { // Output only. The workflow invocation's name. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Immutable. The name of the compilation result to compile. Must be in the format - // `projects/*/locations/*/repositories/*/compilationResults/*`. - string compilation_result = 2 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "dataform.googleapis.com/CompilationResult" - } - ]; + oneof compilation_source { + // Immutable. The name of the compilation result to use for this invocation. + // Must be in the format + // `projects/*/locations/*/repositories/*/compilationResults/*`. + string compilation_result = 2 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "dataform.googleapis.com/CompilationResult" + } + ]; + + // Immutable. The name of the workflow config to invoke. Must be in the + // format `projects/*/locations/*/repositories/*/workflowConfigs/*`. + string workflow_config = 6 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "dataform.googleapis.com/WorkflowConfig" + } + ]; + } // Immutable. If left unset, a default InvocationConfig will be used. - InvocationConfig invocation_config = 3 [(google.api.field_behavior) = IMMUTABLE]; + InvocationConfig invocation_config = 3 + [(google.api.field_behavior) = IMMUTABLE]; // Output only. This workflow invocation's current state. State state = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. This workflow invocation's timing details. - google.type.Interval invocation_timing = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.type.Interval invocation_timing = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // `ListWorkflowInvocations` request message. message ListWorkflowInvocationsRequest { - // Required. The parent resource of the WorkflowInvocation type. Must be in the - // format `projects/*/locations/*/repositories/*`. + // Required. The parent resource of the WorkflowInvocation type. Must be in + // the format `projects/*/locations/*/repositories/*`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1462,17 +2251,25 @@ message ListWorkflowInvocationsRequest { } ]; - // Optional. Maximum number of workflow invocations to return. The server may return - // fewer items than requested. If unspecified, the server will pick an + // Optional. Maximum number of workflow invocations to return. The server may + // return fewer items than requested. If unspecified, the server will pick an // appropriate default. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Page token received from a previous `ListWorkflowInvocations` call. - // Provide this to retrieve the subsequent page. + // Optional. Page token received from a previous `ListWorkflowInvocations` + // call. Provide this to retrieve the subsequent page. // // When paginating, all other parameters provided to `ListWorkflowInvocations` // must match the call that provided the page token. string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. This field only supports ordering by `name`. If unspecified, the + // server will choose the ordering. If specified, the default order is + // ascending for the `name` field. + string order_by = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filter for the returned list. + string filter = 5 [(google.api.field_behavior) = OPTIONAL]; } // `ListWorkflowInvocations` response message. @@ -1501,8 +2298,8 @@ message GetWorkflowInvocationRequest { // `CreateWorkflowInvocation` request message. message CreateWorkflowInvocationRequest { - // Required. The repository in which to create the workflow invocation. Must be in the - // format `projects/*/locations/*/repositories/*`. + // Required. The repository in which to create the workflow invocation. Must + // be in the format `projects/*/locations/*/repositories/*`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1511,7 +2308,8 @@ message CreateWorkflowInvocationRequest { ]; // Required. The workflow invocation resource to create. - WorkflowInvocation workflow_invocation = 2 [(google.api.field_behavior) = REQUIRED]; + WorkflowInvocation workflow_invocation = 2 + [(google.api.field_behavior) = REQUIRED]; } // `DeleteWorkflowInvocation` request message. @@ -1538,7 +2336,7 @@ message CancelWorkflowInvocationRequest { // Represents a single action in a workflow invocation. message WorkflowInvocationAction { - // Represents the current state of an workflow invocation action. + // Represents the current state of a workflow invocation action. enum State { // The action has not yet been considered for invocation. PENDING = 0; @@ -1570,17 +2368,19 @@ message WorkflowInvocationAction { string sql_script = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; } - // Output only. This action's identifier. Unique within the workflow invocation. + // Output only. This action's identifier. Unique within the workflow + // invocation. Target target = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The action's identifier if the project had been compiled without any - // overrides configured. Unique within the compilation result. + // Output only. The action's identifier if the project had been compiled + // without any overrides configured. Unique within the compilation result. Target canonical_target = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. This action's current state. State state = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. If and only if action's state is FAILED a failure reason is set. + // Output only. If and only if action's state is FAILED a failure reason is + // set. string failure_reason = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. This action's timing details. @@ -1588,10 +2388,12 @@ message WorkflowInvocationAction { // CANCELLED, FAILED] state. // `end_time` will be set if the action is in [SUCCEEDED, CANCELLED, FAILED] // state. - google.type.Interval invocation_timing = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.type.Interval invocation_timing = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The workflow action's bigquery action details. - BigQueryAction bigquery_action = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + BigQueryAction bigquery_action = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // `QueryWorkflowInvocationActions` request message. @@ -1604,13 +2406,14 @@ message QueryWorkflowInvocationActionsRequest { } ]; - // Optional. Maximum number of workflow invocations to return. The server may return - // fewer items than requested. If unspecified, the server will pick an + // Optional. Maximum number of workflow invocations to return. The server may + // return fewer items than requested. If unspecified, the server will pick an // appropriate default. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Page token received from a previous `QueryWorkflowInvocationActions` call. - // Provide this to retrieve the subsequent page. + // Optional. Page token received from a previous + // `QueryWorkflowInvocationActions` call. Provide this to retrieve the + // subsequent page. // // When paginating, all other parameters provided to // `QueryWorkflowInvocationActions` must match the call that provided the page diff --git a/packages/google-cloud-dataform/protos/protos.d.ts b/packages/google-cloud-dataform/protos/protos.d.ts index 42d659f7c64..ab20509688b 100644 --- a/packages/google-cloud-dataform/protos/protos.d.ts +++ b/packages/google-cloud-dataform/protos/protos.d.ts @@ -9044,6 +9044,76 @@ export namespace google { */ public deleteRepository(request: google.cloud.dataform.v1beta1.IDeleteRepositoryRequest): Promise; + /** + * Calls CommitRepositoryChanges. + * @param request CommitRepositoryChangesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public commitRepositoryChanges(request: google.cloud.dataform.v1beta1.ICommitRepositoryChangesRequest, callback: google.cloud.dataform.v1beta1.Dataform.CommitRepositoryChangesCallback): void; + + /** + * Calls CommitRepositoryChanges. + * @param request CommitRepositoryChangesRequest message or plain object + * @returns Promise + */ + public commitRepositoryChanges(request: google.cloud.dataform.v1beta1.ICommitRepositoryChangesRequest): Promise; + + /** + * Calls ReadRepositoryFile. + * @param request ReadRepositoryFileRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ReadRepositoryFileResponse + */ + public readRepositoryFile(request: google.cloud.dataform.v1beta1.IReadRepositoryFileRequest, callback: google.cloud.dataform.v1beta1.Dataform.ReadRepositoryFileCallback): void; + + /** + * Calls ReadRepositoryFile. + * @param request ReadRepositoryFileRequest message or plain object + * @returns Promise + */ + public readRepositoryFile(request: google.cloud.dataform.v1beta1.IReadRepositoryFileRequest): Promise; + + /** + * Calls QueryRepositoryDirectoryContents. + * @param request QueryRepositoryDirectoryContentsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryRepositoryDirectoryContentsResponse + */ + public queryRepositoryDirectoryContents(request: google.cloud.dataform.v1beta1.IQueryRepositoryDirectoryContentsRequest, callback: google.cloud.dataform.v1beta1.Dataform.QueryRepositoryDirectoryContentsCallback): void; + + /** + * Calls QueryRepositoryDirectoryContents. + * @param request QueryRepositoryDirectoryContentsRequest message or plain object + * @returns Promise + */ + public queryRepositoryDirectoryContents(request: google.cloud.dataform.v1beta1.IQueryRepositoryDirectoryContentsRequest): Promise; + + /** + * Calls FetchRepositoryHistory. + * @param request FetchRepositoryHistoryRequest message or plain object + * @param callback Node-style callback called with the error, if any, and FetchRepositoryHistoryResponse + */ + public fetchRepositoryHistory(request: google.cloud.dataform.v1beta1.IFetchRepositoryHistoryRequest, callback: google.cloud.dataform.v1beta1.Dataform.FetchRepositoryHistoryCallback): void; + + /** + * Calls FetchRepositoryHistory. + * @param request FetchRepositoryHistoryRequest message or plain object + * @returns Promise + */ + public fetchRepositoryHistory(request: google.cloud.dataform.v1beta1.IFetchRepositoryHistoryRequest): Promise; + + /** + * Calls ComputeRepositoryAccessTokenStatus. + * @param request ComputeRepositoryAccessTokenStatusRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ComputeRepositoryAccessTokenStatusResponse + */ + public computeRepositoryAccessTokenStatus(request: google.cloud.dataform.v1beta1.IComputeRepositoryAccessTokenStatusRequest, callback: google.cloud.dataform.v1beta1.Dataform.ComputeRepositoryAccessTokenStatusCallback): void; + + /** + * Calls ComputeRepositoryAccessTokenStatus. + * @param request ComputeRepositoryAccessTokenStatusRequest message or plain object + * @returns Promise + */ + public computeRepositoryAccessTokenStatus(request: google.cloud.dataform.v1beta1.IComputeRepositoryAccessTokenStatusRequest): Promise; + /** * Calls FetchRemoteBranches. * @param request FetchRemoteBranchesRequest message or plain object @@ -9338,6 +9408,76 @@ export namespace google { */ public writeFile(request: google.cloud.dataform.v1beta1.IWriteFileRequest): Promise; + /** + * Calls ListReleaseConfigs. + * @param request ListReleaseConfigsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListReleaseConfigsResponse + */ + public listReleaseConfigs(request: google.cloud.dataform.v1beta1.IListReleaseConfigsRequest, callback: google.cloud.dataform.v1beta1.Dataform.ListReleaseConfigsCallback): void; + + /** + * Calls ListReleaseConfigs. + * @param request ListReleaseConfigsRequest message or plain object + * @returns Promise + */ + public listReleaseConfigs(request: google.cloud.dataform.v1beta1.IListReleaseConfigsRequest): Promise; + + /** + * Calls GetReleaseConfig. + * @param request GetReleaseConfigRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ReleaseConfig + */ + public getReleaseConfig(request: google.cloud.dataform.v1beta1.IGetReleaseConfigRequest, callback: google.cloud.dataform.v1beta1.Dataform.GetReleaseConfigCallback): void; + + /** + * Calls GetReleaseConfig. + * @param request GetReleaseConfigRequest message or plain object + * @returns Promise + */ + public getReleaseConfig(request: google.cloud.dataform.v1beta1.IGetReleaseConfigRequest): Promise; + + /** + * Calls CreateReleaseConfig. + * @param request CreateReleaseConfigRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ReleaseConfig + */ + public createReleaseConfig(request: google.cloud.dataform.v1beta1.ICreateReleaseConfigRequest, callback: google.cloud.dataform.v1beta1.Dataform.CreateReleaseConfigCallback): void; + + /** + * Calls CreateReleaseConfig. + * @param request CreateReleaseConfigRequest message or plain object + * @returns Promise + */ + public createReleaseConfig(request: google.cloud.dataform.v1beta1.ICreateReleaseConfigRequest): Promise; + + /** + * Calls UpdateReleaseConfig. + * @param request UpdateReleaseConfigRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ReleaseConfig + */ + public updateReleaseConfig(request: google.cloud.dataform.v1beta1.IUpdateReleaseConfigRequest, callback: google.cloud.dataform.v1beta1.Dataform.UpdateReleaseConfigCallback): void; + + /** + * Calls UpdateReleaseConfig. + * @param request UpdateReleaseConfigRequest message or plain object + * @returns Promise + */ + public updateReleaseConfig(request: google.cloud.dataform.v1beta1.IUpdateReleaseConfigRequest): Promise; + + /** + * Calls DeleteReleaseConfig. + * @param request DeleteReleaseConfigRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteReleaseConfig(request: google.cloud.dataform.v1beta1.IDeleteReleaseConfigRequest, callback: google.cloud.dataform.v1beta1.Dataform.DeleteReleaseConfigCallback): void; + + /** + * Calls DeleteReleaseConfig. + * @param request DeleteReleaseConfigRequest message or plain object + * @returns Promise + */ + public deleteReleaseConfig(request: google.cloud.dataform.v1beta1.IDeleteReleaseConfigRequest): Promise; + /** * Calls ListCompilationResults. * @param request ListCompilationResultsRequest message or plain object @@ -9394,6 +9534,76 @@ export namespace google { */ public queryCompilationResultActions(request: google.cloud.dataform.v1beta1.IQueryCompilationResultActionsRequest): Promise; + /** + * Calls ListWorkflowConfigs. + * @param request ListWorkflowConfigsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListWorkflowConfigsResponse + */ + public listWorkflowConfigs(request: google.cloud.dataform.v1beta1.IListWorkflowConfigsRequest, callback: google.cloud.dataform.v1beta1.Dataform.ListWorkflowConfigsCallback): void; + + /** + * Calls ListWorkflowConfigs. + * @param request ListWorkflowConfigsRequest message or plain object + * @returns Promise + */ + public listWorkflowConfigs(request: google.cloud.dataform.v1beta1.IListWorkflowConfigsRequest): Promise; + + /** + * Calls GetWorkflowConfig. + * @param request GetWorkflowConfigRequest message or plain object + * @param callback Node-style callback called with the error, if any, and WorkflowConfig + */ + public getWorkflowConfig(request: google.cloud.dataform.v1beta1.IGetWorkflowConfigRequest, callback: google.cloud.dataform.v1beta1.Dataform.GetWorkflowConfigCallback): void; + + /** + * Calls GetWorkflowConfig. + * @param request GetWorkflowConfigRequest message or plain object + * @returns Promise + */ + public getWorkflowConfig(request: google.cloud.dataform.v1beta1.IGetWorkflowConfigRequest): Promise; + + /** + * Calls CreateWorkflowConfig. + * @param request CreateWorkflowConfigRequest message or plain object + * @param callback Node-style callback called with the error, if any, and WorkflowConfig + */ + public createWorkflowConfig(request: google.cloud.dataform.v1beta1.ICreateWorkflowConfigRequest, callback: google.cloud.dataform.v1beta1.Dataform.CreateWorkflowConfigCallback): void; + + /** + * Calls CreateWorkflowConfig. + * @param request CreateWorkflowConfigRequest message or plain object + * @returns Promise + */ + public createWorkflowConfig(request: google.cloud.dataform.v1beta1.ICreateWorkflowConfigRequest): Promise; + + /** + * Calls UpdateWorkflowConfig. + * @param request UpdateWorkflowConfigRequest message or plain object + * @param callback Node-style callback called with the error, if any, and WorkflowConfig + */ + public updateWorkflowConfig(request: google.cloud.dataform.v1beta1.IUpdateWorkflowConfigRequest, callback: google.cloud.dataform.v1beta1.Dataform.UpdateWorkflowConfigCallback): void; + + /** + * Calls UpdateWorkflowConfig. + * @param request UpdateWorkflowConfigRequest message or plain object + * @returns Promise + */ + public updateWorkflowConfig(request: google.cloud.dataform.v1beta1.IUpdateWorkflowConfigRequest): Promise; + + /** + * Calls DeleteWorkflowConfig. + * @param request DeleteWorkflowConfigRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteWorkflowConfig(request: google.cloud.dataform.v1beta1.IDeleteWorkflowConfigRequest, callback: google.cloud.dataform.v1beta1.Dataform.DeleteWorkflowConfigCallback): void; + + /** + * Calls DeleteWorkflowConfig. + * @param request DeleteWorkflowConfigRequest message or plain object + * @returns Promise + */ + public deleteWorkflowConfig(request: google.cloud.dataform.v1beta1.IDeleteWorkflowConfigRequest): Promise; + /** * Calls ListWorkflowInvocations. * @param request ListWorkflowInvocationsRequest message or plain object @@ -9516,6 +9726,41 @@ export namespace google { */ type DeleteRepositoryCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + /** + * Callback as used by {@link google.cloud.dataform.v1beta1.Dataform|commitRepositoryChanges}. + * @param error Error, if any + * @param [response] Empty + */ + type CommitRepositoryChangesCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.cloud.dataform.v1beta1.Dataform|readRepositoryFile}. + * @param error Error, if any + * @param [response] ReadRepositoryFileResponse + */ + type ReadRepositoryFileCallback = (error: (Error|null), response?: google.cloud.dataform.v1beta1.ReadRepositoryFileResponse) => void; + + /** + * Callback as used by {@link google.cloud.dataform.v1beta1.Dataform|queryRepositoryDirectoryContents}. + * @param error Error, if any + * @param [response] QueryRepositoryDirectoryContentsResponse + */ + type QueryRepositoryDirectoryContentsCallback = (error: (Error|null), response?: google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse) => void; + + /** + * Callback as used by {@link google.cloud.dataform.v1beta1.Dataform|fetchRepositoryHistory}. + * @param error Error, if any + * @param [response] FetchRepositoryHistoryResponse + */ + type FetchRepositoryHistoryCallback = (error: (Error|null), response?: google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse) => void; + + /** + * Callback as used by {@link google.cloud.dataform.v1beta1.Dataform|computeRepositoryAccessTokenStatus}. + * @param error Error, if any + * @param [response] ComputeRepositoryAccessTokenStatusResponse + */ + type ComputeRepositoryAccessTokenStatusCallback = (error: (Error|null), response?: google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse) => void; + /** * Callback as used by {@link google.cloud.dataform.v1beta1.Dataform|fetchRemoteBranches}. * @param error Error, if any @@ -9663,6 +9908,41 @@ export namespace google { */ type WriteFileCallback = (error: (Error|null), response?: google.cloud.dataform.v1beta1.WriteFileResponse) => void; + /** + * Callback as used by {@link google.cloud.dataform.v1beta1.Dataform|listReleaseConfigs}. + * @param error Error, if any + * @param [response] ListReleaseConfigsResponse + */ + type ListReleaseConfigsCallback = (error: (Error|null), response?: google.cloud.dataform.v1beta1.ListReleaseConfigsResponse) => void; + + /** + * Callback as used by {@link google.cloud.dataform.v1beta1.Dataform|getReleaseConfig}. + * @param error Error, if any + * @param [response] ReleaseConfig + */ + type GetReleaseConfigCallback = (error: (Error|null), response?: google.cloud.dataform.v1beta1.ReleaseConfig) => void; + + /** + * Callback as used by {@link google.cloud.dataform.v1beta1.Dataform|createReleaseConfig}. + * @param error Error, if any + * @param [response] ReleaseConfig + */ + type CreateReleaseConfigCallback = (error: (Error|null), response?: google.cloud.dataform.v1beta1.ReleaseConfig) => void; + + /** + * Callback as used by {@link google.cloud.dataform.v1beta1.Dataform|updateReleaseConfig}. + * @param error Error, if any + * @param [response] ReleaseConfig + */ + type UpdateReleaseConfigCallback = (error: (Error|null), response?: google.cloud.dataform.v1beta1.ReleaseConfig) => void; + + /** + * Callback as used by {@link google.cloud.dataform.v1beta1.Dataform|deleteReleaseConfig}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteReleaseConfigCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + /** * Callback as used by {@link google.cloud.dataform.v1beta1.Dataform|listCompilationResults}. * @param error Error, if any @@ -9691,6 +9971,41 @@ export namespace google { */ type QueryCompilationResultActionsCallback = (error: (Error|null), response?: google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse) => void; + /** + * Callback as used by {@link google.cloud.dataform.v1beta1.Dataform|listWorkflowConfigs}. + * @param error Error, if any + * @param [response] ListWorkflowConfigsResponse + */ + type ListWorkflowConfigsCallback = (error: (Error|null), response?: google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse) => void; + + /** + * Callback as used by {@link google.cloud.dataform.v1beta1.Dataform|getWorkflowConfig}. + * @param error Error, if any + * @param [response] WorkflowConfig + */ + type GetWorkflowConfigCallback = (error: (Error|null), response?: google.cloud.dataform.v1beta1.WorkflowConfig) => void; + + /** + * Callback as used by {@link google.cloud.dataform.v1beta1.Dataform|createWorkflowConfig}. + * @param error Error, if any + * @param [response] WorkflowConfig + */ + type CreateWorkflowConfigCallback = (error: (Error|null), response?: google.cloud.dataform.v1beta1.WorkflowConfig) => void; + + /** + * Callback as used by {@link google.cloud.dataform.v1beta1.Dataform|updateWorkflowConfig}. + * @param error Error, if any + * @param [response] WorkflowConfig + */ + type UpdateWorkflowConfigCallback = (error: (Error|null), response?: google.cloud.dataform.v1beta1.WorkflowConfig) => void; + + /** + * Callback as used by {@link google.cloud.dataform.v1beta1.Dataform|deleteWorkflowConfig}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteWorkflowConfigCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + /** * Callback as used by {@link google.cloud.dataform.v1beta1.Dataform|listWorkflowInvocations}. * @param error Error, if any @@ -9740,8 +10055,26 @@ export namespace google { /** Repository name */ name?: (string|null); + /** Repository displayName */ + displayName?: (string|null); + /** Repository gitRemoteSettings */ gitRemoteSettings?: (google.cloud.dataform.v1beta1.Repository.IGitRemoteSettings|null); + + /** Repository npmrcEnvironmentVariablesSecretVersion */ + npmrcEnvironmentVariablesSecretVersion?: (string|null); + + /** Repository workspaceCompilationOverrides */ + workspaceCompilationOverrides?: (google.cloud.dataform.v1beta1.Repository.IWorkspaceCompilationOverrides|null); + + /** Repository labels */ + labels?: ({ [k: string]: string }|null); + + /** Repository setAuthenticatedUserAdmin */ + setAuthenticatedUserAdmin?: (boolean|null); + + /** Repository serviceAccount */ + serviceAccount?: (string|null); } /** Represents a Repository. */ @@ -9756,9 +10089,27 @@ export namespace google { /** Repository name. */ public name: string; + /** Repository displayName. */ + public displayName: string; + /** Repository gitRemoteSettings. */ public gitRemoteSettings?: (google.cloud.dataform.v1beta1.Repository.IGitRemoteSettings|null); + /** Repository npmrcEnvironmentVariablesSecretVersion. */ + public npmrcEnvironmentVariablesSecretVersion: string; + + /** Repository workspaceCompilationOverrides. */ + public workspaceCompilationOverrides?: (google.cloud.dataform.v1beta1.Repository.IWorkspaceCompilationOverrides|null); + + /** Repository labels. */ + public labels: { [k: string]: string }; + + /** Repository setAuthenticatedUserAdmin. */ + public setAuthenticatedUserAdmin: boolean; + + /** Repository serviceAccount. */ + public serviceAccount: string; + /** * Creates a new Repository instance using the specified properties. * @param [properties] Properties to set @@ -9851,6 +10202,9 @@ export namespace google { /** GitRemoteSettings authenticationTokenSecretVersion */ authenticationTokenSecretVersion?: (string|null); + /** GitRemoteSettings sshAuthenticationConfig */ + sshAuthenticationConfig?: (google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.ISshAuthenticationConfig|null); + /** GitRemoteSettings tokenStatus */ tokenStatus?: (google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus|keyof typeof google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus|null); } @@ -9873,6 +10227,9 @@ export namespace google { /** GitRemoteSettings authenticationTokenSecretVersion. */ public authenticationTokenSecretVersion: string; + /** GitRemoteSettings sshAuthenticationConfig. */ + public sshAuthenticationConfig?: (google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.ISshAuthenticationConfig|null); + /** GitRemoteSettings tokenStatus. */ public tokenStatus: (google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus|keyof typeof google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus); @@ -9956,58 +10313,270 @@ export namespace google { namespace GitRemoteSettings { - /** TokenStatus enum. */ - enum TokenStatus { - TOKEN_STATUS_UNSPECIFIED = 0, - NOT_FOUND = 1, - INVALID = 2, - VALID = 3 - } - } - } - - /** Properties of a ListRepositoriesRequest. */ - interface IListRepositoriesRequest { + /** Properties of a SshAuthenticationConfig. */ + interface ISshAuthenticationConfig { - /** ListRepositoriesRequest parent */ - parent?: (string|null); + /** SshAuthenticationConfig userPrivateKeySecretVersion */ + userPrivateKeySecretVersion?: (string|null); - /** ListRepositoriesRequest pageSize */ - pageSize?: (number|null); + /** SshAuthenticationConfig hostPublicKey */ + hostPublicKey?: (string|null); + } - /** ListRepositoriesRequest pageToken */ - pageToken?: (string|null); + /** Represents a SshAuthenticationConfig. */ + class SshAuthenticationConfig implements ISshAuthenticationConfig { - /** ListRepositoriesRequest orderBy */ - orderBy?: (string|null); + /** + * Constructs a new SshAuthenticationConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.ISshAuthenticationConfig); - /** ListRepositoriesRequest filter */ - filter?: (string|null); - } + /** SshAuthenticationConfig userPrivateKeySecretVersion. */ + public userPrivateKeySecretVersion: string; - /** Represents a ListRepositoriesRequest. */ - class ListRepositoriesRequest implements IListRepositoriesRequest { + /** SshAuthenticationConfig hostPublicKey. */ + public hostPublicKey: string; - /** - * Constructs a new ListRepositoriesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dataform.v1beta1.IListRepositoriesRequest); + /** + * Creates a new SshAuthenticationConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns SshAuthenticationConfig instance + */ + public static create(properties?: google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.ISshAuthenticationConfig): google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig; - /** ListRepositoriesRequest parent. */ - public parent: string; + /** + * Encodes the specified SshAuthenticationConfig message. Does not implicitly {@link google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig.verify|verify} messages. + * @param message SshAuthenticationConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.ISshAuthenticationConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** ListRepositoriesRequest pageSize. */ - public pageSize: number; + /** + * Encodes the specified SshAuthenticationConfig message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig.verify|verify} messages. + * @param message SshAuthenticationConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.ISshAuthenticationConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** ListRepositoriesRequest pageToken. */ - public pageToken: string; + /** + * Decodes a SshAuthenticationConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SshAuthenticationConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig; - /** ListRepositoriesRequest orderBy. */ - public orderBy: string; + /** + * Decodes a SshAuthenticationConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SshAuthenticationConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig; - /** ListRepositoriesRequest filter. */ - public filter: string; + /** + * Verifies a SshAuthenticationConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SshAuthenticationConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SshAuthenticationConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig; + + /** + * Creates a plain object from a SshAuthenticationConfig message. Also converts values to other types if specified. + * @param message SshAuthenticationConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SshAuthenticationConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SshAuthenticationConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** TokenStatus enum. */ + enum TokenStatus { + TOKEN_STATUS_UNSPECIFIED = 0, + NOT_FOUND = 1, + INVALID = 2, + VALID = 3 + } + } + + /** Properties of a WorkspaceCompilationOverrides. */ + interface IWorkspaceCompilationOverrides { + + /** WorkspaceCompilationOverrides defaultDatabase */ + defaultDatabase?: (string|null); + + /** WorkspaceCompilationOverrides schemaSuffix */ + schemaSuffix?: (string|null); + + /** WorkspaceCompilationOverrides tablePrefix */ + tablePrefix?: (string|null); + } + + /** Represents a WorkspaceCompilationOverrides. */ + class WorkspaceCompilationOverrides implements IWorkspaceCompilationOverrides { + + /** + * Constructs a new WorkspaceCompilationOverrides. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dataform.v1beta1.Repository.IWorkspaceCompilationOverrides); + + /** WorkspaceCompilationOverrides defaultDatabase. */ + public defaultDatabase: string; + + /** WorkspaceCompilationOverrides schemaSuffix. */ + public schemaSuffix: string; + + /** WorkspaceCompilationOverrides tablePrefix. */ + public tablePrefix: string; + + /** + * Creates a new WorkspaceCompilationOverrides instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkspaceCompilationOverrides instance + */ + public static create(properties?: google.cloud.dataform.v1beta1.Repository.IWorkspaceCompilationOverrides): google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides; + + /** + * Encodes the specified WorkspaceCompilationOverrides message. Does not implicitly {@link google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides.verify|verify} messages. + * @param message WorkspaceCompilationOverrides message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dataform.v1beta1.Repository.IWorkspaceCompilationOverrides, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified WorkspaceCompilationOverrides message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides.verify|verify} messages. + * @param message WorkspaceCompilationOverrides message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dataform.v1beta1.Repository.IWorkspaceCompilationOverrides, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkspaceCompilationOverrides message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkspaceCompilationOverrides + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides; + + /** + * Decodes a WorkspaceCompilationOverrides message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns WorkspaceCompilationOverrides + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides; + + /** + * Verifies a WorkspaceCompilationOverrides message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a WorkspaceCompilationOverrides message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns WorkspaceCompilationOverrides + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides; + + /** + * Creates a plain object from a WorkspaceCompilationOverrides message. Also converts values to other types if specified. + * @param message WorkspaceCompilationOverrides + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this WorkspaceCompilationOverrides to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for WorkspaceCompilationOverrides + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a ListRepositoriesRequest. */ + interface IListRepositoriesRequest { + + /** ListRepositoriesRequest parent */ + parent?: (string|null); + + /** ListRepositoriesRequest pageSize */ + pageSize?: (number|null); + + /** ListRepositoriesRequest pageToken */ + pageToken?: (string|null); + + /** ListRepositoriesRequest orderBy */ + orderBy?: (string|null); + + /** ListRepositoriesRequest filter */ + filter?: (string|null); + } + + /** Represents a ListRepositoriesRequest. */ + class ListRepositoriesRequest implements IListRepositoriesRequest { + + /** + * Constructs a new ListRepositoriesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dataform.v1beta1.IListRepositoriesRequest); + + /** ListRepositoriesRequest parent. */ + public parent: string; + + /** ListRepositoriesRequest pageSize. */ + public pageSize: number; + + /** ListRepositoriesRequest pageToken. */ + public pageToken: string; + + /** ListRepositoriesRequest orderBy. */ + public orderBy: string; + + /** ListRepositoriesRequest filter. */ + public filter: string; /** * Creates a new ListRepositoriesRequest instance using the specified properties. @@ -10608,5953 +11177,9307 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a FetchRemoteBranchesRequest. */ - interface IFetchRemoteBranchesRequest { + /** Properties of a CommitRepositoryChangesRequest. */ + interface ICommitRepositoryChangesRequest { - /** FetchRemoteBranchesRequest name */ + /** CommitRepositoryChangesRequest name */ name?: (string|null); + + /** CommitRepositoryChangesRequest commitMetadata */ + commitMetadata?: (google.cloud.dataform.v1beta1.ICommitMetadata|null); + + /** CommitRepositoryChangesRequest requiredHeadCommitSha */ + requiredHeadCommitSha?: (string|null); + + /** CommitRepositoryChangesRequest fileOperations */ + fileOperations?: ({ [k: string]: google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.IFileOperation }|null); } - /** Represents a FetchRemoteBranchesRequest. */ - class FetchRemoteBranchesRequest implements IFetchRemoteBranchesRequest { + /** Represents a CommitRepositoryChangesRequest. */ + class CommitRepositoryChangesRequest implements ICommitRepositoryChangesRequest { /** - * Constructs a new FetchRemoteBranchesRequest. + * Constructs a new CommitRepositoryChangesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dataform.v1beta1.IFetchRemoteBranchesRequest); + constructor(properties?: google.cloud.dataform.v1beta1.ICommitRepositoryChangesRequest); - /** FetchRemoteBranchesRequest name. */ + /** CommitRepositoryChangesRequest name. */ public name: string; + /** CommitRepositoryChangesRequest commitMetadata. */ + public commitMetadata?: (google.cloud.dataform.v1beta1.ICommitMetadata|null); + + /** CommitRepositoryChangesRequest requiredHeadCommitSha. */ + public requiredHeadCommitSha: string; + + /** CommitRepositoryChangesRequest fileOperations. */ + public fileOperations: { [k: string]: google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.IFileOperation }; + /** - * Creates a new FetchRemoteBranchesRequest instance using the specified properties. + * Creates a new CommitRepositoryChangesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns FetchRemoteBranchesRequest instance + * @returns CommitRepositoryChangesRequest instance */ - public static create(properties?: google.cloud.dataform.v1beta1.IFetchRemoteBranchesRequest): google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest; + public static create(properties?: google.cloud.dataform.v1beta1.ICommitRepositoryChangesRequest): google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest; /** - * Encodes the specified FetchRemoteBranchesRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest.verify|verify} messages. - * @param message FetchRemoteBranchesRequest message or plain object to encode + * Encodes the specified CommitRepositoryChangesRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.verify|verify} messages. + * @param message CommitRepositoryChangesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dataform.v1beta1.IFetchRemoteBranchesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dataform.v1beta1.ICommitRepositoryChangesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FetchRemoteBranchesRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest.verify|verify} messages. - * @param message FetchRemoteBranchesRequest message or plain object to encode + * Encodes the specified CommitRepositoryChangesRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.verify|verify} messages. + * @param message CommitRepositoryChangesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.IFetchRemoteBranchesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dataform.v1beta1.ICommitRepositoryChangesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FetchRemoteBranchesRequest message from the specified reader or buffer. + * Decodes a CommitRepositoryChangesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FetchRemoteBranchesRequest + * @returns CommitRepositoryChangesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest; /** - * Decodes a FetchRemoteBranchesRequest message from the specified reader or buffer, length delimited. + * Decodes a CommitRepositoryChangesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FetchRemoteBranchesRequest + * @returns CommitRepositoryChangesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest; /** - * Verifies a FetchRemoteBranchesRequest message. + * Verifies a CommitRepositoryChangesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a FetchRemoteBranchesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CommitRepositoryChangesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FetchRemoteBranchesRequest + * @returns CommitRepositoryChangesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest; /** - * Creates a plain object from a FetchRemoteBranchesRequest message. Also converts values to other types if specified. - * @param message FetchRemoteBranchesRequest + * Creates a plain object from a CommitRepositoryChangesRequest message. Also converts values to other types if specified. + * @param message CommitRepositoryChangesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FetchRemoteBranchesRequest to JSON. + * Converts this CommitRepositoryChangesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FetchRemoteBranchesRequest + * Gets the default type url for CommitRepositoryChangesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a FetchRemoteBranchesResponse. */ - interface IFetchRemoteBranchesResponse { + namespace CommitRepositoryChangesRequest { - /** FetchRemoteBranchesResponse branches */ - branches?: (string[]|null); - } + /** Properties of a FileOperation. */ + interface IFileOperation { - /** Represents a FetchRemoteBranchesResponse. */ - class FetchRemoteBranchesResponse implements IFetchRemoteBranchesResponse { + /** FileOperation writeFile */ + writeFile?: (google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.IWriteFile|null); - /** - * Constructs a new FetchRemoteBranchesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dataform.v1beta1.IFetchRemoteBranchesResponse); + /** FileOperation deleteFile */ + deleteFile?: (google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.IDeleteFile|null); + } - /** FetchRemoteBranchesResponse branches. */ - public branches: string[]; + /** Represents a FileOperation. */ + class FileOperation implements IFileOperation { - /** - * Creates a new FetchRemoteBranchesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns FetchRemoteBranchesResponse instance - */ - public static create(properties?: google.cloud.dataform.v1beta1.IFetchRemoteBranchesResponse): google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse; + /** + * Constructs a new FileOperation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.IFileOperation); - /** - * Encodes the specified FetchRemoteBranchesResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse.verify|verify} messages. - * @param message FetchRemoteBranchesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dataform.v1beta1.IFetchRemoteBranchesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** FileOperation writeFile. */ + public writeFile?: (google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.IWriteFile|null); - /** - * Encodes the specified FetchRemoteBranchesResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse.verify|verify} messages. - * @param message FetchRemoteBranchesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.IFetchRemoteBranchesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** FileOperation deleteFile. */ + public deleteFile?: (google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.IDeleteFile|null); - /** - * Decodes a FetchRemoteBranchesResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FetchRemoteBranchesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse; + /** FileOperation operation. */ + public operation?: ("writeFile"|"deleteFile"); - /** - * Decodes a FetchRemoteBranchesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FetchRemoteBranchesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse; + /** + * Creates a new FileOperation instance using the specified properties. + * @param [properties] Properties to set + * @returns FileOperation instance + */ + public static create(properties?: google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.IFileOperation): google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation; - /** - * Verifies a FetchRemoteBranchesResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Encodes the specified FileOperation message. Does not implicitly {@link google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.verify|verify} messages. + * @param message FileOperation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.IFileOperation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a FetchRemoteBranchesResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FetchRemoteBranchesResponse - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse; + /** + * Encodes the specified FileOperation message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.verify|verify} messages. + * @param message FileOperation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.IFileOperation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a FetchRemoteBranchesResponse message. Also converts values to other types if specified. - * @param message FetchRemoteBranchesResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a FileOperation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FileOperation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation; - /** - * Converts this FetchRemoteBranchesResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Decodes a FileOperation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FileOperation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation; - /** - * Gets the default type url for FetchRemoteBranchesResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; + /** + * Verifies a FileOperation message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FileOperation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FileOperation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation; + + /** + * Creates a plain object from a FileOperation message. Also converts values to other types if specified. + * @param message FileOperation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FileOperation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FileOperation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace FileOperation { + + /** Properties of a WriteFile. */ + interface IWriteFile { + + /** WriteFile contents */ + contents?: (Uint8Array|string|null); + } + + /** Represents a WriteFile. */ + class WriteFile implements IWriteFile { + + /** + * Constructs a new WriteFile. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.IWriteFile); + + /** WriteFile contents. */ + public contents: (Uint8Array|string); + + /** + * Creates a new WriteFile instance using the specified properties. + * @param [properties] Properties to set + * @returns WriteFile instance + */ + public static create(properties?: google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.IWriteFile): google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile; + + /** + * Encodes the specified WriteFile message. Does not implicitly {@link google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile.verify|verify} messages. + * @param message WriteFile message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.IWriteFile, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified WriteFile message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile.verify|verify} messages. + * @param message WriteFile message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.IWriteFile, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WriteFile message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WriteFile + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile; + + /** + * Decodes a WriteFile message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns WriteFile + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile; + + /** + * Verifies a WriteFile message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a WriteFile message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns WriteFile + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile; + + /** + * Creates a plain object from a WriteFile message. Also converts values to other types if specified. + * @param message WriteFile + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this WriteFile to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for WriteFile + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteFile. */ + interface IDeleteFile { + } + + /** Represents a DeleteFile. */ + class DeleteFile implements IDeleteFile { + + /** + * Constructs a new DeleteFile. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.IDeleteFile); + + /** + * Creates a new DeleteFile instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteFile instance + */ + public static create(properties?: google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.IDeleteFile): google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile; + + /** + * Encodes the specified DeleteFile message. Does not implicitly {@link google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile.verify|verify} messages. + * @param message DeleteFile message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.IDeleteFile, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteFile message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile.verify|verify} messages. + * @param message DeleteFile message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.IDeleteFile, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteFile message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteFile + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile; + + /** + * Decodes a DeleteFile message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteFile + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile; + + /** + * Verifies a DeleteFile message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteFile message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteFile + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile; + + /** + * Creates a plain object from a DeleteFile message. Also converts values to other types if specified. + * @param message DeleteFile + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteFile to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteFile + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } } - /** Properties of a Workspace. */ - interface IWorkspace { + /** Properties of a ReadRepositoryFileRequest. */ + interface IReadRepositoryFileRequest { - /** Workspace name */ + /** ReadRepositoryFileRequest name */ name?: (string|null); + + /** ReadRepositoryFileRequest commitSha */ + commitSha?: (string|null); + + /** ReadRepositoryFileRequest path */ + path?: (string|null); } - /** Represents a Workspace. */ - class Workspace implements IWorkspace { + /** Represents a ReadRepositoryFileRequest. */ + class ReadRepositoryFileRequest implements IReadRepositoryFileRequest { /** - * Constructs a new Workspace. + * Constructs a new ReadRepositoryFileRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dataform.v1beta1.IWorkspace); + constructor(properties?: google.cloud.dataform.v1beta1.IReadRepositoryFileRequest); - /** Workspace name. */ + /** ReadRepositoryFileRequest name. */ public name: string; + /** ReadRepositoryFileRequest commitSha. */ + public commitSha: string; + + /** ReadRepositoryFileRequest path. */ + public path: string; + /** - * Creates a new Workspace instance using the specified properties. + * Creates a new ReadRepositoryFileRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Workspace instance + * @returns ReadRepositoryFileRequest instance */ - public static create(properties?: google.cloud.dataform.v1beta1.IWorkspace): google.cloud.dataform.v1beta1.Workspace; + public static create(properties?: google.cloud.dataform.v1beta1.IReadRepositoryFileRequest): google.cloud.dataform.v1beta1.ReadRepositoryFileRequest; /** - * Encodes the specified Workspace message. Does not implicitly {@link google.cloud.dataform.v1beta1.Workspace.verify|verify} messages. - * @param message Workspace message or plain object to encode + * Encodes the specified ReadRepositoryFileRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.ReadRepositoryFileRequest.verify|verify} messages. + * @param message ReadRepositoryFileRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dataform.v1beta1.IWorkspace, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dataform.v1beta1.IReadRepositoryFileRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Workspace message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.Workspace.verify|verify} messages. - * @param message Workspace message or plain object to encode + * Encodes the specified ReadRepositoryFileRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.ReadRepositoryFileRequest.verify|verify} messages. + * @param message ReadRepositoryFileRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.IWorkspace, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IReadRepositoryFileRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Workspace message from the specified reader or buffer. + * Decodes a ReadRepositoryFileRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Workspace + * @returns ReadRepositoryFileRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.Workspace; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.ReadRepositoryFileRequest; /** - * Decodes a Workspace message from the specified reader or buffer, length delimited. + * Decodes a ReadRepositoryFileRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Workspace + * @returns ReadRepositoryFileRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.Workspace; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.ReadRepositoryFileRequest; /** - * Verifies a Workspace message. + * Verifies a ReadRepositoryFileRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Workspace message from a plain object. Also converts values to their respective internal types. + * Creates a ReadRepositoryFileRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Workspace + * @returns ReadRepositoryFileRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.Workspace; + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.ReadRepositoryFileRequest; /** - * Creates a plain object from a Workspace message. Also converts values to other types if specified. - * @param message Workspace + * Creates a plain object from a ReadRepositoryFileRequest message. Also converts values to other types if specified. + * @param message ReadRepositoryFileRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dataform.v1beta1.Workspace, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dataform.v1beta1.ReadRepositoryFileRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Workspace to JSON. + * Converts this ReadRepositoryFileRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Workspace + * Gets the default type url for ReadRepositoryFileRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListWorkspacesRequest. */ - interface IListWorkspacesRequest { - - /** ListWorkspacesRequest parent */ - parent?: (string|null); - - /** ListWorkspacesRequest pageSize */ - pageSize?: (number|null); - - /** ListWorkspacesRequest pageToken */ - pageToken?: (string|null); - - /** ListWorkspacesRequest orderBy */ - orderBy?: (string|null); + /** Properties of a ReadRepositoryFileResponse. */ + interface IReadRepositoryFileResponse { - /** ListWorkspacesRequest filter */ - filter?: (string|null); + /** ReadRepositoryFileResponse contents */ + contents?: (Uint8Array|string|null); } - /** Represents a ListWorkspacesRequest. */ - class ListWorkspacesRequest implements IListWorkspacesRequest { + /** Represents a ReadRepositoryFileResponse. */ + class ReadRepositoryFileResponse implements IReadRepositoryFileResponse { /** - * Constructs a new ListWorkspacesRequest. + * Constructs a new ReadRepositoryFileResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dataform.v1beta1.IListWorkspacesRequest); + constructor(properties?: google.cloud.dataform.v1beta1.IReadRepositoryFileResponse); - /** ListWorkspacesRequest parent. */ - public parent: string; + /** ReadRepositoryFileResponse contents. */ + public contents: (Uint8Array|string); - /** ListWorkspacesRequest pageSize. */ - public pageSize: number; - - /** ListWorkspacesRequest pageToken. */ - public pageToken: string; - - /** ListWorkspacesRequest orderBy. */ - public orderBy: string; - - /** ListWorkspacesRequest filter. */ - public filter: string; + /** + * Creates a new ReadRepositoryFileResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ReadRepositoryFileResponse instance + */ + public static create(properties?: google.cloud.dataform.v1beta1.IReadRepositoryFileResponse): google.cloud.dataform.v1beta1.ReadRepositoryFileResponse; /** - * Creates a new ListWorkspacesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListWorkspacesRequest instance - */ - public static create(properties?: google.cloud.dataform.v1beta1.IListWorkspacesRequest): google.cloud.dataform.v1beta1.ListWorkspacesRequest; - - /** - * Encodes the specified ListWorkspacesRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.ListWorkspacesRequest.verify|verify} messages. - * @param message ListWorkspacesRequest message or plain object to encode + * Encodes the specified ReadRepositoryFileResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.ReadRepositoryFileResponse.verify|verify} messages. + * @param message ReadRepositoryFileResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dataform.v1beta1.IListWorkspacesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dataform.v1beta1.IReadRepositoryFileResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListWorkspacesRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.ListWorkspacesRequest.verify|verify} messages. - * @param message ListWorkspacesRequest message or plain object to encode + * Encodes the specified ReadRepositoryFileResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.ReadRepositoryFileResponse.verify|verify} messages. + * @param message ReadRepositoryFileResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.IListWorkspacesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IReadRepositoryFileResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListWorkspacesRequest message from the specified reader or buffer. + * Decodes a ReadRepositoryFileResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListWorkspacesRequest + * @returns ReadRepositoryFileResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.ListWorkspacesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.ReadRepositoryFileResponse; /** - * Decodes a ListWorkspacesRequest message from the specified reader or buffer, length delimited. + * Decodes a ReadRepositoryFileResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListWorkspacesRequest + * @returns ReadRepositoryFileResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.ListWorkspacesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.ReadRepositoryFileResponse; /** - * Verifies a ListWorkspacesRequest message. + * Verifies a ReadRepositoryFileResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListWorkspacesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ReadRepositoryFileResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListWorkspacesRequest + * @returns ReadRepositoryFileResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.ListWorkspacesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.ReadRepositoryFileResponse; /** - * Creates a plain object from a ListWorkspacesRequest message. Also converts values to other types if specified. - * @param message ListWorkspacesRequest + * Creates a plain object from a ReadRepositoryFileResponse message. Also converts values to other types if specified. + * @param message ReadRepositoryFileResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dataform.v1beta1.ListWorkspacesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dataform.v1beta1.ReadRepositoryFileResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListWorkspacesRequest to JSON. + * Converts this ReadRepositoryFileResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListWorkspacesRequest + * Gets the default type url for ReadRepositoryFileResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListWorkspacesResponse. */ - interface IListWorkspacesResponse { + /** Properties of a QueryRepositoryDirectoryContentsRequest. */ + interface IQueryRepositoryDirectoryContentsRequest { - /** ListWorkspacesResponse workspaces */ - workspaces?: (google.cloud.dataform.v1beta1.IWorkspace[]|null); + /** QueryRepositoryDirectoryContentsRequest name */ + name?: (string|null); - /** ListWorkspacesResponse nextPageToken */ - nextPageToken?: (string|null); + /** QueryRepositoryDirectoryContentsRequest commitSha */ + commitSha?: (string|null); - /** ListWorkspacesResponse unreachable */ - unreachable?: (string[]|null); + /** QueryRepositoryDirectoryContentsRequest path */ + path?: (string|null); + + /** QueryRepositoryDirectoryContentsRequest pageSize */ + pageSize?: (number|null); + + /** QueryRepositoryDirectoryContentsRequest pageToken */ + pageToken?: (string|null); } - /** Represents a ListWorkspacesResponse. */ - class ListWorkspacesResponse implements IListWorkspacesResponse { + /** Represents a QueryRepositoryDirectoryContentsRequest. */ + class QueryRepositoryDirectoryContentsRequest implements IQueryRepositoryDirectoryContentsRequest { /** - * Constructs a new ListWorkspacesResponse. + * Constructs a new QueryRepositoryDirectoryContentsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dataform.v1beta1.IListWorkspacesResponse); + constructor(properties?: google.cloud.dataform.v1beta1.IQueryRepositoryDirectoryContentsRequest); - /** ListWorkspacesResponse workspaces. */ - public workspaces: google.cloud.dataform.v1beta1.IWorkspace[]; + /** QueryRepositoryDirectoryContentsRequest name. */ + public name: string; - /** ListWorkspacesResponse nextPageToken. */ - public nextPageToken: string; + /** QueryRepositoryDirectoryContentsRequest commitSha. */ + public commitSha: string; - /** ListWorkspacesResponse unreachable. */ - public unreachable: string[]; + /** QueryRepositoryDirectoryContentsRequest path. */ + public path: string; + + /** QueryRepositoryDirectoryContentsRequest pageSize. */ + public pageSize: number; + + /** QueryRepositoryDirectoryContentsRequest pageToken. */ + public pageToken: string; /** - * Creates a new ListWorkspacesResponse instance using the specified properties. + * Creates a new QueryRepositoryDirectoryContentsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListWorkspacesResponse instance + * @returns QueryRepositoryDirectoryContentsRequest instance */ - public static create(properties?: google.cloud.dataform.v1beta1.IListWorkspacesResponse): google.cloud.dataform.v1beta1.ListWorkspacesResponse; + public static create(properties?: google.cloud.dataform.v1beta1.IQueryRepositoryDirectoryContentsRequest): google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest; /** - * Encodes the specified ListWorkspacesResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.ListWorkspacesResponse.verify|verify} messages. - * @param message ListWorkspacesResponse message or plain object to encode + * Encodes the specified QueryRepositoryDirectoryContentsRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest.verify|verify} messages. + * @param message QueryRepositoryDirectoryContentsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dataform.v1beta1.IListWorkspacesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dataform.v1beta1.IQueryRepositoryDirectoryContentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListWorkspacesResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.ListWorkspacesResponse.verify|verify} messages. - * @param message ListWorkspacesResponse message or plain object to encode + * Encodes the specified QueryRepositoryDirectoryContentsRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest.verify|verify} messages. + * @param message QueryRepositoryDirectoryContentsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.IListWorkspacesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IQueryRepositoryDirectoryContentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListWorkspacesResponse message from the specified reader or buffer. + * Decodes a QueryRepositoryDirectoryContentsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListWorkspacesResponse + * @returns QueryRepositoryDirectoryContentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.ListWorkspacesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest; /** - * Decodes a ListWorkspacesResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryRepositoryDirectoryContentsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListWorkspacesResponse + * @returns QueryRepositoryDirectoryContentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.ListWorkspacesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest; /** - * Verifies a ListWorkspacesResponse message. + * Verifies a QueryRepositoryDirectoryContentsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListWorkspacesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryRepositoryDirectoryContentsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListWorkspacesResponse + * @returns QueryRepositoryDirectoryContentsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.ListWorkspacesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest; /** - * Creates a plain object from a ListWorkspacesResponse message. Also converts values to other types if specified. - * @param message ListWorkspacesResponse + * Creates a plain object from a QueryRepositoryDirectoryContentsRequest message. Also converts values to other types if specified. + * @param message QueryRepositoryDirectoryContentsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dataform.v1beta1.ListWorkspacesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListWorkspacesResponse to JSON. + * Converts this QueryRepositoryDirectoryContentsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListWorkspacesResponse + * Gets the default type url for QueryRepositoryDirectoryContentsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetWorkspaceRequest. */ - interface IGetWorkspaceRequest { + /** Properties of a QueryRepositoryDirectoryContentsResponse. */ + interface IQueryRepositoryDirectoryContentsResponse { - /** GetWorkspaceRequest name */ - name?: (string|null); + /** QueryRepositoryDirectoryContentsResponse directoryEntries */ + directoryEntries?: (google.cloud.dataform.v1beta1.IDirectoryEntry[]|null); + + /** QueryRepositoryDirectoryContentsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a GetWorkspaceRequest. */ - class GetWorkspaceRequest implements IGetWorkspaceRequest { + /** Represents a QueryRepositoryDirectoryContentsResponse. */ + class QueryRepositoryDirectoryContentsResponse implements IQueryRepositoryDirectoryContentsResponse { /** - * Constructs a new GetWorkspaceRequest. + * Constructs a new QueryRepositoryDirectoryContentsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dataform.v1beta1.IGetWorkspaceRequest); + constructor(properties?: google.cloud.dataform.v1beta1.IQueryRepositoryDirectoryContentsResponse); - /** GetWorkspaceRequest name. */ - public name: string; + /** QueryRepositoryDirectoryContentsResponse directoryEntries. */ + public directoryEntries: google.cloud.dataform.v1beta1.IDirectoryEntry[]; + + /** QueryRepositoryDirectoryContentsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new GetWorkspaceRequest instance using the specified properties. + * Creates a new QueryRepositoryDirectoryContentsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetWorkspaceRequest instance + * @returns QueryRepositoryDirectoryContentsResponse instance */ - public static create(properties?: google.cloud.dataform.v1beta1.IGetWorkspaceRequest): google.cloud.dataform.v1beta1.GetWorkspaceRequest; + public static create(properties?: google.cloud.dataform.v1beta1.IQueryRepositoryDirectoryContentsResponse): google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse; /** - * Encodes the specified GetWorkspaceRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.GetWorkspaceRequest.verify|verify} messages. - * @param message GetWorkspaceRequest message or plain object to encode + * Encodes the specified QueryRepositoryDirectoryContentsResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse.verify|verify} messages. + * @param message QueryRepositoryDirectoryContentsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dataform.v1beta1.IGetWorkspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dataform.v1beta1.IQueryRepositoryDirectoryContentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetWorkspaceRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.GetWorkspaceRequest.verify|verify} messages. - * @param message GetWorkspaceRequest message or plain object to encode + * Encodes the specified QueryRepositoryDirectoryContentsResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse.verify|verify} messages. + * @param message QueryRepositoryDirectoryContentsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.IGetWorkspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IQueryRepositoryDirectoryContentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetWorkspaceRequest message from the specified reader or buffer. + * Decodes a QueryRepositoryDirectoryContentsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetWorkspaceRequest + * @returns QueryRepositoryDirectoryContentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.GetWorkspaceRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse; /** - * Decodes a GetWorkspaceRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryRepositoryDirectoryContentsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetWorkspaceRequest + * @returns QueryRepositoryDirectoryContentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.GetWorkspaceRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse; /** - * Verifies a GetWorkspaceRequest message. + * Verifies a QueryRepositoryDirectoryContentsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetWorkspaceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryRepositoryDirectoryContentsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetWorkspaceRequest + * @returns QueryRepositoryDirectoryContentsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.GetWorkspaceRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse; /** - * Creates a plain object from a GetWorkspaceRequest message. Also converts values to other types if specified. - * @param message GetWorkspaceRequest + * Creates a plain object from a QueryRepositoryDirectoryContentsResponse message. Also converts values to other types if specified. + * @param message QueryRepositoryDirectoryContentsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dataform.v1beta1.GetWorkspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetWorkspaceRequest to JSON. + * Converts this QueryRepositoryDirectoryContentsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetWorkspaceRequest + * Gets the default type url for QueryRepositoryDirectoryContentsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateWorkspaceRequest. */ - interface ICreateWorkspaceRequest { + /** Properties of a FetchRepositoryHistoryRequest. */ + interface IFetchRepositoryHistoryRequest { - /** CreateWorkspaceRequest parent */ - parent?: (string|null); + /** FetchRepositoryHistoryRequest name */ + name?: (string|null); - /** CreateWorkspaceRequest workspace */ - workspace?: (google.cloud.dataform.v1beta1.IWorkspace|null); + /** FetchRepositoryHistoryRequest pageSize */ + pageSize?: (number|null); - /** CreateWorkspaceRequest workspaceId */ - workspaceId?: (string|null); + /** FetchRepositoryHistoryRequest pageToken */ + pageToken?: (string|null); } - /** Represents a CreateWorkspaceRequest. */ - class CreateWorkspaceRequest implements ICreateWorkspaceRequest { + /** Represents a FetchRepositoryHistoryRequest. */ + class FetchRepositoryHistoryRequest implements IFetchRepositoryHistoryRequest { /** - * Constructs a new CreateWorkspaceRequest. + * Constructs a new FetchRepositoryHistoryRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dataform.v1beta1.ICreateWorkspaceRequest); + constructor(properties?: google.cloud.dataform.v1beta1.IFetchRepositoryHistoryRequest); - /** CreateWorkspaceRequest parent. */ - public parent: string; + /** FetchRepositoryHistoryRequest name. */ + public name: string; - /** CreateWorkspaceRequest workspace. */ - public workspace?: (google.cloud.dataform.v1beta1.IWorkspace|null); + /** FetchRepositoryHistoryRequest pageSize. */ + public pageSize: number; - /** CreateWorkspaceRequest workspaceId. */ - public workspaceId: string; + /** FetchRepositoryHistoryRequest pageToken. */ + public pageToken: string; /** - * Creates a new CreateWorkspaceRequest instance using the specified properties. + * Creates a new FetchRepositoryHistoryRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateWorkspaceRequest instance + * @returns FetchRepositoryHistoryRequest instance */ - public static create(properties?: google.cloud.dataform.v1beta1.ICreateWorkspaceRequest): google.cloud.dataform.v1beta1.CreateWorkspaceRequest; + public static create(properties?: google.cloud.dataform.v1beta1.IFetchRepositoryHistoryRequest): google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest; /** - * Encodes the specified CreateWorkspaceRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.CreateWorkspaceRequest.verify|verify} messages. - * @param message CreateWorkspaceRequest message or plain object to encode + * Encodes the specified FetchRepositoryHistoryRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest.verify|verify} messages. + * @param message FetchRepositoryHistoryRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dataform.v1beta1.ICreateWorkspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dataform.v1beta1.IFetchRepositoryHistoryRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateWorkspaceRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CreateWorkspaceRequest.verify|verify} messages. - * @param message CreateWorkspaceRequest message or plain object to encode + * Encodes the specified FetchRepositoryHistoryRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest.verify|verify} messages. + * @param message FetchRepositoryHistoryRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.ICreateWorkspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IFetchRepositoryHistoryRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateWorkspaceRequest message from the specified reader or buffer. + * Decodes a FetchRepositoryHistoryRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateWorkspaceRequest + * @returns FetchRepositoryHistoryRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.CreateWorkspaceRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest; /** - * Decodes a CreateWorkspaceRequest message from the specified reader or buffer, length delimited. + * Decodes a FetchRepositoryHistoryRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateWorkspaceRequest + * @returns FetchRepositoryHistoryRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.CreateWorkspaceRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest; /** - * Verifies a CreateWorkspaceRequest message. + * Verifies a FetchRepositoryHistoryRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateWorkspaceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FetchRepositoryHistoryRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateWorkspaceRequest + * @returns FetchRepositoryHistoryRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.CreateWorkspaceRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest; /** - * Creates a plain object from a CreateWorkspaceRequest message. Also converts values to other types if specified. - * @param message CreateWorkspaceRequest + * Creates a plain object from a FetchRepositoryHistoryRequest message. Also converts values to other types if specified. + * @param message FetchRepositoryHistoryRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dataform.v1beta1.CreateWorkspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateWorkspaceRequest to JSON. + * Converts this FetchRepositoryHistoryRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateWorkspaceRequest + * Gets the default type url for FetchRepositoryHistoryRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteWorkspaceRequest. */ - interface IDeleteWorkspaceRequest { + /** Properties of a FetchRepositoryHistoryResponse. */ + interface IFetchRepositoryHistoryResponse { - /** DeleteWorkspaceRequest name */ - name?: (string|null); + /** FetchRepositoryHistoryResponse commits */ + commits?: (google.cloud.dataform.v1beta1.ICommitLogEntry[]|null); + + /** FetchRepositoryHistoryResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a DeleteWorkspaceRequest. */ - class DeleteWorkspaceRequest implements IDeleteWorkspaceRequest { + /** Represents a FetchRepositoryHistoryResponse. */ + class FetchRepositoryHistoryResponse implements IFetchRepositoryHistoryResponse { /** - * Constructs a new DeleteWorkspaceRequest. + * Constructs a new FetchRepositoryHistoryResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dataform.v1beta1.IDeleteWorkspaceRequest); + constructor(properties?: google.cloud.dataform.v1beta1.IFetchRepositoryHistoryResponse); - /** DeleteWorkspaceRequest name. */ - public name: string; + /** FetchRepositoryHistoryResponse commits. */ + public commits: google.cloud.dataform.v1beta1.ICommitLogEntry[]; + + /** FetchRepositoryHistoryResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new DeleteWorkspaceRequest instance using the specified properties. + * Creates a new FetchRepositoryHistoryResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteWorkspaceRequest instance + * @returns FetchRepositoryHistoryResponse instance */ - public static create(properties?: google.cloud.dataform.v1beta1.IDeleteWorkspaceRequest): google.cloud.dataform.v1beta1.DeleteWorkspaceRequest; + public static create(properties?: google.cloud.dataform.v1beta1.IFetchRepositoryHistoryResponse): google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse; /** - * Encodes the specified DeleteWorkspaceRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.DeleteWorkspaceRequest.verify|verify} messages. - * @param message DeleteWorkspaceRequest message or plain object to encode + * Encodes the specified FetchRepositoryHistoryResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse.verify|verify} messages. + * @param message FetchRepositoryHistoryResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dataform.v1beta1.IDeleteWorkspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dataform.v1beta1.IFetchRepositoryHistoryResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteWorkspaceRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.DeleteWorkspaceRequest.verify|verify} messages. - * @param message DeleteWorkspaceRequest message or plain object to encode + * Encodes the specified FetchRepositoryHistoryResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse.verify|verify} messages. + * @param message FetchRepositoryHistoryResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.IDeleteWorkspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IFetchRepositoryHistoryResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteWorkspaceRequest message from the specified reader or buffer. + * Decodes a FetchRepositoryHistoryResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteWorkspaceRequest + * @returns FetchRepositoryHistoryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.DeleteWorkspaceRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse; /** - * Decodes a DeleteWorkspaceRequest message from the specified reader or buffer, length delimited. + * Decodes a FetchRepositoryHistoryResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteWorkspaceRequest + * @returns FetchRepositoryHistoryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.DeleteWorkspaceRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse; /** - * Verifies a DeleteWorkspaceRequest message. + * Verifies a FetchRepositoryHistoryResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteWorkspaceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FetchRepositoryHistoryResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteWorkspaceRequest + * @returns FetchRepositoryHistoryResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.DeleteWorkspaceRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse; /** - * Creates a plain object from a DeleteWorkspaceRequest message. Also converts values to other types if specified. - * @param message DeleteWorkspaceRequest + * Creates a plain object from a FetchRepositoryHistoryResponse message. Also converts values to other types if specified. + * @param message FetchRepositoryHistoryResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dataform.v1beta1.DeleteWorkspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteWorkspaceRequest to JSON. + * Converts this FetchRepositoryHistoryResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteWorkspaceRequest + * Gets the default type url for FetchRepositoryHistoryResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CommitAuthor. */ - interface ICommitAuthor { + /** Properties of a CommitLogEntry. */ + interface ICommitLogEntry { - /** CommitAuthor name */ - name?: (string|null); + /** CommitLogEntry commitTime */ + commitTime?: (google.protobuf.ITimestamp|null); - /** CommitAuthor emailAddress */ - emailAddress?: (string|null); + /** CommitLogEntry commitSha */ + commitSha?: (string|null); + + /** CommitLogEntry author */ + author?: (google.cloud.dataform.v1beta1.ICommitAuthor|null); + + /** CommitLogEntry commitMessage */ + commitMessage?: (string|null); } - /** Represents a CommitAuthor. */ - class CommitAuthor implements ICommitAuthor { + /** Represents a CommitLogEntry. */ + class CommitLogEntry implements ICommitLogEntry { /** - * Constructs a new CommitAuthor. + * Constructs a new CommitLogEntry. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dataform.v1beta1.ICommitAuthor); + constructor(properties?: google.cloud.dataform.v1beta1.ICommitLogEntry); - /** CommitAuthor name. */ - public name: string; + /** CommitLogEntry commitTime. */ + public commitTime?: (google.protobuf.ITimestamp|null); - /** CommitAuthor emailAddress. */ - public emailAddress: string; + /** CommitLogEntry commitSha. */ + public commitSha: string; + + /** CommitLogEntry author. */ + public author?: (google.cloud.dataform.v1beta1.ICommitAuthor|null); + + /** CommitLogEntry commitMessage. */ + public commitMessage: string; /** - * Creates a new CommitAuthor instance using the specified properties. + * Creates a new CommitLogEntry instance using the specified properties. * @param [properties] Properties to set - * @returns CommitAuthor instance + * @returns CommitLogEntry instance */ - public static create(properties?: google.cloud.dataform.v1beta1.ICommitAuthor): google.cloud.dataform.v1beta1.CommitAuthor; + public static create(properties?: google.cloud.dataform.v1beta1.ICommitLogEntry): google.cloud.dataform.v1beta1.CommitLogEntry; /** - * Encodes the specified CommitAuthor message. Does not implicitly {@link google.cloud.dataform.v1beta1.CommitAuthor.verify|verify} messages. - * @param message CommitAuthor message or plain object to encode + * Encodes the specified CommitLogEntry message. Does not implicitly {@link google.cloud.dataform.v1beta1.CommitLogEntry.verify|verify} messages. + * @param message CommitLogEntry message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dataform.v1beta1.ICommitAuthor, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dataform.v1beta1.ICommitLogEntry, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CommitAuthor message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CommitAuthor.verify|verify} messages. - * @param message CommitAuthor message or plain object to encode + * Encodes the specified CommitLogEntry message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CommitLogEntry.verify|verify} messages. + * @param message CommitLogEntry message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.ICommitAuthor, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dataform.v1beta1.ICommitLogEntry, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CommitAuthor message from the specified reader or buffer. + * Decodes a CommitLogEntry message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CommitAuthor + * @returns CommitLogEntry * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.CommitAuthor; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.CommitLogEntry; /** - * Decodes a CommitAuthor message from the specified reader or buffer, length delimited. + * Decodes a CommitLogEntry message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CommitAuthor + * @returns CommitLogEntry * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.CommitAuthor; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.CommitLogEntry; /** - * Verifies a CommitAuthor message. + * Verifies a CommitLogEntry message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CommitAuthor message from a plain object. Also converts values to their respective internal types. + * Creates a CommitLogEntry message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CommitAuthor + * @returns CommitLogEntry */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.CommitAuthor; + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.CommitLogEntry; /** - * Creates a plain object from a CommitAuthor message. Also converts values to other types if specified. - * @param message CommitAuthor + * Creates a plain object from a CommitLogEntry message. Also converts values to other types if specified. + * @param message CommitLogEntry * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dataform.v1beta1.CommitAuthor, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dataform.v1beta1.CommitLogEntry, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CommitAuthor to JSON. + * Converts this CommitLogEntry to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CommitAuthor + * Gets the default type url for CommitLogEntry * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PullGitCommitsRequest. */ - interface IPullGitCommitsRequest { - - /** PullGitCommitsRequest name */ - name?: (string|null); - - /** PullGitCommitsRequest remoteBranch */ - remoteBranch?: (string|null); + /** Properties of a CommitMetadata. */ + interface ICommitMetadata { - /** PullGitCommitsRequest author */ + /** CommitMetadata author */ author?: (google.cloud.dataform.v1beta1.ICommitAuthor|null); + + /** CommitMetadata commitMessage */ + commitMessage?: (string|null); } - /** Represents a PullGitCommitsRequest. */ - class PullGitCommitsRequest implements IPullGitCommitsRequest { + /** Represents a CommitMetadata. */ + class CommitMetadata implements ICommitMetadata { /** - * Constructs a new PullGitCommitsRequest. + * Constructs a new CommitMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dataform.v1beta1.IPullGitCommitsRequest); - - /** PullGitCommitsRequest name. */ - public name: string; - - /** PullGitCommitsRequest remoteBranch. */ - public remoteBranch: string; + constructor(properties?: google.cloud.dataform.v1beta1.ICommitMetadata); - /** PullGitCommitsRequest author. */ + /** CommitMetadata author. */ public author?: (google.cloud.dataform.v1beta1.ICommitAuthor|null); + /** CommitMetadata commitMessage. */ + public commitMessage: string; + /** - * Creates a new PullGitCommitsRequest instance using the specified properties. + * Creates a new CommitMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns PullGitCommitsRequest instance + * @returns CommitMetadata instance */ - public static create(properties?: google.cloud.dataform.v1beta1.IPullGitCommitsRequest): google.cloud.dataform.v1beta1.PullGitCommitsRequest; + public static create(properties?: google.cloud.dataform.v1beta1.ICommitMetadata): google.cloud.dataform.v1beta1.CommitMetadata; /** - * Encodes the specified PullGitCommitsRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.PullGitCommitsRequest.verify|verify} messages. - * @param message PullGitCommitsRequest message or plain object to encode + * Encodes the specified CommitMetadata message. Does not implicitly {@link google.cloud.dataform.v1beta1.CommitMetadata.verify|verify} messages. + * @param message CommitMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dataform.v1beta1.IPullGitCommitsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dataform.v1beta1.ICommitMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PullGitCommitsRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.PullGitCommitsRequest.verify|verify} messages. - * @param message PullGitCommitsRequest message or plain object to encode + * Encodes the specified CommitMetadata message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CommitMetadata.verify|verify} messages. + * @param message CommitMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.IPullGitCommitsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dataform.v1beta1.ICommitMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PullGitCommitsRequest message from the specified reader or buffer. + * Decodes a CommitMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PullGitCommitsRequest + * @returns CommitMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.PullGitCommitsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.CommitMetadata; /** - * Decodes a PullGitCommitsRequest message from the specified reader or buffer, length delimited. + * Decodes a CommitMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PullGitCommitsRequest + * @returns CommitMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.PullGitCommitsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.CommitMetadata; /** - * Verifies a PullGitCommitsRequest message. + * Verifies a CommitMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PullGitCommitsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CommitMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PullGitCommitsRequest + * @returns CommitMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.PullGitCommitsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.CommitMetadata; /** - * Creates a plain object from a PullGitCommitsRequest message. Also converts values to other types if specified. - * @param message PullGitCommitsRequest + * Creates a plain object from a CommitMetadata message. Also converts values to other types if specified. + * @param message CommitMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dataform.v1beta1.PullGitCommitsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dataform.v1beta1.CommitMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PullGitCommitsRequest to JSON. + * Converts this CommitMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PullGitCommitsRequest + * Gets the default type url for CommitMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PushGitCommitsRequest. */ - interface IPushGitCommitsRequest { + /** Properties of a ComputeRepositoryAccessTokenStatusRequest. */ + interface IComputeRepositoryAccessTokenStatusRequest { - /** PushGitCommitsRequest name */ + /** ComputeRepositoryAccessTokenStatusRequest name */ name?: (string|null); - - /** PushGitCommitsRequest remoteBranch */ - remoteBranch?: (string|null); } - /** Represents a PushGitCommitsRequest. */ - class PushGitCommitsRequest implements IPushGitCommitsRequest { + /** Represents a ComputeRepositoryAccessTokenStatusRequest. */ + class ComputeRepositoryAccessTokenStatusRequest implements IComputeRepositoryAccessTokenStatusRequest { /** - * Constructs a new PushGitCommitsRequest. + * Constructs a new ComputeRepositoryAccessTokenStatusRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dataform.v1beta1.IPushGitCommitsRequest); + constructor(properties?: google.cloud.dataform.v1beta1.IComputeRepositoryAccessTokenStatusRequest); - /** PushGitCommitsRequest name. */ + /** ComputeRepositoryAccessTokenStatusRequest name. */ public name: string; - /** PushGitCommitsRequest remoteBranch. */ - public remoteBranch: string; - /** - * Creates a new PushGitCommitsRequest instance using the specified properties. + * Creates a new ComputeRepositoryAccessTokenStatusRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PushGitCommitsRequest instance + * @returns ComputeRepositoryAccessTokenStatusRequest instance */ - public static create(properties?: google.cloud.dataform.v1beta1.IPushGitCommitsRequest): google.cloud.dataform.v1beta1.PushGitCommitsRequest; + public static create(properties?: google.cloud.dataform.v1beta1.IComputeRepositoryAccessTokenStatusRequest): google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest; /** - * Encodes the specified PushGitCommitsRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.PushGitCommitsRequest.verify|verify} messages. - * @param message PushGitCommitsRequest message or plain object to encode + * Encodes the specified ComputeRepositoryAccessTokenStatusRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest.verify|verify} messages. + * @param message ComputeRepositoryAccessTokenStatusRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dataform.v1beta1.IPushGitCommitsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dataform.v1beta1.IComputeRepositoryAccessTokenStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PushGitCommitsRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.PushGitCommitsRequest.verify|verify} messages. - * @param message PushGitCommitsRequest message or plain object to encode + * Encodes the specified ComputeRepositoryAccessTokenStatusRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest.verify|verify} messages. + * @param message ComputeRepositoryAccessTokenStatusRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.IPushGitCommitsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IComputeRepositoryAccessTokenStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PushGitCommitsRequest message from the specified reader or buffer. + * Decodes a ComputeRepositoryAccessTokenStatusRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PushGitCommitsRequest + * @returns ComputeRepositoryAccessTokenStatusRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.PushGitCommitsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest; /** - * Decodes a PushGitCommitsRequest message from the specified reader or buffer, length delimited. + * Decodes a ComputeRepositoryAccessTokenStatusRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PushGitCommitsRequest + * @returns ComputeRepositoryAccessTokenStatusRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.PushGitCommitsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest; /** - * Verifies a PushGitCommitsRequest message. + * Verifies a ComputeRepositoryAccessTokenStatusRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PushGitCommitsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ComputeRepositoryAccessTokenStatusRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PushGitCommitsRequest + * @returns ComputeRepositoryAccessTokenStatusRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.PushGitCommitsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest; /** - * Creates a plain object from a PushGitCommitsRequest message. Also converts values to other types if specified. - * @param message PushGitCommitsRequest + * Creates a plain object from a ComputeRepositoryAccessTokenStatusRequest message. Also converts values to other types if specified. + * @param message ComputeRepositoryAccessTokenStatusRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dataform.v1beta1.PushGitCommitsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PushGitCommitsRequest to JSON. + * Converts this ComputeRepositoryAccessTokenStatusRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PushGitCommitsRequest + * Gets the default type url for ComputeRepositoryAccessTokenStatusRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a FetchFileGitStatusesRequest. */ - interface IFetchFileGitStatusesRequest { + /** Properties of a ComputeRepositoryAccessTokenStatusResponse. */ + interface IComputeRepositoryAccessTokenStatusResponse { - /** FetchFileGitStatusesRequest name */ - name?: (string|null); + /** ComputeRepositoryAccessTokenStatusResponse tokenStatus */ + tokenStatus?: (google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus|keyof typeof google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus|null); } - /** Represents a FetchFileGitStatusesRequest. */ - class FetchFileGitStatusesRequest implements IFetchFileGitStatusesRequest { + /** Represents a ComputeRepositoryAccessTokenStatusResponse. */ + class ComputeRepositoryAccessTokenStatusResponse implements IComputeRepositoryAccessTokenStatusResponse { /** - * Constructs a new FetchFileGitStatusesRequest. + * Constructs a new ComputeRepositoryAccessTokenStatusResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dataform.v1beta1.IFetchFileGitStatusesRequest); + constructor(properties?: google.cloud.dataform.v1beta1.IComputeRepositoryAccessTokenStatusResponse); - /** FetchFileGitStatusesRequest name. */ - public name: string; + /** ComputeRepositoryAccessTokenStatusResponse tokenStatus. */ + public tokenStatus: (google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus|keyof typeof google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus); /** - * Creates a new FetchFileGitStatusesRequest instance using the specified properties. + * Creates a new ComputeRepositoryAccessTokenStatusResponse instance using the specified properties. * @param [properties] Properties to set - * @returns FetchFileGitStatusesRequest instance + * @returns ComputeRepositoryAccessTokenStatusResponse instance */ - public static create(properties?: google.cloud.dataform.v1beta1.IFetchFileGitStatusesRequest): google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest; + public static create(properties?: google.cloud.dataform.v1beta1.IComputeRepositoryAccessTokenStatusResponse): google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse; /** - * Encodes the specified FetchFileGitStatusesRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest.verify|verify} messages. - * @param message FetchFileGitStatusesRequest message or plain object to encode + * Encodes the specified ComputeRepositoryAccessTokenStatusResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse.verify|verify} messages. + * @param message ComputeRepositoryAccessTokenStatusResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dataform.v1beta1.IFetchFileGitStatusesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dataform.v1beta1.IComputeRepositoryAccessTokenStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FetchFileGitStatusesRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest.verify|verify} messages. - * @param message FetchFileGitStatusesRequest message or plain object to encode + * Encodes the specified ComputeRepositoryAccessTokenStatusResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse.verify|verify} messages. + * @param message ComputeRepositoryAccessTokenStatusResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.IFetchFileGitStatusesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IComputeRepositoryAccessTokenStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FetchFileGitStatusesRequest message from the specified reader or buffer. + * Decodes a ComputeRepositoryAccessTokenStatusResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FetchFileGitStatusesRequest + * @returns ComputeRepositoryAccessTokenStatusResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse; /** - * Decodes a FetchFileGitStatusesRequest message from the specified reader or buffer, length delimited. + * Decodes a ComputeRepositoryAccessTokenStatusResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FetchFileGitStatusesRequest + * @returns ComputeRepositoryAccessTokenStatusResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse; /** - * Verifies a FetchFileGitStatusesRequest message. + * Verifies a ComputeRepositoryAccessTokenStatusResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a FetchFileGitStatusesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ComputeRepositoryAccessTokenStatusResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FetchFileGitStatusesRequest + * @returns ComputeRepositoryAccessTokenStatusResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse; /** - * Creates a plain object from a FetchFileGitStatusesRequest message. Also converts values to other types if specified. - * @param message FetchFileGitStatusesRequest + * Creates a plain object from a ComputeRepositoryAccessTokenStatusResponse message. Also converts values to other types if specified. + * @param message ComputeRepositoryAccessTokenStatusResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FetchFileGitStatusesRequest to JSON. + * Converts this ComputeRepositoryAccessTokenStatusResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FetchFileGitStatusesRequest + * Gets the default type url for ComputeRepositoryAccessTokenStatusResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a FetchFileGitStatusesResponse. */ - interface IFetchFileGitStatusesResponse { + namespace ComputeRepositoryAccessTokenStatusResponse { - /** FetchFileGitStatusesResponse uncommittedFileChanges */ - uncommittedFileChanges?: (google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.IUncommittedFileChange[]|null); + /** TokenStatus enum. */ + enum TokenStatus { + TOKEN_STATUS_UNSPECIFIED = 0, + NOT_FOUND = 1, + INVALID = 2, + VALID = 3 + } } - /** Represents a FetchFileGitStatusesResponse. */ - class FetchFileGitStatusesResponse implements IFetchFileGitStatusesResponse { + /** Properties of a FetchRemoteBranchesRequest. */ + interface IFetchRemoteBranchesRequest { + + /** FetchRemoteBranchesRequest name */ + name?: (string|null); + } + + /** Represents a FetchRemoteBranchesRequest. */ + class FetchRemoteBranchesRequest implements IFetchRemoteBranchesRequest { /** - * Constructs a new FetchFileGitStatusesResponse. + * Constructs a new FetchRemoteBranchesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dataform.v1beta1.IFetchFileGitStatusesResponse); + constructor(properties?: google.cloud.dataform.v1beta1.IFetchRemoteBranchesRequest); - /** FetchFileGitStatusesResponse uncommittedFileChanges. */ - public uncommittedFileChanges: google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.IUncommittedFileChange[]; + /** FetchRemoteBranchesRequest name. */ + public name: string; /** - * Creates a new FetchFileGitStatusesResponse instance using the specified properties. + * Creates a new FetchRemoteBranchesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns FetchFileGitStatusesResponse instance + * @returns FetchRemoteBranchesRequest instance */ - public static create(properties?: google.cloud.dataform.v1beta1.IFetchFileGitStatusesResponse): google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse; + public static create(properties?: google.cloud.dataform.v1beta1.IFetchRemoteBranchesRequest): google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest; /** - * Encodes the specified FetchFileGitStatusesResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.verify|verify} messages. - * @param message FetchFileGitStatusesResponse message or plain object to encode + * Encodes the specified FetchRemoteBranchesRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest.verify|verify} messages. + * @param message FetchRemoteBranchesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dataform.v1beta1.IFetchFileGitStatusesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dataform.v1beta1.IFetchRemoteBranchesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FetchFileGitStatusesResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.verify|verify} messages. - * @param message FetchFileGitStatusesResponse message or plain object to encode + * Encodes the specified FetchRemoteBranchesRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest.verify|verify} messages. + * @param message FetchRemoteBranchesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.IFetchFileGitStatusesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IFetchRemoteBranchesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FetchFileGitStatusesResponse message from the specified reader or buffer. + * Decodes a FetchRemoteBranchesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FetchFileGitStatusesResponse + * @returns FetchRemoteBranchesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest; /** - * Decodes a FetchFileGitStatusesResponse message from the specified reader or buffer, length delimited. + * Decodes a FetchRemoteBranchesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FetchFileGitStatusesResponse + * @returns FetchRemoteBranchesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest; /** - * Verifies a FetchFileGitStatusesResponse message. + * Verifies a FetchRemoteBranchesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a FetchFileGitStatusesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a FetchRemoteBranchesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FetchFileGitStatusesResponse + * @returns FetchRemoteBranchesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest; /** - * Creates a plain object from a FetchFileGitStatusesResponse message. Also converts values to other types if specified. - * @param message FetchFileGitStatusesResponse + * Creates a plain object from a FetchRemoteBranchesRequest message. Also converts values to other types if specified. + * @param message FetchRemoteBranchesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FetchFileGitStatusesResponse to JSON. + * Converts this FetchRemoteBranchesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FetchFileGitStatusesResponse + * Gets the default type url for FetchRemoteBranchesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace FetchFileGitStatusesResponse { - - /** Properties of an UncommittedFileChange. */ - interface IUncommittedFileChange { + /** Properties of a FetchRemoteBranchesResponse. */ + interface IFetchRemoteBranchesResponse { - /** UncommittedFileChange path */ - path?: (string|null); + /** FetchRemoteBranchesResponse branches */ + branches?: (string[]|null); + } - /** UncommittedFileChange state */ - state?: (google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.State|keyof typeof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.State|null); - } + /** Represents a FetchRemoteBranchesResponse. */ + class FetchRemoteBranchesResponse implements IFetchRemoteBranchesResponse { - /** Represents an UncommittedFileChange. */ - class UncommittedFileChange implements IUncommittedFileChange { + /** + * Constructs a new FetchRemoteBranchesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dataform.v1beta1.IFetchRemoteBranchesResponse); - /** - * Constructs a new UncommittedFileChange. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.IUncommittedFileChange); + /** FetchRemoteBranchesResponse branches. */ + public branches: string[]; - /** UncommittedFileChange path. */ - public path: string; + /** + * Creates a new FetchRemoteBranchesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns FetchRemoteBranchesResponse instance + */ + public static create(properties?: google.cloud.dataform.v1beta1.IFetchRemoteBranchesResponse): google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse; - /** UncommittedFileChange state. */ - public state: (google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.State|keyof typeof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.State); + /** + * Encodes the specified FetchRemoteBranchesResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse.verify|verify} messages. + * @param message FetchRemoteBranchesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dataform.v1beta1.IFetchRemoteBranchesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new UncommittedFileChange instance using the specified properties. - * @param [properties] Properties to set - * @returns UncommittedFileChange instance - */ - public static create(properties?: google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.IUncommittedFileChange): google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange; - - /** - * Encodes the specified UncommittedFileChange message. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.verify|verify} messages. - * @param message UncommittedFileChange message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.IUncommittedFileChange, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified UncommittedFileChange message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.verify|verify} messages. - * @param message UncommittedFileChange message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.IUncommittedFileChange, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an UncommittedFileChange message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UncommittedFileChange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange; - - /** - * Decodes an UncommittedFileChange message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UncommittedFileChange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange; - - /** - * Verifies an UncommittedFileChange message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an UncommittedFileChange message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UncommittedFileChange - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange; - - /** - * Creates a plain object from an UncommittedFileChange message. Also converts values to other types if specified. - * @param message UncommittedFileChange - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this UncommittedFileChange to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for UncommittedFileChange - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace UncommittedFileChange { - - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - ADDED = 1, - DELETED = 2, - MODIFIED = 3, - HAS_CONFLICTS = 4 - } - } - } - - /** Properties of a FetchGitAheadBehindRequest. */ - interface IFetchGitAheadBehindRequest { - - /** FetchGitAheadBehindRequest name */ - name?: (string|null); - - /** FetchGitAheadBehindRequest remoteBranch */ - remoteBranch?: (string|null); - } - - /** Represents a FetchGitAheadBehindRequest. */ - class FetchGitAheadBehindRequest implements IFetchGitAheadBehindRequest { - - /** - * Constructs a new FetchGitAheadBehindRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dataform.v1beta1.IFetchGitAheadBehindRequest); - - /** FetchGitAheadBehindRequest name. */ - public name: string; - - /** FetchGitAheadBehindRequest remoteBranch. */ - public remoteBranch: string; - - /** - * Creates a new FetchGitAheadBehindRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns FetchGitAheadBehindRequest instance - */ - public static create(properties?: google.cloud.dataform.v1beta1.IFetchGitAheadBehindRequest): google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest; - - /** - * Encodes the specified FetchGitAheadBehindRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest.verify|verify} messages. - * @param message FetchGitAheadBehindRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dataform.v1beta1.IFetchGitAheadBehindRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified FetchGitAheadBehindRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest.verify|verify} messages. - * @param message FetchGitAheadBehindRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.IFetchGitAheadBehindRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified FetchRemoteBranchesResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse.verify|verify} messages. + * @param message FetchRemoteBranchesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IFetchRemoteBranchesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FetchGitAheadBehindRequest message from the specified reader or buffer. + * Decodes a FetchRemoteBranchesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FetchGitAheadBehindRequest + * @returns FetchRemoteBranchesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse; /** - * Decodes a FetchGitAheadBehindRequest message from the specified reader or buffer, length delimited. + * Decodes a FetchRemoteBranchesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FetchGitAheadBehindRequest + * @returns FetchRemoteBranchesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse; /** - * Verifies a FetchGitAheadBehindRequest message. + * Verifies a FetchRemoteBranchesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a FetchGitAheadBehindRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FetchRemoteBranchesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FetchGitAheadBehindRequest + * @returns FetchRemoteBranchesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse; /** - * Creates a plain object from a FetchGitAheadBehindRequest message. Also converts values to other types if specified. - * @param message FetchGitAheadBehindRequest + * Creates a plain object from a FetchRemoteBranchesResponse message. Also converts values to other types if specified. + * @param message FetchRemoteBranchesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FetchGitAheadBehindRequest to JSON. + * Converts this FetchRemoteBranchesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FetchGitAheadBehindRequest + * Gets the default type url for FetchRemoteBranchesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a FetchGitAheadBehindResponse. */ - interface IFetchGitAheadBehindResponse { - - /** FetchGitAheadBehindResponse commitsAhead */ - commitsAhead?: (number|null); + /** Properties of a Workspace. */ + interface IWorkspace { - /** FetchGitAheadBehindResponse commitsBehind */ - commitsBehind?: (number|null); + /** Workspace name */ + name?: (string|null); } - /** Represents a FetchGitAheadBehindResponse. */ - class FetchGitAheadBehindResponse implements IFetchGitAheadBehindResponse { + /** Represents a Workspace. */ + class Workspace implements IWorkspace { /** - * Constructs a new FetchGitAheadBehindResponse. + * Constructs a new Workspace. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dataform.v1beta1.IFetchGitAheadBehindResponse); - - /** FetchGitAheadBehindResponse commitsAhead. */ - public commitsAhead: number; + constructor(properties?: google.cloud.dataform.v1beta1.IWorkspace); - /** FetchGitAheadBehindResponse commitsBehind. */ - public commitsBehind: number; + /** Workspace name. */ + public name: string; /** - * Creates a new FetchGitAheadBehindResponse instance using the specified properties. + * Creates a new Workspace instance using the specified properties. * @param [properties] Properties to set - * @returns FetchGitAheadBehindResponse instance + * @returns Workspace instance */ - public static create(properties?: google.cloud.dataform.v1beta1.IFetchGitAheadBehindResponse): google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse; + public static create(properties?: google.cloud.dataform.v1beta1.IWorkspace): google.cloud.dataform.v1beta1.Workspace; /** - * Encodes the specified FetchGitAheadBehindResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse.verify|verify} messages. - * @param message FetchGitAheadBehindResponse message or plain object to encode + * Encodes the specified Workspace message. Does not implicitly {@link google.cloud.dataform.v1beta1.Workspace.verify|verify} messages. + * @param message Workspace message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dataform.v1beta1.IFetchGitAheadBehindResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dataform.v1beta1.IWorkspace, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FetchGitAheadBehindResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse.verify|verify} messages. - * @param message FetchGitAheadBehindResponse message or plain object to encode + * Encodes the specified Workspace message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.Workspace.verify|verify} messages. + * @param message Workspace message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.IFetchGitAheadBehindResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IWorkspace, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FetchGitAheadBehindResponse message from the specified reader or buffer. + * Decodes a Workspace message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FetchGitAheadBehindResponse + * @returns Workspace * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.Workspace; /** - * Decodes a FetchGitAheadBehindResponse message from the specified reader or buffer, length delimited. + * Decodes a Workspace message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FetchGitAheadBehindResponse + * @returns Workspace * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.Workspace; /** - * Verifies a FetchGitAheadBehindResponse message. + * Verifies a Workspace message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a FetchGitAheadBehindResponse message from a plain object. Also converts values to their respective internal types. + * Creates a Workspace message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FetchGitAheadBehindResponse + * @returns Workspace */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.Workspace; /** - * Creates a plain object from a FetchGitAheadBehindResponse message. Also converts values to other types if specified. - * @param message FetchGitAheadBehindResponse + * Creates a plain object from a Workspace message. Also converts values to other types if specified. + * @param message Workspace * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dataform.v1beta1.Workspace, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FetchGitAheadBehindResponse to JSON. + * Converts this Workspace to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FetchGitAheadBehindResponse + * Gets the default type url for Workspace * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CommitWorkspaceChangesRequest. */ - interface ICommitWorkspaceChangesRequest { - - /** CommitWorkspaceChangesRequest name */ - name?: (string|null); + /** Properties of a ListWorkspacesRequest. */ + interface IListWorkspacesRequest { - /** CommitWorkspaceChangesRequest author */ - author?: (google.cloud.dataform.v1beta1.ICommitAuthor|null); + /** ListWorkspacesRequest parent */ + parent?: (string|null); - /** CommitWorkspaceChangesRequest commitMessage */ - commitMessage?: (string|null); + /** ListWorkspacesRequest pageSize */ + pageSize?: (number|null); - /** CommitWorkspaceChangesRequest paths */ - paths?: (string[]|null); - } + /** ListWorkspacesRequest pageToken */ + pageToken?: (string|null); - /** Represents a CommitWorkspaceChangesRequest. */ - class CommitWorkspaceChangesRequest implements ICommitWorkspaceChangesRequest { + /** ListWorkspacesRequest orderBy */ + orderBy?: (string|null); + + /** ListWorkspacesRequest filter */ + filter?: (string|null); + } + + /** Represents a ListWorkspacesRequest. */ + class ListWorkspacesRequest implements IListWorkspacesRequest { /** - * Constructs a new CommitWorkspaceChangesRequest. + * Constructs a new ListWorkspacesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dataform.v1beta1.ICommitWorkspaceChangesRequest); + constructor(properties?: google.cloud.dataform.v1beta1.IListWorkspacesRequest); - /** CommitWorkspaceChangesRequest name. */ - public name: string; + /** ListWorkspacesRequest parent. */ + public parent: string; - /** CommitWorkspaceChangesRequest author. */ - public author?: (google.cloud.dataform.v1beta1.ICommitAuthor|null); + /** ListWorkspacesRequest pageSize. */ + public pageSize: number; - /** CommitWorkspaceChangesRequest commitMessage. */ - public commitMessage: string; + /** ListWorkspacesRequest pageToken. */ + public pageToken: string; - /** CommitWorkspaceChangesRequest paths. */ - public paths: string[]; + /** ListWorkspacesRequest orderBy. */ + public orderBy: string; + + /** ListWorkspacesRequest filter. */ + public filter: string; /** - * Creates a new CommitWorkspaceChangesRequest instance using the specified properties. + * Creates a new ListWorkspacesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CommitWorkspaceChangesRequest instance + * @returns ListWorkspacesRequest instance */ - public static create(properties?: google.cloud.dataform.v1beta1.ICommitWorkspaceChangesRequest): google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest; + public static create(properties?: google.cloud.dataform.v1beta1.IListWorkspacesRequest): google.cloud.dataform.v1beta1.ListWorkspacesRequest; /** - * Encodes the specified CommitWorkspaceChangesRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest.verify|verify} messages. - * @param message CommitWorkspaceChangesRequest message or plain object to encode + * Encodes the specified ListWorkspacesRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.ListWorkspacesRequest.verify|verify} messages. + * @param message ListWorkspacesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dataform.v1beta1.ICommitWorkspaceChangesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dataform.v1beta1.IListWorkspacesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CommitWorkspaceChangesRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest.verify|verify} messages. - * @param message CommitWorkspaceChangesRequest message or plain object to encode + * Encodes the specified ListWorkspacesRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.ListWorkspacesRequest.verify|verify} messages. + * @param message ListWorkspacesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.ICommitWorkspaceChangesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IListWorkspacesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CommitWorkspaceChangesRequest message from the specified reader or buffer. + * Decodes a ListWorkspacesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CommitWorkspaceChangesRequest + * @returns ListWorkspacesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.ListWorkspacesRequest; /** - * Decodes a CommitWorkspaceChangesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListWorkspacesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CommitWorkspaceChangesRequest + * @returns ListWorkspacesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.ListWorkspacesRequest; /** - * Verifies a CommitWorkspaceChangesRequest message. + * Verifies a ListWorkspacesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CommitWorkspaceChangesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListWorkspacesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CommitWorkspaceChangesRequest + * @returns ListWorkspacesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.ListWorkspacesRequest; /** - * Creates a plain object from a CommitWorkspaceChangesRequest message. Also converts values to other types if specified. - * @param message CommitWorkspaceChangesRequest + * Creates a plain object from a ListWorkspacesRequest message. Also converts values to other types if specified. + * @param message ListWorkspacesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dataform.v1beta1.ListWorkspacesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CommitWorkspaceChangesRequest to JSON. + * Converts this ListWorkspacesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CommitWorkspaceChangesRequest + * Gets the default type url for ListWorkspacesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ResetWorkspaceChangesRequest. */ - interface IResetWorkspaceChangesRequest { + /** Properties of a ListWorkspacesResponse. */ + interface IListWorkspacesResponse { - /** ResetWorkspaceChangesRequest name */ - name?: (string|null); + /** ListWorkspacesResponse workspaces */ + workspaces?: (google.cloud.dataform.v1beta1.IWorkspace[]|null); - /** ResetWorkspaceChangesRequest paths */ - paths?: (string[]|null); + /** ListWorkspacesResponse nextPageToken */ + nextPageToken?: (string|null); - /** ResetWorkspaceChangesRequest clean */ - clean?: (boolean|null); + /** ListWorkspacesResponse unreachable */ + unreachable?: (string[]|null); } - /** Represents a ResetWorkspaceChangesRequest. */ - class ResetWorkspaceChangesRequest implements IResetWorkspaceChangesRequest { + /** Represents a ListWorkspacesResponse. */ + class ListWorkspacesResponse implements IListWorkspacesResponse { /** - * Constructs a new ResetWorkspaceChangesRequest. + * Constructs a new ListWorkspacesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dataform.v1beta1.IResetWorkspaceChangesRequest); + constructor(properties?: google.cloud.dataform.v1beta1.IListWorkspacesResponse); - /** ResetWorkspaceChangesRequest name. */ - public name: string; + /** ListWorkspacesResponse workspaces. */ + public workspaces: google.cloud.dataform.v1beta1.IWorkspace[]; - /** ResetWorkspaceChangesRequest paths. */ - public paths: string[]; + /** ListWorkspacesResponse nextPageToken. */ + public nextPageToken: string; - /** ResetWorkspaceChangesRequest clean. */ - public clean: boolean; + /** ListWorkspacesResponse unreachable. */ + public unreachable: string[]; /** - * Creates a new ResetWorkspaceChangesRequest instance using the specified properties. + * Creates a new ListWorkspacesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ResetWorkspaceChangesRequest instance + * @returns ListWorkspacesResponse instance */ - public static create(properties?: google.cloud.dataform.v1beta1.IResetWorkspaceChangesRequest): google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest; + public static create(properties?: google.cloud.dataform.v1beta1.IListWorkspacesResponse): google.cloud.dataform.v1beta1.ListWorkspacesResponse; /** - * Encodes the specified ResetWorkspaceChangesRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest.verify|verify} messages. - * @param message ResetWorkspaceChangesRequest message or plain object to encode + * Encodes the specified ListWorkspacesResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.ListWorkspacesResponse.verify|verify} messages. + * @param message ListWorkspacesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dataform.v1beta1.IResetWorkspaceChangesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dataform.v1beta1.IListWorkspacesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ResetWorkspaceChangesRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest.verify|verify} messages. - * @param message ResetWorkspaceChangesRequest message or plain object to encode + * Encodes the specified ListWorkspacesResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.ListWorkspacesResponse.verify|verify} messages. + * @param message ListWorkspacesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.IResetWorkspaceChangesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IListWorkspacesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ResetWorkspaceChangesRequest message from the specified reader or buffer. + * Decodes a ListWorkspacesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ResetWorkspaceChangesRequest + * @returns ListWorkspacesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.ListWorkspacesResponse; /** - * Decodes a ResetWorkspaceChangesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListWorkspacesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ResetWorkspaceChangesRequest + * @returns ListWorkspacesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.ListWorkspacesResponse; /** - * Verifies a ResetWorkspaceChangesRequest message. + * Verifies a ListWorkspacesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ResetWorkspaceChangesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListWorkspacesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ResetWorkspaceChangesRequest + * @returns ListWorkspacesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.ListWorkspacesResponse; /** - * Creates a plain object from a ResetWorkspaceChangesRequest message. Also converts values to other types if specified. - * @param message ResetWorkspaceChangesRequest + * Creates a plain object from a ListWorkspacesResponse message. Also converts values to other types if specified. + * @param message ListWorkspacesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dataform.v1beta1.ListWorkspacesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ResetWorkspaceChangesRequest to JSON. + * Converts this ListWorkspacesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ResetWorkspaceChangesRequest + * Gets the default type url for ListWorkspacesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a FetchFileDiffRequest. */ - interface IFetchFileDiffRequest { - - /** FetchFileDiffRequest workspace */ - workspace?: (string|null); + /** Properties of a GetWorkspaceRequest. */ + interface IGetWorkspaceRequest { - /** FetchFileDiffRequest path */ - path?: (string|null); + /** GetWorkspaceRequest name */ + name?: (string|null); } - /** Represents a FetchFileDiffRequest. */ - class FetchFileDiffRequest implements IFetchFileDiffRequest { + /** Represents a GetWorkspaceRequest. */ + class GetWorkspaceRequest implements IGetWorkspaceRequest { /** - * Constructs a new FetchFileDiffRequest. + * Constructs a new GetWorkspaceRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dataform.v1beta1.IFetchFileDiffRequest); - - /** FetchFileDiffRequest workspace. */ - public workspace: string; + constructor(properties?: google.cloud.dataform.v1beta1.IGetWorkspaceRequest); - /** FetchFileDiffRequest path. */ - public path: string; + /** GetWorkspaceRequest name. */ + public name: string; /** - * Creates a new FetchFileDiffRequest instance using the specified properties. + * Creates a new GetWorkspaceRequest instance using the specified properties. * @param [properties] Properties to set - * @returns FetchFileDiffRequest instance + * @returns GetWorkspaceRequest instance */ - public static create(properties?: google.cloud.dataform.v1beta1.IFetchFileDiffRequest): google.cloud.dataform.v1beta1.FetchFileDiffRequest; + public static create(properties?: google.cloud.dataform.v1beta1.IGetWorkspaceRequest): google.cloud.dataform.v1beta1.GetWorkspaceRequest; /** - * Encodes the specified FetchFileDiffRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchFileDiffRequest.verify|verify} messages. - * @param message FetchFileDiffRequest message or plain object to encode + * Encodes the specified GetWorkspaceRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.GetWorkspaceRequest.verify|verify} messages. + * @param message GetWorkspaceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dataform.v1beta1.IFetchFileDiffRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dataform.v1beta1.IGetWorkspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FetchFileDiffRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchFileDiffRequest.verify|verify} messages. - * @param message FetchFileDiffRequest message or plain object to encode + * Encodes the specified GetWorkspaceRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.GetWorkspaceRequest.verify|verify} messages. + * @param message GetWorkspaceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.IFetchFileDiffRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IGetWorkspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FetchFileDiffRequest message from the specified reader or buffer. + * Decodes a GetWorkspaceRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FetchFileDiffRequest + * @returns GetWorkspaceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.FetchFileDiffRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.GetWorkspaceRequest; /** - * Decodes a FetchFileDiffRequest message from the specified reader or buffer, length delimited. + * Decodes a GetWorkspaceRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FetchFileDiffRequest + * @returns GetWorkspaceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.FetchFileDiffRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.GetWorkspaceRequest; /** - * Verifies a FetchFileDiffRequest message. + * Verifies a GetWorkspaceRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a FetchFileDiffRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetWorkspaceRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FetchFileDiffRequest + * @returns GetWorkspaceRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.FetchFileDiffRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.GetWorkspaceRequest; /** - * Creates a plain object from a FetchFileDiffRequest message. Also converts values to other types if specified. - * @param message FetchFileDiffRequest + * Creates a plain object from a GetWorkspaceRequest message. Also converts values to other types if specified. + * @param message GetWorkspaceRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dataform.v1beta1.FetchFileDiffRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dataform.v1beta1.GetWorkspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FetchFileDiffRequest to JSON. + * Converts this GetWorkspaceRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FetchFileDiffRequest + * Gets the default type url for GetWorkspaceRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a FetchFileDiffResponse. */ - interface IFetchFileDiffResponse { + /** Properties of a CreateWorkspaceRequest. */ + interface ICreateWorkspaceRequest { - /** FetchFileDiffResponse formattedDiff */ - formattedDiff?: (string|null); - } + /** CreateWorkspaceRequest parent */ + parent?: (string|null); - /** Represents a FetchFileDiffResponse. */ - class FetchFileDiffResponse implements IFetchFileDiffResponse { + /** CreateWorkspaceRequest workspace */ + workspace?: (google.cloud.dataform.v1beta1.IWorkspace|null); - /** - * Constructs a new FetchFileDiffResponse. - * @param [properties] Properties to set + /** CreateWorkspaceRequest workspaceId */ + workspaceId?: (string|null); + } + + /** Represents a CreateWorkspaceRequest. */ + class CreateWorkspaceRequest implements ICreateWorkspaceRequest { + + /** + * Constructs a new CreateWorkspaceRequest. + * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dataform.v1beta1.IFetchFileDiffResponse); + constructor(properties?: google.cloud.dataform.v1beta1.ICreateWorkspaceRequest); - /** FetchFileDiffResponse formattedDiff. */ - public formattedDiff: string; + /** CreateWorkspaceRequest parent. */ + public parent: string; + + /** CreateWorkspaceRequest workspace. */ + public workspace?: (google.cloud.dataform.v1beta1.IWorkspace|null); + + /** CreateWorkspaceRequest workspaceId. */ + public workspaceId: string; /** - * Creates a new FetchFileDiffResponse instance using the specified properties. + * Creates a new CreateWorkspaceRequest instance using the specified properties. * @param [properties] Properties to set - * @returns FetchFileDiffResponse instance + * @returns CreateWorkspaceRequest instance */ - public static create(properties?: google.cloud.dataform.v1beta1.IFetchFileDiffResponse): google.cloud.dataform.v1beta1.FetchFileDiffResponse; + public static create(properties?: google.cloud.dataform.v1beta1.ICreateWorkspaceRequest): google.cloud.dataform.v1beta1.CreateWorkspaceRequest; /** - * Encodes the specified FetchFileDiffResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchFileDiffResponse.verify|verify} messages. - * @param message FetchFileDiffResponse message or plain object to encode + * Encodes the specified CreateWorkspaceRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.CreateWorkspaceRequest.verify|verify} messages. + * @param message CreateWorkspaceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dataform.v1beta1.IFetchFileDiffResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dataform.v1beta1.ICreateWorkspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FetchFileDiffResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchFileDiffResponse.verify|verify} messages. - * @param message FetchFileDiffResponse message or plain object to encode + * Encodes the specified CreateWorkspaceRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CreateWorkspaceRequest.verify|verify} messages. + * @param message CreateWorkspaceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.IFetchFileDiffResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dataform.v1beta1.ICreateWorkspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FetchFileDiffResponse message from the specified reader or buffer. + * Decodes a CreateWorkspaceRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FetchFileDiffResponse + * @returns CreateWorkspaceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.FetchFileDiffResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.CreateWorkspaceRequest; /** - * Decodes a FetchFileDiffResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateWorkspaceRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FetchFileDiffResponse + * @returns CreateWorkspaceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.FetchFileDiffResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.CreateWorkspaceRequest; /** - * Verifies a FetchFileDiffResponse message. + * Verifies a CreateWorkspaceRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a FetchFileDiffResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateWorkspaceRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FetchFileDiffResponse + * @returns CreateWorkspaceRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.FetchFileDiffResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.CreateWorkspaceRequest; /** - * Creates a plain object from a FetchFileDiffResponse message. Also converts values to other types if specified. - * @param message FetchFileDiffResponse + * Creates a plain object from a CreateWorkspaceRequest message. Also converts values to other types if specified. + * @param message CreateWorkspaceRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dataform.v1beta1.FetchFileDiffResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dataform.v1beta1.CreateWorkspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FetchFileDiffResponse to JSON. + * Converts this CreateWorkspaceRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FetchFileDiffResponse + * Gets the default type url for CreateWorkspaceRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a QueryDirectoryContentsRequest. */ - interface IQueryDirectoryContentsRequest { - - /** QueryDirectoryContentsRequest workspace */ - workspace?: (string|null); - - /** QueryDirectoryContentsRequest path */ - path?: (string|null); - - /** QueryDirectoryContentsRequest pageSize */ - pageSize?: (number|null); + /** Properties of a DeleteWorkspaceRequest. */ + interface IDeleteWorkspaceRequest { - /** QueryDirectoryContentsRequest pageToken */ - pageToken?: (string|null); + /** DeleteWorkspaceRequest name */ + name?: (string|null); } - /** Represents a QueryDirectoryContentsRequest. */ - class QueryDirectoryContentsRequest implements IQueryDirectoryContentsRequest { + /** Represents a DeleteWorkspaceRequest. */ + class DeleteWorkspaceRequest implements IDeleteWorkspaceRequest { /** - * Constructs a new QueryDirectoryContentsRequest. + * Constructs a new DeleteWorkspaceRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dataform.v1beta1.IQueryDirectoryContentsRequest); - - /** QueryDirectoryContentsRequest workspace. */ - public workspace: string; - - /** QueryDirectoryContentsRequest path. */ - public path: string; - - /** QueryDirectoryContentsRequest pageSize. */ - public pageSize: number; + constructor(properties?: google.cloud.dataform.v1beta1.IDeleteWorkspaceRequest); - /** QueryDirectoryContentsRequest pageToken. */ - public pageToken: string; + /** DeleteWorkspaceRequest name. */ + public name: string; /** - * Creates a new QueryDirectoryContentsRequest instance using the specified properties. + * Creates a new DeleteWorkspaceRequest instance using the specified properties. * @param [properties] Properties to set - * @returns QueryDirectoryContentsRequest instance + * @returns DeleteWorkspaceRequest instance */ - public static create(properties?: google.cloud.dataform.v1beta1.IQueryDirectoryContentsRequest): google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest; + public static create(properties?: google.cloud.dataform.v1beta1.IDeleteWorkspaceRequest): google.cloud.dataform.v1beta1.DeleteWorkspaceRequest; /** - * Encodes the specified QueryDirectoryContentsRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest.verify|verify} messages. - * @param message QueryDirectoryContentsRequest message or plain object to encode + * Encodes the specified DeleteWorkspaceRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.DeleteWorkspaceRequest.verify|verify} messages. + * @param message DeleteWorkspaceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dataform.v1beta1.IQueryDirectoryContentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dataform.v1beta1.IDeleteWorkspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryDirectoryContentsRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest.verify|verify} messages. - * @param message QueryDirectoryContentsRequest message or plain object to encode + * Encodes the specified DeleteWorkspaceRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.DeleteWorkspaceRequest.verify|verify} messages. + * @param message DeleteWorkspaceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.IQueryDirectoryContentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IDeleteWorkspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryDirectoryContentsRequest message from the specified reader or buffer. + * Decodes a DeleteWorkspaceRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryDirectoryContentsRequest + * @returns DeleteWorkspaceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.DeleteWorkspaceRequest; /** - * Decodes a QueryDirectoryContentsRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteWorkspaceRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryDirectoryContentsRequest + * @returns DeleteWorkspaceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.DeleteWorkspaceRequest; /** - * Verifies a QueryDirectoryContentsRequest message. + * Verifies a DeleteWorkspaceRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryDirectoryContentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteWorkspaceRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryDirectoryContentsRequest + * @returns DeleteWorkspaceRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.DeleteWorkspaceRequest; /** - * Creates a plain object from a QueryDirectoryContentsRequest message. Also converts values to other types if specified. - * @param message QueryDirectoryContentsRequest + * Creates a plain object from a DeleteWorkspaceRequest message. Also converts values to other types if specified. + * @param message DeleteWorkspaceRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dataform.v1beta1.DeleteWorkspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryDirectoryContentsRequest to JSON. + * Converts this DeleteWorkspaceRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for QueryDirectoryContentsRequest + * Gets the default type url for DeleteWorkspaceRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a QueryDirectoryContentsResponse. */ - interface IQueryDirectoryContentsResponse { + /** Properties of a CommitAuthor. */ + interface ICommitAuthor { - /** QueryDirectoryContentsResponse directoryEntries */ - directoryEntries?: (google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.IDirectoryEntry[]|null); + /** CommitAuthor name */ + name?: (string|null); - /** QueryDirectoryContentsResponse nextPageToken */ - nextPageToken?: (string|null); + /** CommitAuthor emailAddress */ + emailAddress?: (string|null); } - /** Represents a QueryDirectoryContentsResponse. */ - class QueryDirectoryContentsResponse implements IQueryDirectoryContentsResponse { + /** Represents a CommitAuthor. */ + class CommitAuthor implements ICommitAuthor { /** - * Constructs a new QueryDirectoryContentsResponse. + * Constructs a new CommitAuthor. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dataform.v1beta1.IQueryDirectoryContentsResponse); + constructor(properties?: google.cloud.dataform.v1beta1.ICommitAuthor); - /** QueryDirectoryContentsResponse directoryEntries. */ - public directoryEntries: google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.IDirectoryEntry[]; + /** CommitAuthor name. */ + public name: string; - /** QueryDirectoryContentsResponse nextPageToken. */ - public nextPageToken: string; + /** CommitAuthor emailAddress. */ + public emailAddress: string; /** - * Creates a new QueryDirectoryContentsResponse instance using the specified properties. + * Creates a new CommitAuthor instance using the specified properties. * @param [properties] Properties to set - * @returns QueryDirectoryContentsResponse instance + * @returns CommitAuthor instance */ - public static create(properties?: google.cloud.dataform.v1beta1.IQueryDirectoryContentsResponse): google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse; + public static create(properties?: google.cloud.dataform.v1beta1.ICommitAuthor): google.cloud.dataform.v1beta1.CommitAuthor; /** - * Encodes the specified QueryDirectoryContentsResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.verify|verify} messages. - * @param message QueryDirectoryContentsResponse message or plain object to encode + * Encodes the specified CommitAuthor message. Does not implicitly {@link google.cloud.dataform.v1beta1.CommitAuthor.verify|verify} messages. + * @param message CommitAuthor message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dataform.v1beta1.IQueryDirectoryContentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dataform.v1beta1.ICommitAuthor, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryDirectoryContentsResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.verify|verify} messages. - * @param message QueryDirectoryContentsResponse message or plain object to encode + * Encodes the specified CommitAuthor message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CommitAuthor.verify|verify} messages. + * @param message CommitAuthor message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.IQueryDirectoryContentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dataform.v1beta1.ICommitAuthor, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryDirectoryContentsResponse message from the specified reader or buffer. + * Decodes a CommitAuthor message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryDirectoryContentsResponse + * @returns CommitAuthor * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.CommitAuthor; /** - * Decodes a QueryDirectoryContentsResponse message from the specified reader or buffer, length delimited. + * Decodes a CommitAuthor message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryDirectoryContentsResponse + * @returns CommitAuthor * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.CommitAuthor; /** - * Verifies a QueryDirectoryContentsResponse message. + * Verifies a CommitAuthor message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryDirectoryContentsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CommitAuthor message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryDirectoryContentsResponse + * @returns CommitAuthor */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.CommitAuthor; /** - * Creates a plain object from a QueryDirectoryContentsResponse message. Also converts values to other types if specified. - * @param message QueryDirectoryContentsResponse + * Creates a plain object from a CommitAuthor message. Also converts values to other types if specified. + * @param message CommitAuthor * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dataform.v1beta1.CommitAuthor, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryDirectoryContentsResponse to JSON. + * Converts this CommitAuthor to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for QueryDirectoryContentsResponse + * Gets the default type url for CommitAuthor * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace QueryDirectoryContentsResponse { - - /** Properties of a DirectoryEntry. */ - interface IDirectoryEntry { + /** Properties of a PullGitCommitsRequest. */ + interface IPullGitCommitsRequest { - /** DirectoryEntry file */ - file?: (string|null); + /** PullGitCommitsRequest name */ + name?: (string|null); - /** DirectoryEntry directory */ - directory?: (string|null); - } + /** PullGitCommitsRequest remoteBranch */ + remoteBranch?: (string|null); - /** Represents a DirectoryEntry. */ - class DirectoryEntry implements IDirectoryEntry { + /** PullGitCommitsRequest author */ + author?: (google.cloud.dataform.v1beta1.ICommitAuthor|null); + } - /** - * Constructs a new DirectoryEntry. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.IDirectoryEntry); - - /** DirectoryEntry file. */ - public file?: (string|null); - - /** DirectoryEntry directory. */ - public directory?: (string|null); - - /** DirectoryEntry entry. */ - public entry?: ("file"|"directory"); - - /** - * Creates a new DirectoryEntry instance using the specified properties. - * @param [properties] Properties to set - * @returns DirectoryEntry instance - */ - public static create(properties?: google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.IDirectoryEntry): google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry; - - /** - * Encodes the specified DirectoryEntry message. Does not implicitly {@link google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry.verify|verify} messages. - * @param message DirectoryEntry message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.IDirectoryEntry, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified DirectoryEntry message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry.verify|verify} messages. - * @param message DirectoryEntry message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.IDirectoryEntry, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DirectoryEntry message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DirectoryEntry - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry; - - /** - * Decodes a DirectoryEntry message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DirectoryEntry - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry; - - /** - * Verifies a DirectoryEntry message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a DirectoryEntry message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DirectoryEntry - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry; - - /** - * Creates a plain object from a DirectoryEntry message. Also converts values to other types if specified. - * @param message DirectoryEntry - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this DirectoryEntry to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for DirectoryEntry - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of a MakeDirectoryRequest. */ - interface IMakeDirectoryRequest { - - /** MakeDirectoryRequest workspace */ - workspace?: (string|null); - - /** MakeDirectoryRequest path */ - path?: (string|null); - } - - /** Represents a MakeDirectoryRequest. */ - class MakeDirectoryRequest implements IMakeDirectoryRequest { + /** Represents a PullGitCommitsRequest. */ + class PullGitCommitsRequest implements IPullGitCommitsRequest { /** - * Constructs a new MakeDirectoryRequest. + * Constructs a new PullGitCommitsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dataform.v1beta1.IMakeDirectoryRequest); + constructor(properties?: google.cloud.dataform.v1beta1.IPullGitCommitsRequest); - /** MakeDirectoryRequest workspace. */ - public workspace: string; + /** PullGitCommitsRequest name. */ + public name: string; - /** MakeDirectoryRequest path. */ - public path: string; + /** PullGitCommitsRequest remoteBranch. */ + public remoteBranch: string; + + /** PullGitCommitsRequest author. */ + public author?: (google.cloud.dataform.v1beta1.ICommitAuthor|null); /** - * Creates a new MakeDirectoryRequest instance using the specified properties. + * Creates a new PullGitCommitsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns MakeDirectoryRequest instance + * @returns PullGitCommitsRequest instance */ - public static create(properties?: google.cloud.dataform.v1beta1.IMakeDirectoryRequest): google.cloud.dataform.v1beta1.MakeDirectoryRequest; + public static create(properties?: google.cloud.dataform.v1beta1.IPullGitCommitsRequest): google.cloud.dataform.v1beta1.PullGitCommitsRequest; /** - * Encodes the specified MakeDirectoryRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.MakeDirectoryRequest.verify|verify} messages. - * @param message MakeDirectoryRequest message or plain object to encode + * Encodes the specified PullGitCommitsRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.PullGitCommitsRequest.verify|verify} messages. + * @param message PullGitCommitsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dataform.v1beta1.IMakeDirectoryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dataform.v1beta1.IPullGitCommitsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MakeDirectoryRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.MakeDirectoryRequest.verify|verify} messages. - * @param message MakeDirectoryRequest message or plain object to encode + * Encodes the specified PullGitCommitsRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.PullGitCommitsRequest.verify|verify} messages. + * @param message PullGitCommitsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.IMakeDirectoryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IPullGitCommitsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MakeDirectoryRequest message from the specified reader or buffer. + * Decodes a PullGitCommitsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MakeDirectoryRequest + * @returns PullGitCommitsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.MakeDirectoryRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.PullGitCommitsRequest; /** - * Decodes a MakeDirectoryRequest message from the specified reader or buffer, length delimited. + * Decodes a PullGitCommitsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MakeDirectoryRequest + * @returns PullGitCommitsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.MakeDirectoryRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.PullGitCommitsRequest; /** - * Verifies a MakeDirectoryRequest message. + * Verifies a PullGitCommitsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MakeDirectoryRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PullGitCommitsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MakeDirectoryRequest + * @returns PullGitCommitsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.MakeDirectoryRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.PullGitCommitsRequest; /** - * Creates a plain object from a MakeDirectoryRequest message. Also converts values to other types if specified. - * @param message MakeDirectoryRequest + * Creates a plain object from a PullGitCommitsRequest message. Also converts values to other types if specified. + * @param message PullGitCommitsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dataform.v1beta1.MakeDirectoryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dataform.v1beta1.PullGitCommitsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MakeDirectoryRequest to JSON. + * Converts this PullGitCommitsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MakeDirectoryRequest + * Gets the default type url for PullGitCommitsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a MakeDirectoryResponse. */ - interface IMakeDirectoryResponse { + /** Properties of a PushGitCommitsRequest. */ + interface IPushGitCommitsRequest { + + /** PushGitCommitsRequest name */ + name?: (string|null); + + /** PushGitCommitsRequest remoteBranch */ + remoteBranch?: (string|null); } - /** Represents a MakeDirectoryResponse. */ - class MakeDirectoryResponse implements IMakeDirectoryResponse { + /** Represents a PushGitCommitsRequest. */ + class PushGitCommitsRequest implements IPushGitCommitsRequest { /** - * Constructs a new MakeDirectoryResponse. + * Constructs a new PushGitCommitsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dataform.v1beta1.IMakeDirectoryResponse); + constructor(properties?: google.cloud.dataform.v1beta1.IPushGitCommitsRequest); + + /** PushGitCommitsRequest name. */ + public name: string; + + /** PushGitCommitsRequest remoteBranch. */ + public remoteBranch: string; /** - * Creates a new MakeDirectoryResponse instance using the specified properties. + * Creates a new PushGitCommitsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns MakeDirectoryResponse instance + * @returns PushGitCommitsRequest instance */ - public static create(properties?: google.cloud.dataform.v1beta1.IMakeDirectoryResponse): google.cloud.dataform.v1beta1.MakeDirectoryResponse; + public static create(properties?: google.cloud.dataform.v1beta1.IPushGitCommitsRequest): google.cloud.dataform.v1beta1.PushGitCommitsRequest; /** - * Encodes the specified MakeDirectoryResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.MakeDirectoryResponse.verify|verify} messages. - * @param message MakeDirectoryResponse message or plain object to encode + * Encodes the specified PushGitCommitsRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.PushGitCommitsRequest.verify|verify} messages. + * @param message PushGitCommitsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dataform.v1beta1.IMakeDirectoryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dataform.v1beta1.IPushGitCommitsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MakeDirectoryResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.MakeDirectoryResponse.verify|verify} messages. - * @param message MakeDirectoryResponse message or plain object to encode + * Encodes the specified PushGitCommitsRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.PushGitCommitsRequest.verify|verify} messages. + * @param message PushGitCommitsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.IMakeDirectoryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IPushGitCommitsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MakeDirectoryResponse message from the specified reader or buffer. + * Decodes a PushGitCommitsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MakeDirectoryResponse + * @returns PushGitCommitsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.MakeDirectoryResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.PushGitCommitsRequest; /** - * Decodes a MakeDirectoryResponse message from the specified reader or buffer, length delimited. + * Decodes a PushGitCommitsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MakeDirectoryResponse + * @returns PushGitCommitsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.MakeDirectoryResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.PushGitCommitsRequest; /** - * Verifies a MakeDirectoryResponse message. + * Verifies a PushGitCommitsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MakeDirectoryResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PushGitCommitsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MakeDirectoryResponse + * @returns PushGitCommitsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.MakeDirectoryResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.PushGitCommitsRequest; /** - * Creates a plain object from a MakeDirectoryResponse message. Also converts values to other types if specified. - * @param message MakeDirectoryResponse + * Creates a plain object from a PushGitCommitsRequest message. Also converts values to other types if specified. + * @param message PushGitCommitsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dataform.v1beta1.MakeDirectoryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dataform.v1beta1.PushGitCommitsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MakeDirectoryResponse to JSON. + * Converts this PushGitCommitsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MakeDirectoryResponse + * Gets the default type url for PushGitCommitsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RemoveDirectoryRequest. */ - interface IRemoveDirectoryRequest { - - /** RemoveDirectoryRequest workspace */ - workspace?: (string|null); + /** Properties of a FetchFileGitStatusesRequest. */ + interface IFetchFileGitStatusesRequest { - /** RemoveDirectoryRequest path */ - path?: (string|null); + /** FetchFileGitStatusesRequest name */ + name?: (string|null); } - /** Represents a RemoveDirectoryRequest. */ - class RemoveDirectoryRequest implements IRemoveDirectoryRequest { + /** Represents a FetchFileGitStatusesRequest. */ + class FetchFileGitStatusesRequest implements IFetchFileGitStatusesRequest { /** - * Constructs a new RemoveDirectoryRequest. + * Constructs a new FetchFileGitStatusesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dataform.v1beta1.IRemoveDirectoryRequest); - - /** RemoveDirectoryRequest workspace. */ - public workspace: string; + constructor(properties?: google.cloud.dataform.v1beta1.IFetchFileGitStatusesRequest); - /** RemoveDirectoryRequest path. */ - public path: string; + /** FetchFileGitStatusesRequest name. */ + public name: string; /** - * Creates a new RemoveDirectoryRequest instance using the specified properties. + * Creates a new FetchFileGitStatusesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RemoveDirectoryRequest instance + * @returns FetchFileGitStatusesRequest instance */ - public static create(properties?: google.cloud.dataform.v1beta1.IRemoveDirectoryRequest): google.cloud.dataform.v1beta1.RemoveDirectoryRequest; + public static create(properties?: google.cloud.dataform.v1beta1.IFetchFileGitStatusesRequest): google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest; /** - * Encodes the specified RemoveDirectoryRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.RemoveDirectoryRequest.verify|verify} messages. - * @param message RemoveDirectoryRequest message or plain object to encode + * Encodes the specified FetchFileGitStatusesRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest.verify|verify} messages. + * @param message FetchFileGitStatusesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dataform.v1beta1.IRemoveDirectoryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dataform.v1beta1.IFetchFileGitStatusesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RemoveDirectoryRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.RemoveDirectoryRequest.verify|verify} messages. - * @param message RemoveDirectoryRequest message or plain object to encode + * Encodes the specified FetchFileGitStatusesRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest.verify|verify} messages. + * @param message FetchFileGitStatusesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.IRemoveDirectoryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IFetchFileGitStatusesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RemoveDirectoryRequest message from the specified reader or buffer. + * Decodes a FetchFileGitStatusesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RemoveDirectoryRequest + * @returns FetchFileGitStatusesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.RemoveDirectoryRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest; /** - * Decodes a RemoveDirectoryRequest message from the specified reader or buffer, length delimited. + * Decodes a FetchFileGitStatusesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RemoveDirectoryRequest + * @returns FetchFileGitStatusesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.RemoveDirectoryRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest; /** - * Verifies a RemoveDirectoryRequest message. + * Verifies a FetchFileGitStatusesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RemoveDirectoryRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FetchFileGitStatusesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RemoveDirectoryRequest + * @returns FetchFileGitStatusesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.RemoveDirectoryRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest; /** - * Creates a plain object from a RemoveDirectoryRequest message. Also converts values to other types if specified. - * @param message RemoveDirectoryRequest + * Creates a plain object from a FetchFileGitStatusesRequest message. Also converts values to other types if specified. + * @param message FetchFileGitStatusesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dataform.v1beta1.RemoveDirectoryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RemoveDirectoryRequest to JSON. + * Converts this FetchFileGitStatusesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RemoveDirectoryRequest + * Gets the default type url for FetchFileGitStatusesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a MoveDirectoryRequest. */ - interface IMoveDirectoryRequest { - - /** MoveDirectoryRequest workspace */ - workspace?: (string|null); - - /** MoveDirectoryRequest path */ - path?: (string|null); + /** Properties of a FetchFileGitStatusesResponse. */ + interface IFetchFileGitStatusesResponse { - /** MoveDirectoryRequest newPath */ - newPath?: (string|null); + /** FetchFileGitStatusesResponse uncommittedFileChanges */ + uncommittedFileChanges?: (google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.IUncommittedFileChange[]|null); } - /** Represents a MoveDirectoryRequest. */ - class MoveDirectoryRequest implements IMoveDirectoryRequest { + /** Represents a FetchFileGitStatusesResponse. */ + class FetchFileGitStatusesResponse implements IFetchFileGitStatusesResponse { /** - * Constructs a new MoveDirectoryRequest. + * Constructs a new FetchFileGitStatusesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dataform.v1beta1.IMoveDirectoryRequest); - - /** MoveDirectoryRequest workspace. */ - public workspace: string; - - /** MoveDirectoryRequest path. */ - public path: string; + constructor(properties?: google.cloud.dataform.v1beta1.IFetchFileGitStatusesResponse); - /** MoveDirectoryRequest newPath. */ - public newPath: string; + /** FetchFileGitStatusesResponse uncommittedFileChanges. */ + public uncommittedFileChanges: google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.IUncommittedFileChange[]; /** - * Creates a new MoveDirectoryRequest instance using the specified properties. + * Creates a new FetchFileGitStatusesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns MoveDirectoryRequest instance + * @returns FetchFileGitStatusesResponse instance */ - public static create(properties?: google.cloud.dataform.v1beta1.IMoveDirectoryRequest): google.cloud.dataform.v1beta1.MoveDirectoryRequest; + public static create(properties?: google.cloud.dataform.v1beta1.IFetchFileGitStatusesResponse): google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse; /** - * Encodes the specified MoveDirectoryRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.MoveDirectoryRequest.verify|verify} messages. - * @param message MoveDirectoryRequest message or plain object to encode + * Encodes the specified FetchFileGitStatusesResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.verify|verify} messages. + * @param message FetchFileGitStatusesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dataform.v1beta1.IMoveDirectoryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dataform.v1beta1.IFetchFileGitStatusesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MoveDirectoryRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.MoveDirectoryRequest.verify|verify} messages. - * @param message MoveDirectoryRequest message or plain object to encode + * Encodes the specified FetchFileGitStatusesResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.verify|verify} messages. + * @param message FetchFileGitStatusesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.IMoveDirectoryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IFetchFileGitStatusesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MoveDirectoryRequest message from the specified reader or buffer. + * Decodes a FetchFileGitStatusesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MoveDirectoryRequest + * @returns FetchFileGitStatusesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.MoveDirectoryRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse; /** - * Decodes a MoveDirectoryRequest message from the specified reader or buffer, length delimited. + * Decodes a FetchFileGitStatusesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MoveDirectoryRequest + * @returns FetchFileGitStatusesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.MoveDirectoryRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse; /** - * Verifies a MoveDirectoryRequest message. + * Verifies a FetchFileGitStatusesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MoveDirectoryRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FetchFileGitStatusesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MoveDirectoryRequest + * @returns FetchFileGitStatusesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.MoveDirectoryRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse; /** - * Creates a plain object from a MoveDirectoryRequest message. Also converts values to other types if specified. - * @param message MoveDirectoryRequest + * Creates a plain object from a FetchFileGitStatusesResponse message. Also converts values to other types if specified. + * @param message FetchFileGitStatusesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dataform.v1beta1.MoveDirectoryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MoveDirectoryRequest to JSON. + * Converts this FetchFileGitStatusesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MoveDirectoryRequest + * Gets the default type url for FetchFileGitStatusesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a MoveDirectoryResponse. */ - interface IMoveDirectoryResponse { - } - - /** Represents a MoveDirectoryResponse. */ - class MoveDirectoryResponse implements IMoveDirectoryResponse { - - /** - * Constructs a new MoveDirectoryResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dataform.v1beta1.IMoveDirectoryResponse); + namespace FetchFileGitStatusesResponse { - /** - * Creates a new MoveDirectoryResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns MoveDirectoryResponse instance - */ - public static create(properties?: google.cloud.dataform.v1beta1.IMoveDirectoryResponse): google.cloud.dataform.v1beta1.MoveDirectoryResponse; + /** Properties of an UncommittedFileChange. */ + interface IUncommittedFileChange { - /** - * Encodes the specified MoveDirectoryResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.MoveDirectoryResponse.verify|verify} messages. - * @param message MoveDirectoryResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dataform.v1beta1.IMoveDirectoryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** UncommittedFileChange path */ + path?: (string|null); - /** - * Encodes the specified MoveDirectoryResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.MoveDirectoryResponse.verify|verify} messages. - * @param message MoveDirectoryResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.IMoveDirectoryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** UncommittedFileChange state */ + state?: (google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.State|keyof typeof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.State|null); + } - /** - * Decodes a MoveDirectoryResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MoveDirectoryResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.MoveDirectoryResponse; + /** Represents an UncommittedFileChange. */ + class UncommittedFileChange implements IUncommittedFileChange { - /** - * Decodes a MoveDirectoryResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MoveDirectoryResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.MoveDirectoryResponse; + /** + * Constructs a new UncommittedFileChange. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.IUncommittedFileChange); - /** - * Verifies a MoveDirectoryResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** UncommittedFileChange path. */ + public path: string; - /** - * Creates a MoveDirectoryResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MoveDirectoryResponse - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.MoveDirectoryResponse; + /** UncommittedFileChange state. */ + public state: (google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.State|keyof typeof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.State); - /** - * Creates a plain object from a MoveDirectoryResponse message. Also converts values to other types if specified. - * @param message MoveDirectoryResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dataform.v1beta1.MoveDirectoryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a new UncommittedFileChange instance using the specified properties. + * @param [properties] Properties to set + * @returns UncommittedFileChange instance + */ + public static create(properties?: google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.IUncommittedFileChange): google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange; - /** - * Converts this MoveDirectoryResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified UncommittedFileChange message. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.verify|verify} messages. + * @param message UncommittedFileChange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.IUncommittedFileChange, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for MoveDirectoryResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Encodes the specified UncommittedFileChange message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.verify|verify} messages. + * @param message UncommittedFileChange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.IUncommittedFileChange, writer?: $protobuf.Writer): $protobuf.Writer; - /** Properties of a ReadFileRequest. */ - interface IReadFileRequest { + /** + * Decodes an UncommittedFileChange message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UncommittedFileChange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange; - /** ReadFileRequest workspace */ - workspace?: (string|null); + /** + * Decodes an UncommittedFileChange message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UncommittedFileChange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange; - /** ReadFileRequest path */ - path?: (string|null); + /** + * Verifies an UncommittedFileChange message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an UncommittedFileChange message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UncommittedFileChange + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange; + + /** + * Creates a plain object from an UncommittedFileChange message. Also converts values to other types if specified. + * @param message UncommittedFileChange + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UncommittedFileChange to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UncommittedFileChange + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace UncommittedFileChange { + + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + ADDED = 1, + DELETED = 2, + MODIFIED = 3, + HAS_CONFLICTS = 4 + } + } } - /** Represents a ReadFileRequest. */ - class ReadFileRequest implements IReadFileRequest { + /** Properties of a FetchGitAheadBehindRequest. */ + interface IFetchGitAheadBehindRequest { + + /** FetchGitAheadBehindRequest name */ + name?: (string|null); + + /** FetchGitAheadBehindRequest remoteBranch */ + remoteBranch?: (string|null); + } + + /** Represents a FetchGitAheadBehindRequest. */ + class FetchGitAheadBehindRequest implements IFetchGitAheadBehindRequest { /** - * Constructs a new ReadFileRequest. + * Constructs a new FetchGitAheadBehindRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dataform.v1beta1.IReadFileRequest); + constructor(properties?: google.cloud.dataform.v1beta1.IFetchGitAheadBehindRequest); - /** ReadFileRequest workspace. */ - public workspace: string; + /** FetchGitAheadBehindRequest name. */ + public name: string; - /** ReadFileRequest path. */ - public path: string; + /** FetchGitAheadBehindRequest remoteBranch. */ + public remoteBranch: string; /** - * Creates a new ReadFileRequest instance using the specified properties. + * Creates a new FetchGitAheadBehindRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ReadFileRequest instance + * @returns FetchGitAheadBehindRequest instance */ - public static create(properties?: google.cloud.dataform.v1beta1.IReadFileRequest): google.cloud.dataform.v1beta1.ReadFileRequest; + public static create(properties?: google.cloud.dataform.v1beta1.IFetchGitAheadBehindRequest): google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest; /** - * Encodes the specified ReadFileRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.ReadFileRequest.verify|verify} messages. - * @param message ReadFileRequest message or plain object to encode + * Encodes the specified FetchGitAheadBehindRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest.verify|verify} messages. + * @param message FetchGitAheadBehindRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dataform.v1beta1.IReadFileRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dataform.v1beta1.IFetchGitAheadBehindRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadFileRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.ReadFileRequest.verify|verify} messages. - * @param message ReadFileRequest message or plain object to encode + * Encodes the specified FetchGitAheadBehindRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest.verify|verify} messages. + * @param message FetchGitAheadBehindRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.IReadFileRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IFetchGitAheadBehindRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadFileRequest message from the specified reader or buffer. + * Decodes a FetchGitAheadBehindRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadFileRequest + * @returns FetchGitAheadBehindRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.ReadFileRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest; /** - * Decodes a ReadFileRequest message from the specified reader or buffer, length delimited. + * Decodes a FetchGitAheadBehindRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadFileRequest + * @returns FetchGitAheadBehindRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.ReadFileRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest; /** - * Verifies a ReadFileRequest message. + * Verifies a FetchGitAheadBehindRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ReadFileRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FetchGitAheadBehindRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadFileRequest + * @returns FetchGitAheadBehindRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.ReadFileRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest; /** - * Creates a plain object from a ReadFileRequest message. Also converts values to other types if specified. - * @param message ReadFileRequest + * Creates a plain object from a FetchGitAheadBehindRequest message. Also converts values to other types if specified. + * @param message FetchGitAheadBehindRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dataform.v1beta1.ReadFileRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadFileRequest to JSON. + * Converts this FetchGitAheadBehindRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReadFileRequest + * Gets the default type url for FetchGitAheadBehindRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ReadFileResponse. */ - interface IReadFileResponse { + /** Properties of a FetchGitAheadBehindResponse. */ + interface IFetchGitAheadBehindResponse { - /** ReadFileResponse fileContents */ - fileContents?: (Uint8Array|string|null); + /** FetchGitAheadBehindResponse commitsAhead */ + commitsAhead?: (number|null); + + /** FetchGitAheadBehindResponse commitsBehind */ + commitsBehind?: (number|null); } - /** Represents a ReadFileResponse. */ - class ReadFileResponse implements IReadFileResponse { + /** Represents a FetchGitAheadBehindResponse. */ + class FetchGitAheadBehindResponse implements IFetchGitAheadBehindResponse { /** - * Constructs a new ReadFileResponse. + * Constructs a new FetchGitAheadBehindResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dataform.v1beta1.IReadFileResponse); + constructor(properties?: google.cloud.dataform.v1beta1.IFetchGitAheadBehindResponse); - /** ReadFileResponse fileContents. */ - public fileContents: (Uint8Array|string); + /** FetchGitAheadBehindResponse commitsAhead. */ + public commitsAhead: number; + + /** FetchGitAheadBehindResponse commitsBehind. */ + public commitsBehind: number; /** - * Creates a new ReadFileResponse instance using the specified properties. + * Creates a new FetchGitAheadBehindResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ReadFileResponse instance + * @returns FetchGitAheadBehindResponse instance */ - public static create(properties?: google.cloud.dataform.v1beta1.IReadFileResponse): google.cloud.dataform.v1beta1.ReadFileResponse; + public static create(properties?: google.cloud.dataform.v1beta1.IFetchGitAheadBehindResponse): google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse; /** - * Encodes the specified ReadFileResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.ReadFileResponse.verify|verify} messages. - * @param message ReadFileResponse message or plain object to encode + * Encodes the specified FetchGitAheadBehindResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse.verify|verify} messages. + * @param message FetchGitAheadBehindResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dataform.v1beta1.IReadFileResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dataform.v1beta1.IFetchGitAheadBehindResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadFileResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.ReadFileResponse.verify|verify} messages. - * @param message ReadFileResponse message or plain object to encode + * Encodes the specified FetchGitAheadBehindResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse.verify|verify} messages. + * @param message FetchGitAheadBehindResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.IReadFileResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IFetchGitAheadBehindResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadFileResponse message from the specified reader or buffer. + * Decodes a FetchGitAheadBehindResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadFileResponse + * @returns FetchGitAheadBehindResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.ReadFileResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse; /** - * Decodes a ReadFileResponse message from the specified reader or buffer, length delimited. + * Decodes a FetchGitAheadBehindResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadFileResponse + * @returns FetchGitAheadBehindResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.ReadFileResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse; /** - * Verifies a ReadFileResponse message. + * Verifies a FetchGitAheadBehindResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ReadFileResponse message from a plain object. Also converts values to their respective internal types. + * Creates a FetchGitAheadBehindResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadFileResponse + * @returns FetchGitAheadBehindResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.ReadFileResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse; /** - * Creates a plain object from a ReadFileResponse message. Also converts values to other types if specified. - * @param message ReadFileResponse + * Creates a plain object from a FetchGitAheadBehindResponse message. Also converts values to other types if specified. + * @param message FetchGitAheadBehindResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dataform.v1beta1.ReadFileResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadFileResponse to JSON. + * Converts this FetchGitAheadBehindResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReadFileResponse + * Gets the default type url for FetchGitAheadBehindResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RemoveFileRequest. */ - interface IRemoveFileRequest { + /** Properties of a CommitWorkspaceChangesRequest. */ + interface ICommitWorkspaceChangesRequest { - /** RemoveFileRequest workspace */ - workspace?: (string|null); + /** CommitWorkspaceChangesRequest name */ + name?: (string|null); - /** RemoveFileRequest path */ - path?: (string|null); + /** CommitWorkspaceChangesRequest author */ + author?: (google.cloud.dataform.v1beta1.ICommitAuthor|null); + + /** CommitWorkspaceChangesRequest commitMessage */ + commitMessage?: (string|null); + + /** CommitWorkspaceChangesRequest paths */ + paths?: (string[]|null); } - /** Represents a RemoveFileRequest. */ - class RemoveFileRequest implements IRemoveFileRequest { + /** Represents a CommitWorkspaceChangesRequest. */ + class CommitWorkspaceChangesRequest implements ICommitWorkspaceChangesRequest { /** - * Constructs a new RemoveFileRequest. + * Constructs a new CommitWorkspaceChangesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dataform.v1beta1.IRemoveFileRequest); + constructor(properties?: google.cloud.dataform.v1beta1.ICommitWorkspaceChangesRequest); - /** RemoveFileRequest workspace. */ - public workspace: string; + /** CommitWorkspaceChangesRequest name. */ + public name: string; - /** RemoveFileRequest path. */ - public path: string; + /** CommitWorkspaceChangesRequest author. */ + public author?: (google.cloud.dataform.v1beta1.ICommitAuthor|null); + + /** CommitWorkspaceChangesRequest commitMessage. */ + public commitMessage: string; + + /** CommitWorkspaceChangesRequest paths. */ + public paths: string[]; /** - * Creates a new RemoveFileRequest instance using the specified properties. + * Creates a new CommitWorkspaceChangesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RemoveFileRequest instance + * @returns CommitWorkspaceChangesRequest instance */ - public static create(properties?: google.cloud.dataform.v1beta1.IRemoveFileRequest): google.cloud.dataform.v1beta1.RemoveFileRequest; + public static create(properties?: google.cloud.dataform.v1beta1.ICommitWorkspaceChangesRequest): google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest; /** - * Encodes the specified RemoveFileRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.RemoveFileRequest.verify|verify} messages. - * @param message RemoveFileRequest message or plain object to encode + * Encodes the specified CommitWorkspaceChangesRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest.verify|verify} messages. + * @param message CommitWorkspaceChangesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dataform.v1beta1.IRemoveFileRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dataform.v1beta1.ICommitWorkspaceChangesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RemoveFileRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.RemoveFileRequest.verify|verify} messages. - * @param message RemoveFileRequest message or plain object to encode + * Encodes the specified CommitWorkspaceChangesRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest.verify|verify} messages. + * @param message CommitWorkspaceChangesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.IRemoveFileRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dataform.v1beta1.ICommitWorkspaceChangesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RemoveFileRequest message from the specified reader or buffer. + * Decodes a CommitWorkspaceChangesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RemoveFileRequest + * @returns CommitWorkspaceChangesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.RemoveFileRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest; /** - * Decodes a RemoveFileRequest message from the specified reader or buffer, length delimited. + * Decodes a CommitWorkspaceChangesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RemoveFileRequest + * @returns CommitWorkspaceChangesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.RemoveFileRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest; /** - * Verifies a RemoveFileRequest message. + * Verifies a CommitWorkspaceChangesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RemoveFileRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CommitWorkspaceChangesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RemoveFileRequest + * @returns CommitWorkspaceChangesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.RemoveFileRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest; /** - * Creates a plain object from a RemoveFileRequest message. Also converts values to other types if specified. - * @param message RemoveFileRequest + * Creates a plain object from a CommitWorkspaceChangesRequest message. Also converts values to other types if specified. + * @param message CommitWorkspaceChangesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dataform.v1beta1.RemoveFileRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RemoveFileRequest to JSON. + * Converts this CommitWorkspaceChangesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RemoveFileRequest + * Gets the default type url for CommitWorkspaceChangesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a MoveFileRequest. */ - interface IMoveFileRequest { + /** Properties of a ResetWorkspaceChangesRequest. */ + interface IResetWorkspaceChangesRequest { - /** MoveFileRequest workspace */ - workspace?: (string|null); + /** ResetWorkspaceChangesRequest name */ + name?: (string|null); - /** MoveFileRequest path */ - path?: (string|null); + /** ResetWorkspaceChangesRequest paths */ + paths?: (string[]|null); - /** MoveFileRequest newPath */ - newPath?: (string|null); + /** ResetWorkspaceChangesRequest clean */ + clean?: (boolean|null); } - /** Represents a MoveFileRequest. */ - class MoveFileRequest implements IMoveFileRequest { + /** Represents a ResetWorkspaceChangesRequest. */ + class ResetWorkspaceChangesRequest implements IResetWorkspaceChangesRequest { /** - * Constructs a new MoveFileRequest. + * Constructs a new ResetWorkspaceChangesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dataform.v1beta1.IMoveFileRequest); + constructor(properties?: google.cloud.dataform.v1beta1.IResetWorkspaceChangesRequest); - /** MoveFileRequest workspace. */ - public workspace: string; + /** ResetWorkspaceChangesRequest name. */ + public name: string; - /** MoveFileRequest path. */ - public path: string; + /** ResetWorkspaceChangesRequest paths. */ + public paths: string[]; - /** MoveFileRequest newPath. */ - public newPath: string; + /** ResetWorkspaceChangesRequest clean. */ + public clean: boolean; /** - * Creates a new MoveFileRequest instance using the specified properties. + * Creates a new ResetWorkspaceChangesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns MoveFileRequest instance + * @returns ResetWorkspaceChangesRequest instance */ - public static create(properties?: google.cloud.dataform.v1beta1.IMoveFileRequest): google.cloud.dataform.v1beta1.MoveFileRequest; + public static create(properties?: google.cloud.dataform.v1beta1.IResetWorkspaceChangesRequest): google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest; /** - * Encodes the specified MoveFileRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.MoveFileRequest.verify|verify} messages. - * @param message MoveFileRequest message or plain object to encode + * Encodes the specified ResetWorkspaceChangesRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest.verify|verify} messages. + * @param message ResetWorkspaceChangesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dataform.v1beta1.IMoveFileRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dataform.v1beta1.IResetWorkspaceChangesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MoveFileRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.MoveFileRequest.verify|verify} messages. - * @param message MoveFileRequest message or plain object to encode + * Encodes the specified ResetWorkspaceChangesRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest.verify|verify} messages. + * @param message ResetWorkspaceChangesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.IMoveFileRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IResetWorkspaceChangesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MoveFileRequest message from the specified reader or buffer. + * Decodes a ResetWorkspaceChangesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MoveFileRequest + * @returns ResetWorkspaceChangesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.MoveFileRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest; /** - * Decodes a MoveFileRequest message from the specified reader or buffer, length delimited. + * Decodes a ResetWorkspaceChangesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MoveFileRequest + * @returns ResetWorkspaceChangesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.MoveFileRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest; /** - * Verifies a MoveFileRequest message. + * Verifies a ResetWorkspaceChangesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MoveFileRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ResetWorkspaceChangesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MoveFileRequest + * @returns ResetWorkspaceChangesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.MoveFileRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest; /** - * Creates a plain object from a MoveFileRequest message. Also converts values to other types if specified. - * @param message MoveFileRequest + * Creates a plain object from a ResetWorkspaceChangesRequest message. Also converts values to other types if specified. + * @param message ResetWorkspaceChangesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dataform.v1beta1.MoveFileRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MoveFileRequest to JSON. + * Converts this ResetWorkspaceChangesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MoveFileRequest + * Gets the default type url for ResetWorkspaceChangesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a MoveFileResponse. */ - interface IMoveFileResponse { + /** Properties of a FetchFileDiffRequest. */ + interface IFetchFileDiffRequest { + + /** FetchFileDiffRequest workspace */ + workspace?: (string|null); + + /** FetchFileDiffRequest path */ + path?: (string|null); } - /** Represents a MoveFileResponse. */ - class MoveFileResponse implements IMoveFileResponse { + /** Represents a FetchFileDiffRequest. */ + class FetchFileDiffRequest implements IFetchFileDiffRequest { /** - * Constructs a new MoveFileResponse. + * Constructs a new FetchFileDiffRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dataform.v1beta1.IMoveFileResponse); + constructor(properties?: google.cloud.dataform.v1beta1.IFetchFileDiffRequest); + + /** FetchFileDiffRequest workspace. */ + public workspace: string; + + /** FetchFileDiffRequest path. */ + public path: string; /** - * Creates a new MoveFileResponse instance using the specified properties. + * Creates a new FetchFileDiffRequest instance using the specified properties. * @param [properties] Properties to set - * @returns MoveFileResponse instance + * @returns FetchFileDiffRequest instance */ - public static create(properties?: google.cloud.dataform.v1beta1.IMoveFileResponse): google.cloud.dataform.v1beta1.MoveFileResponse; + public static create(properties?: google.cloud.dataform.v1beta1.IFetchFileDiffRequest): google.cloud.dataform.v1beta1.FetchFileDiffRequest; /** - * Encodes the specified MoveFileResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.MoveFileResponse.verify|verify} messages. - * @param message MoveFileResponse message or plain object to encode + * Encodes the specified FetchFileDiffRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchFileDiffRequest.verify|verify} messages. + * @param message FetchFileDiffRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dataform.v1beta1.IMoveFileResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dataform.v1beta1.IFetchFileDiffRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MoveFileResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.MoveFileResponse.verify|verify} messages. - * @param message MoveFileResponse message or plain object to encode + * Encodes the specified FetchFileDiffRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchFileDiffRequest.verify|verify} messages. + * @param message FetchFileDiffRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.IMoveFileResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IFetchFileDiffRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MoveFileResponse message from the specified reader or buffer. + * Decodes a FetchFileDiffRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MoveFileResponse + * @returns FetchFileDiffRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.MoveFileResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.FetchFileDiffRequest; /** - * Decodes a MoveFileResponse message from the specified reader or buffer, length delimited. + * Decodes a FetchFileDiffRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MoveFileResponse + * @returns FetchFileDiffRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.MoveFileResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.FetchFileDiffRequest; /** - * Verifies a MoveFileResponse message. + * Verifies a FetchFileDiffRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MoveFileResponse message from a plain object. Also converts values to their respective internal types. + * Creates a FetchFileDiffRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MoveFileResponse + * @returns FetchFileDiffRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.MoveFileResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.FetchFileDiffRequest; /** - * Creates a plain object from a MoveFileResponse message. Also converts values to other types if specified. - * @param message MoveFileResponse + * Creates a plain object from a FetchFileDiffRequest message. Also converts values to other types if specified. + * @param message FetchFileDiffRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dataform.v1beta1.MoveFileResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dataform.v1beta1.FetchFileDiffRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MoveFileResponse to JSON. + * Converts this FetchFileDiffRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MoveFileResponse + * Gets the default type url for FetchFileDiffRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a WriteFileRequest. */ - interface IWriteFileRequest { - - /** WriteFileRequest workspace */ - workspace?: (string|null); - - /** WriteFileRequest path */ - path?: (string|null); + /** Properties of a FetchFileDiffResponse. */ + interface IFetchFileDiffResponse { - /** WriteFileRequest contents */ - contents?: (Uint8Array|string|null); + /** FetchFileDiffResponse formattedDiff */ + formattedDiff?: (string|null); } - /** Represents a WriteFileRequest. */ - class WriteFileRequest implements IWriteFileRequest { + /** Represents a FetchFileDiffResponse. */ + class FetchFileDiffResponse implements IFetchFileDiffResponse { /** - * Constructs a new WriteFileRequest. + * Constructs a new FetchFileDiffResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dataform.v1beta1.IWriteFileRequest); - - /** WriteFileRequest workspace. */ - public workspace: string; - - /** WriteFileRequest path. */ - public path: string; + constructor(properties?: google.cloud.dataform.v1beta1.IFetchFileDiffResponse); - /** WriteFileRequest contents. */ - public contents: (Uint8Array|string); + /** FetchFileDiffResponse formattedDiff. */ + public formattedDiff: string; /** - * Creates a new WriteFileRequest instance using the specified properties. + * Creates a new FetchFileDiffResponse instance using the specified properties. * @param [properties] Properties to set - * @returns WriteFileRequest instance + * @returns FetchFileDiffResponse instance */ - public static create(properties?: google.cloud.dataform.v1beta1.IWriteFileRequest): google.cloud.dataform.v1beta1.WriteFileRequest; + public static create(properties?: google.cloud.dataform.v1beta1.IFetchFileDiffResponse): google.cloud.dataform.v1beta1.FetchFileDiffResponse; /** - * Encodes the specified WriteFileRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.WriteFileRequest.verify|verify} messages. - * @param message WriteFileRequest message or plain object to encode + * Encodes the specified FetchFileDiffResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchFileDiffResponse.verify|verify} messages. + * @param message FetchFileDiffResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dataform.v1beta1.IWriteFileRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dataform.v1beta1.IFetchFileDiffResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WriteFileRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.WriteFileRequest.verify|verify} messages. - * @param message WriteFileRequest message or plain object to encode + * Encodes the specified FetchFileDiffResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchFileDiffResponse.verify|verify} messages. + * @param message FetchFileDiffResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.IWriteFileRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IFetchFileDiffResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WriteFileRequest message from the specified reader or buffer. + * Decodes a FetchFileDiffResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WriteFileRequest + * @returns FetchFileDiffResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.WriteFileRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.FetchFileDiffResponse; /** - * Decodes a WriteFileRequest message from the specified reader or buffer, length delimited. + * Decodes a FetchFileDiffResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WriteFileRequest + * @returns FetchFileDiffResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.WriteFileRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.FetchFileDiffResponse; /** - * Verifies a WriteFileRequest message. + * Verifies a FetchFileDiffResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a WriteFileRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FetchFileDiffResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WriteFileRequest + * @returns FetchFileDiffResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.WriteFileRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.FetchFileDiffResponse; /** - * Creates a plain object from a WriteFileRequest message. Also converts values to other types if specified. - * @param message WriteFileRequest + * Creates a plain object from a FetchFileDiffResponse message. Also converts values to other types if specified. + * @param message FetchFileDiffResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dataform.v1beta1.WriteFileRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dataform.v1beta1.FetchFileDiffResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WriteFileRequest to JSON. + * Converts this FetchFileDiffResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for WriteFileRequest + * Gets the default type url for FetchFileDiffResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a WriteFileResponse. */ - interface IWriteFileResponse { + /** Properties of a QueryDirectoryContentsRequest. */ + interface IQueryDirectoryContentsRequest { + + /** QueryDirectoryContentsRequest workspace */ + workspace?: (string|null); + + /** QueryDirectoryContentsRequest path */ + path?: (string|null); + + /** QueryDirectoryContentsRequest pageSize */ + pageSize?: (number|null); + + /** QueryDirectoryContentsRequest pageToken */ + pageToken?: (string|null); } - /** Represents a WriteFileResponse. */ - class WriteFileResponse implements IWriteFileResponse { + /** Represents a QueryDirectoryContentsRequest. */ + class QueryDirectoryContentsRequest implements IQueryDirectoryContentsRequest { /** - * Constructs a new WriteFileResponse. + * Constructs a new QueryDirectoryContentsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dataform.v1beta1.IWriteFileResponse); + constructor(properties?: google.cloud.dataform.v1beta1.IQueryDirectoryContentsRequest); + + /** QueryDirectoryContentsRequest workspace. */ + public workspace: string; + + /** QueryDirectoryContentsRequest path. */ + public path: string; + + /** QueryDirectoryContentsRequest pageSize. */ + public pageSize: number; + + /** QueryDirectoryContentsRequest pageToken. */ + public pageToken: string; /** - * Creates a new WriteFileResponse instance using the specified properties. + * Creates a new QueryDirectoryContentsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns WriteFileResponse instance + * @returns QueryDirectoryContentsRequest instance */ - public static create(properties?: google.cloud.dataform.v1beta1.IWriteFileResponse): google.cloud.dataform.v1beta1.WriteFileResponse; + public static create(properties?: google.cloud.dataform.v1beta1.IQueryDirectoryContentsRequest): google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest; /** - * Encodes the specified WriteFileResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.WriteFileResponse.verify|verify} messages. - * @param message WriteFileResponse message or plain object to encode + * Encodes the specified QueryDirectoryContentsRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest.verify|verify} messages. + * @param message QueryDirectoryContentsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dataform.v1beta1.IWriteFileResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dataform.v1beta1.IQueryDirectoryContentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WriteFileResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.WriteFileResponse.verify|verify} messages. - * @param message WriteFileResponse message or plain object to encode + * Encodes the specified QueryDirectoryContentsRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest.verify|verify} messages. + * @param message QueryDirectoryContentsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.IWriteFileResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IQueryDirectoryContentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WriteFileResponse message from the specified reader or buffer. + * Decodes a QueryDirectoryContentsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WriteFileResponse + * @returns QueryDirectoryContentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.WriteFileResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest; /** - * Decodes a WriteFileResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryDirectoryContentsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WriteFileResponse + * @returns QueryDirectoryContentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.WriteFileResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest; /** - * Verifies a WriteFileResponse message. + * Verifies a QueryDirectoryContentsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a WriteFileResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryDirectoryContentsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WriteFileResponse + * @returns QueryDirectoryContentsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.WriteFileResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest; /** - * Creates a plain object from a WriteFileResponse message. Also converts values to other types if specified. - * @param message WriteFileResponse + * Creates a plain object from a QueryDirectoryContentsRequest message. Also converts values to other types if specified. + * @param message QueryDirectoryContentsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dataform.v1beta1.WriteFileResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WriteFileResponse to JSON. + * Converts this QueryDirectoryContentsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for WriteFileResponse + * Gets the default type url for QueryDirectoryContentsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an InstallNpmPackagesRequest. */ - interface IInstallNpmPackagesRequest { + /** Properties of a QueryDirectoryContentsResponse. */ + interface IQueryDirectoryContentsResponse { - /** InstallNpmPackagesRequest workspace */ - workspace?: (string|null); + /** QueryDirectoryContentsResponse directoryEntries */ + directoryEntries?: (google.cloud.dataform.v1beta1.IDirectoryEntry[]|null); + + /** QueryDirectoryContentsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents an InstallNpmPackagesRequest. */ - class InstallNpmPackagesRequest implements IInstallNpmPackagesRequest { + /** Represents a QueryDirectoryContentsResponse. */ + class QueryDirectoryContentsResponse implements IQueryDirectoryContentsResponse { /** - * Constructs a new InstallNpmPackagesRequest. + * Constructs a new QueryDirectoryContentsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dataform.v1beta1.IInstallNpmPackagesRequest); + constructor(properties?: google.cloud.dataform.v1beta1.IQueryDirectoryContentsResponse); - /** InstallNpmPackagesRequest workspace. */ - public workspace: string; + /** QueryDirectoryContentsResponse directoryEntries. */ + public directoryEntries: google.cloud.dataform.v1beta1.IDirectoryEntry[]; + + /** QueryDirectoryContentsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new InstallNpmPackagesRequest instance using the specified properties. + * Creates a new QueryDirectoryContentsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns InstallNpmPackagesRequest instance + * @returns QueryDirectoryContentsResponse instance */ - public static create(properties?: google.cloud.dataform.v1beta1.IInstallNpmPackagesRequest): google.cloud.dataform.v1beta1.InstallNpmPackagesRequest; + public static create(properties?: google.cloud.dataform.v1beta1.IQueryDirectoryContentsResponse): google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse; /** - * Encodes the specified InstallNpmPackagesRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.InstallNpmPackagesRequest.verify|verify} messages. - * @param message InstallNpmPackagesRequest message or plain object to encode + * Encodes the specified QueryDirectoryContentsResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.verify|verify} messages. + * @param message QueryDirectoryContentsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dataform.v1beta1.IInstallNpmPackagesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dataform.v1beta1.IQueryDirectoryContentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified InstallNpmPackagesRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.InstallNpmPackagesRequest.verify|verify} messages. - * @param message InstallNpmPackagesRequest message or plain object to encode + * Encodes the specified QueryDirectoryContentsResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.verify|verify} messages. + * @param message QueryDirectoryContentsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.IInstallNpmPackagesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IQueryDirectoryContentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an InstallNpmPackagesRequest message from the specified reader or buffer. + * Decodes a QueryDirectoryContentsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns InstallNpmPackagesRequest + * @returns QueryDirectoryContentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.InstallNpmPackagesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse; /** - * Decodes an InstallNpmPackagesRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryDirectoryContentsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns InstallNpmPackagesRequest + * @returns QueryDirectoryContentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.InstallNpmPackagesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse; /** - * Verifies an InstallNpmPackagesRequest message. + * Verifies a QueryDirectoryContentsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an InstallNpmPackagesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryDirectoryContentsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns InstallNpmPackagesRequest + * @returns QueryDirectoryContentsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.InstallNpmPackagesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse; /** - * Creates a plain object from an InstallNpmPackagesRequest message. Also converts values to other types if specified. - * @param message InstallNpmPackagesRequest + * Creates a plain object from a QueryDirectoryContentsResponse message. Also converts values to other types if specified. + * @param message QueryDirectoryContentsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dataform.v1beta1.InstallNpmPackagesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this InstallNpmPackagesRequest to JSON. + * Converts this QueryDirectoryContentsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for InstallNpmPackagesRequest + * Gets the default type url for QueryDirectoryContentsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an InstallNpmPackagesResponse. */ - interface IInstallNpmPackagesResponse { + /** Properties of a DirectoryEntry. */ + interface IDirectoryEntry { + + /** DirectoryEntry file */ + file?: (string|null); + + /** DirectoryEntry directory */ + directory?: (string|null); } - /** Represents an InstallNpmPackagesResponse. */ - class InstallNpmPackagesResponse implements IInstallNpmPackagesResponse { + /** Represents a DirectoryEntry. */ + class DirectoryEntry implements IDirectoryEntry { /** - * Constructs a new InstallNpmPackagesResponse. + * Constructs a new DirectoryEntry. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dataform.v1beta1.IInstallNpmPackagesResponse); + constructor(properties?: google.cloud.dataform.v1beta1.IDirectoryEntry); + + /** DirectoryEntry file. */ + public file?: (string|null); + + /** DirectoryEntry directory. */ + public directory?: (string|null); + + /** DirectoryEntry entry. */ + public entry?: ("file"|"directory"); /** - * Creates a new InstallNpmPackagesResponse instance using the specified properties. + * Creates a new DirectoryEntry instance using the specified properties. * @param [properties] Properties to set - * @returns InstallNpmPackagesResponse instance + * @returns DirectoryEntry instance */ - public static create(properties?: google.cloud.dataform.v1beta1.IInstallNpmPackagesResponse): google.cloud.dataform.v1beta1.InstallNpmPackagesResponse; + public static create(properties?: google.cloud.dataform.v1beta1.IDirectoryEntry): google.cloud.dataform.v1beta1.DirectoryEntry; /** - * Encodes the specified InstallNpmPackagesResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.InstallNpmPackagesResponse.verify|verify} messages. - * @param message InstallNpmPackagesResponse message or plain object to encode + * Encodes the specified DirectoryEntry message. Does not implicitly {@link google.cloud.dataform.v1beta1.DirectoryEntry.verify|verify} messages. + * @param message DirectoryEntry message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dataform.v1beta1.IInstallNpmPackagesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dataform.v1beta1.IDirectoryEntry, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified InstallNpmPackagesResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.InstallNpmPackagesResponse.verify|verify} messages. - * @param message InstallNpmPackagesResponse message or plain object to encode + * Encodes the specified DirectoryEntry message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.DirectoryEntry.verify|verify} messages. + * @param message DirectoryEntry message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.IInstallNpmPackagesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IDirectoryEntry, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an InstallNpmPackagesResponse message from the specified reader or buffer. + * Decodes a DirectoryEntry message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns InstallNpmPackagesResponse + * @returns DirectoryEntry * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.InstallNpmPackagesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.DirectoryEntry; /** - * Decodes an InstallNpmPackagesResponse message from the specified reader or buffer, length delimited. + * Decodes a DirectoryEntry message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns InstallNpmPackagesResponse + * @returns DirectoryEntry * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.InstallNpmPackagesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.DirectoryEntry; /** - * Verifies an InstallNpmPackagesResponse message. + * Verifies a DirectoryEntry message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an InstallNpmPackagesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DirectoryEntry message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns InstallNpmPackagesResponse + * @returns DirectoryEntry */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.InstallNpmPackagesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.DirectoryEntry; /** - * Creates a plain object from an InstallNpmPackagesResponse message. Also converts values to other types if specified. - * @param message InstallNpmPackagesResponse + * Creates a plain object from a DirectoryEntry message. Also converts values to other types if specified. + * @param message DirectoryEntry * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dataform.v1beta1.InstallNpmPackagesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dataform.v1beta1.DirectoryEntry, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this InstallNpmPackagesResponse to JSON. + * Converts this DirectoryEntry to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for InstallNpmPackagesResponse + * Gets the default type url for DirectoryEntry * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CompilationResult. */ - interface ICompilationResult { - - /** CompilationResult name */ - name?: (string|null); - - /** CompilationResult gitCommitish */ - gitCommitish?: (string|null); + /** Properties of a MakeDirectoryRequest. */ + interface IMakeDirectoryRequest { - /** CompilationResult workspace */ + /** MakeDirectoryRequest workspace */ workspace?: (string|null); - /** CompilationResult codeCompilationConfig */ - codeCompilationConfig?: (google.cloud.dataform.v1beta1.CompilationResult.ICodeCompilationConfig|null); - - /** CompilationResult dataformCoreVersion */ - dataformCoreVersion?: (string|null); - - /** CompilationResult compilationErrors */ - compilationErrors?: (google.cloud.dataform.v1beta1.CompilationResult.ICompilationError[]|null); + /** MakeDirectoryRequest path */ + path?: (string|null); } - /** Represents a CompilationResult. */ - class CompilationResult implements ICompilationResult { + /** Represents a MakeDirectoryRequest. */ + class MakeDirectoryRequest implements IMakeDirectoryRequest { /** - * Constructs a new CompilationResult. + * Constructs a new MakeDirectoryRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dataform.v1beta1.ICompilationResult); - - /** CompilationResult name. */ - public name: string; + constructor(properties?: google.cloud.dataform.v1beta1.IMakeDirectoryRequest); - /** CompilationResult gitCommitish. */ - public gitCommitish?: (string|null); + /** MakeDirectoryRequest workspace. */ + public workspace: string; - /** CompilationResult workspace. */ - public workspace?: (string|null); + /** MakeDirectoryRequest path. */ + public path: string; - /** CompilationResult codeCompilationConfig. */ - public codeCompilationConfig?: (google.cloud.dataform.v1beta1.CompilationResult.ICodeCompilationConfig|null); - - /** CompilationResult dataformCoreVersion. */ - public dataformCoreVersion: string; - - /** CompilationResult compilationErrors. */ - public compilationErrors: google.cloud.dataform.v1beta1.CompilationResult.ICompilationError[]; - - /** CompilationResult source. */ - public source?: ("gitCommitish"|"workspace"); - - /** - * Creates a new CompilationResult instance using the specified properties. - * @param [properties] Properties to set - * @returns CompilationResult instance - */ - public static create(properties?: google.cloud.dataform.v1beta1.ICompilationResult): google.cloud.dataform.v1beta1.CompilationResult; + /** + * Creates a new MakeDirectoryRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns MakeDirectoryRequest instance + */ + public static create(properties?: google.cloud.dataform.v1beta1.IMakeDirectoryRequest): google.cloud.dataform.v1beta1.MakeDirectoryRequest; /** - * Encodes the specified CompilationResult message. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResult.verify|verify} messages. - * @param message CompilationResult message or plain object to encode + * Encodes the specified MakeDirectoryRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.MakeDirectoryRequest.verify|verify} messages. + * @param message MakeDirectoryRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dataform.v1beta1.ICompilationResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dataform.v1beta1.IMakeDirectoryRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CompilationResult message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResult.verify|verify} messages. - * @param message CompilationResult message or plain object to encode + * Encodes the specified MakeDirectoryRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.MakeDirectoryRequest.verify|verify} messages. + * @param message MakeDirectoryRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.ICompilationResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IMakeDirectoryRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CompilationResult message from the specified reader or buffer. + * Decodes a MakeDirectoryRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CompilationResult + * @returns MakeDirectoryRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.CompilationResult; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.MakeDirectoryRequest; /** - * Decodes a CompilationResult message from the specified reader or buffer, length delimited. + * Decodes a MakeDirectoryRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CompilationResult + * @returns MakeDirectoryRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.CompilationResult; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.MakeDirectoryRequest; /** - * Verifies a CompilationResult message. + * Verifies a MakeDirectoryRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CompilationResult message from a plain object. Also converts values to their respective internal types. + * Creates a MakeDirectoryRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CompilationResult + * @returns MakeDirectoryRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.CompilationResult; + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.MakeDirectoryRequest; /** - * Creates a plain object from a CompilationResult message. Also converts values to other types if specified. - * @param message CompilationResult + * Creates a plain object from a MakeDirectoryRequest message. Also converts values to other types if specified. + * @param message MakeDirectoryRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dataform.v1beta1.CompilationResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dataform.v1beta1.MakeDirectoryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CompilationResult to JSON. + * Converts this MakeDirectoryRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CompilationResult + * Gets the default type url for MakeDirectoryRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace CompilationResult { - - /** Properties of a CodeCompilationConfig. */ - interface ICodeCompilationConfig { + /** Properties of a MakeDirectoryResponse. */ + interface IMakeDirectoryResponse { + } - /** CodeCompilationConfig defaultDatabase */ - defaultDatabase?: (string|null); + /** Represents a MakeDirectoryResponse. */ + class MakeDirectoryResponse implements IMakeDirectoryResponse { - /** CodeCompilationConfig defaultSchema */ - defaultSchema?: (string|null); + /** + * Constructs a new MakeDirectoryResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dataform.v1beta1.IMakeDirectoryResponse); - /** CodeCompilationConfig defaultLocation */ - defaultLocation?: (string|null); + /** + * Creates a new MakeDirectoryResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MakeDirectoryResponse instance + */ + public static create(properties?: google.cloud.dataform.v1beta1.IMakeDirectoryResponse): google.cloud.dataform.v1beta1.MakeDirectoryResponse; - /** CodeCompilationConfig assertionSchema */ - assertionSchema?: (string|null); + /** + * Encodes the specified MakeDirectoryResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.MakeDirectoryResponse.verify|verify} messages. + * @param message MakeDirectoryResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dataform.v1beta1.IMakeDirectoryResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** CodeCompilationConfig vars */ - vars?: ({ [k: string]: string }|null); + /** + * Encodes the specified MakeDirectoryResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.MakeDirectoryResponse.verify|verify} messages. + * @param message MakeDirectoryResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IMakeDirectoryResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** CodeCompilationConfig databaseSuffix */ - databaseSuffix?: (string|null); + /** + * Decodes a MakeDirectoryResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MakeDirectoryResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.MakeDirectoryResponse; - /** CodeCompilationConfig schemaSuffix */ - schemaSuffix?: (string|null); + /** + * Decodes a MakeDirectoryResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MakeDirectoryResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.MakeDirectoryResponse; - /** CodeCompilationConfig tablePrefix */ - tablePrefix?: (string|null); - } + /** + * Verifies a MakeDirectoryResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Represents a CodeCompilationConfig. */ - class CodeCompilationConfig implements ICodeCompilationConfig { + /** + * Creates a MakeDirectoryResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MakeDirectoryResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.MakeDirectoryResponse; - /** - * Constructs a new CodeCompilationConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dataform.v1beta1.CompilationResult.ICodeCompilationConfig); + /** + * Creates a plain object from a MakeDirectoryResponse message. Also converts values to other types if specified. + * @param message MakeDirectoryResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dataform.v1beta1.MakeDirectoryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** CodeCompilationConfig defaultDatabase. */ - public defaultDatabase: string; + /** + * Converts this MakeDirectoryResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** CodeCompilationConfig defaultSchema. */ - public defaultSchema: string; + /** + * Gets the default type url for MakeDirectoryResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** CodeCompilationConfig defaultLocation. */ - public defaultLocation: string; + /** Properties of a RemoveDirectoryRequest. */ + interface IRemoveDirectoryRequest { - /** CodeCompilationConfig assertionSchema. */ - public assertionSchema: string; + /** RemoveDirectoryRequest workspace */ + workspace?: (string|null); - /** CodeCompilationConfig vars. */ - public vars: { [k: string]: string }; + /** RemoveDirectoryRequest path */ + path?: (string|null); + } - /** CodeCompilationConfig databaseSuffix. */ - public databaseSuffix: string; + /** Represents a RemoveDirectoryRequest. */ + class RemoveDirectoryRequest implements IRemoveDirectoryRequest { - /** CodeCompilationConfig schemaSuffix. */ - public schemaSuffix: string; + /** + * Constructs a new RemoveDirectoryRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dataform.v1beta1.IRemoveDirectoryRequest); - /** CodeCompilationConfig tablePrefix. */ - public tablePrefix: string; + /** RemoveDirectoryRequest workspace. */ + public workspace: string; - /** - * Creates a new CodeCompilationConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns CodeCompilationConfig instance - */ - public static create(properties?: google.cloud.dataform.v1beta1.CompilationResult.ICodeCompilationConfig): google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig; + /** RemoveDirectoryRequest path. */ + public path: string; - /** - * Encodes the specified CodeCompilationConfig message. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig.verify|verify} messages. - * @param message CodeCompilationConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dataform.v1beta1.CompilationResult.ICodeCompilationConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new RemoveDirectoryRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns RemoveDirectoryRequest instance + */ + public static create(properties?: google.cloud.dataform.v1beta1.IRemoveDirectoryRequest): google.cloud.dataform.v1beta1.RemoveDirectoryRequest; - /** - * Encodes the specified CodeCompilationConfig message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig.verify|verify} messages. - * @param message CodeCompilationConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.CompilationResult.ICodeCompilationConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified RemoveDirectoryRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.RemoveDirectoryRequest.verify|verify} messages. + * @param message RemoveDirectoryRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dataform.v1beta1.IRemoveDirectoryRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a CodeCompilationConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CodeCompilationConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig; + /** + * Encodes the specified RemoveDirectoryRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.RemoveDirectoryRequest.verify|verify} messages. + * @param message RemoveDirectoryRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IRemoveDirectoryRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a CodeCompilationConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CodeCompilationConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig; + /** + * Decodes a RemoveDirectoryRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RemoveDirectoryRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.RemoveDirectoryRequest; - /** - * Verifies a CodeCompilationConfig message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CodeCompilationConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CodeCompilationConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig; - - /** - * Creates a plain object from a CodeCompilationConfig message. Also converts values to other types if specified. - * @param message CodeCompilationConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CodeCompilationConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for CodeCompilationConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a CompilationError. */ - interface ICompilationError { - - /** CompilationError message */ - message?: (string|null); - - /** CompilationError stack */ - stack?: (string|null); - - /** CompilationError path */ - path?: (string|null); - - /** CompilationError actionTarget */ - actionTarget?: (google.cloud.dataform.v1beta1.ITarget|null); - } - - /** Represents a CompilationError. */ - class CompilationError implements ICompilationError { - - /** - * Constructs a new CompilationError. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dataform.v1beta1.CompilationResult.ICompilationError); - - /** CompilationError message. */ - public message: string; - - /** CompilationError stack. */ - public stack: string; - - /** CompilationError path. */ - public path: string; - - /** CompilationError actionTarget. */ - public actionTarget?: (google.cloud.dataform.v1beta1.ITarget|null); - - /** - * Creates a new CompilationError instance using the specified properties. - * @param [properties] Properties to set - * @returns CompilationError instance - */ - public static create(properties?: google.cloud.dataform.v1beta1.CompilationResult.ICompilationError): google.cloud.dataform.v1beta1.CompilationResult.CompilationError; - - /** - * Encodes the specified CompilationError message. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResult.CompilationError.verify|verify} messages. - * @param message CompilationError message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dataform.v1beta1.CompilationResult.ICompilationError, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CompilationError message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResult.CompilationError.verify|verify} messages. - * @param message CompilationError message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.CompilationResult.ICompilationError, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CompilationError message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CompilationError - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.CompilationResult.CompilationError; - - /** - * Decodes a CompilationError message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CompilationError - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.CompilationResult.CompilationError; + /** + * Decodes a RemoveDirectoryRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RemoveDirectoryRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.RemoveDirectoryRequest; - /** - * Verifies a CompilationError message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Verifies a RemoveDirectoryRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a CompilationError message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CompilationError - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.CompilationResult.CompilationError; + /** + * Creates a RemoveDirectoryRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RemoveDirectoryRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.RemoveDirectoryRequest; - /** - * Creates a plain object from a CompilationError message. Also converts values to other types if specified. - * @param message CompilationError - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dataform.v1beta1.CompilationResult.CompilationError, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a RemoveDirectoryRequest message. Also converts values to other types if specified. + * @param message RemoveDirectoryRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dataform.v1beta1.RemoveDirectoryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this CompilationError to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this RemoveDirectoryRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for CompilationError - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Gets the default type url for RemoveDirectoryRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListCompilationResultsRequest. */ - interface IListCompilationResultsRequest { + /** Properties of a MoveDirectoryRequest. */ + interface IMoveDirectoryRequest { - /** ListCompilationResultsRequest parent */ - parent?: (string|null); + /** MoveDirectoryRequest workspace */ + workspace?: (string|null); - /** ListCompilationResultsRequest pageSize */ - pageSize?: (number|null); + /** MoveDirectoryRequest path */ + path?: (string|null); - /** ListCompilationResultsRequest pageToken */ - pageToken?: (string|null); + /** MoveDirectoryRequest newPath */ + newPath?: (string|null); } - /** Represents a ListCompilationResultsRequest. */ - class ListCompilationResultsRequest implements IListCompilationResultsRequest { + /** Represents a MoveDirectoryRequest. */ + class MoveDirectoryRequest implements IMoveDirectoryRequest { /** - * Constructs a new ListCompilationResultsRequest. + * Constructs a new MoveDirectoryRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dataform.v1beta1.IListCompilationResultsRequest); + constructor(properties?: google.cloud.dataform.v1beta1.IMoveDirectoryRequest); - /** ListCompilationResultsRequest parent. */ - public parent: string; + /** MoveDirectoryRequest workspace. */ + public workspace: string; - /** ListCompilationResultsRequest pageSize. */ - public pageSize: number; + /** MoveDirectoryRequest path. */ + public path: string; - /** ListCompilationResultsRequest pageToken. */ - public pageToken: string; + /** MoveDirectoryRequest newPath. */ + public newPath: string; /** - * Creates a new ListCompilationResultsRequest instance using the specified properties. + * Creates a new MoveDirectoryRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListCompilationResultsRequest instance + * @returns MoveDirectoryRequest instance */ - public static create(properties?: google.cloud.dataform.v1beta1.IListCompilationResultsRequest): google.cloud.dataform.v1beta1.ListCompilationResultsRequest; + public static create(properties?: google.cloud.dataform.v1beta1.IMoveDirectoryRequest): google.cloud.dataform.v1beta1.MoveDirectoryRequest; /** - * Encodes the specified ListCompilationResultsRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.ListCompilationResultsRequest.verify|verify} messages. - * @param message ListCompilationResultsRequest message or plain object to encode + * Encodes the specified MoveDirectoryRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.MoveDirectoryRequest.verify|verify} messages. + * @param message MoveDirectoryRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dataform.v1beta1.IListCompilationResultsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dataform.v1beta1.IMoveDirectoryRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListCompilationResultsRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.ListCompilationResultsRequest.verify|verify} messages. - * @param message ListCompilationResultsRequest message or plain object to encode + * Encodes the specified MoveDirectoryRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.MoveDirectoryRequest.verify|verify} messages. + * @param message MoveDirectoryRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.IListCompilationResultsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IMoveDirectoryRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListCompilationResultsRequest message from the specified reader or buffer. + * Decodes a MoveDirectoryRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListCompilationResultsRequest + * @returns MoveDirectoryRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.ListCompilationResultsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.MoveDirectoryRequest; /** - * Decodes a ListCompilationResultsRequest message from the specified reader or buffer, length delimited. + * Decodes a MoveDirectoryRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListCompilationResultsRequest + * @returns MoveDirectoryRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.ListCompilationResultsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.MoveDirectoryRequest; /** - * Verifies a ListCompilationResultsRequest message. + * Verifies a MoveDirectoryRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListCompilationResultsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MoveDirectoryRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListCompilationResultsRequest + * @returns MoveDirectoryRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.ListCompilationResultsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.MoveDirectoryRequest; /** - * Creates a plain object from a ListCompilationResultsRequest message. Also converts values to other types if specified. - * @param message ListCompilationResultsRequest + * Creates a plain object from a MoveDirectoryRequest message. Also converts values to other types if specified. + * @param message MoveDirectoryRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dataform.v1beta1.ListCompilationResultsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dataform.v1beta1.MoveDirectoryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListCompilationResultsRequest to JSON. + * Converts this MoveDirectoryRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListCompilationResultsRequest + * Gets the default type url for MoveDirectoryRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListCompilationResultsResponse. */ - interface IListCompilationResultsResponse { - - /** ListCompilationResultsResponse compilationResults */ - compilationResults?: (google.cloud.dataform.v1beta1.ICompilationResult[]|null); - - /** ListCompilationResultsResponse nextPageToken */ - nextPageToken?: (string|null); - - /** ListCompilationResultsResponse unreachable */ - unreachable?: (string[]|null); + /** Properties of a MoveDirectoryResponse. */ + interface IMoveDirectoryResponse { } - /** Represents a ListCompilationResultsResponse. */ - class ListCompilationResultsResponse implements IListCompilationResultsResponse { + /** Represents a MoveDirectoryResponse. */ + class MoveDirectoryResponse implements IMoveDirectoryResponse { /** - * Constructs a new ListCompilationResultsResponse. + * Constructs a new MoveDirectoryResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dataform.v1beta1.IListCompilationResultsResponse); - - /** ListCompilationResultsResponse compilationResults. */ - public compilationResults: google.cloud.dataform.v1beta1.ICompilationResult[]; - - /** ListCompilationResultsResponse nextPageToken. */ - public nextPageToken: string; - - /** ListCompilationResultsResponse unreachable. */ - public unreachable: string[]; + constructor(properties?: google.cloud.dataform.v1beta1.IMoveDirectoryResponse); /** - * Creates a new ListCompilationResultsResponse instance using the specified properties. + * Creates a new MoveDirectoryResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListCompilationResultsResponse instance + * @returns MoveDirectoryResponse instance */ - public static create(properties?: google.cloud.dataform.v1beta1.IListCompilationResultsResponse): google.cloud.dataform.v1beta1.ListCompilationResultsResponse; + public static create(properties?: google.cloud.dataform.v1beta1.IMoveDirectoryResponse): google.cloud.dataform.v1beta1.MoveDirectoryResponse; /** - * Encodes the specified ListCompilationResultsResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.ListCompilationResultsResponse.verify|verify} messages. - * @param message ListCompilationResultsResponse message or plain object to encode + * Encodes the specified MoveDirectoryResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.MoveDirectoryResponse.verify|verify} messages. + * @param message MoveDirectoryResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dataform.v1beta1.IListCompilationResultsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dataform.v1beta1.IMoveDirectoryResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListCompilationResultsResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.ListCompilationResultsResponse.verify|verify} messages. - * @param message ListCompilationResultsResponse message or plain object to encode + * Encodes the specified MoveDirectoryResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.MoveDirectoryResponse.verify|verify} messages. + * @param message MoveDirectoryResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.IListCompilationResultsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IMoveDirectoryResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListCompilationResultsResponse message from the specified reader or buffer. + * Decodes a MoveDirectoryResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListCompilationResultsResponse + * @returns MoveDirectoryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.ListCompilationResultsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.MoveDirectoryResponse; /** - * Decodes a ListCompilationResultsResponse message from the specified reader or buffer, length delimited. + * Decodes a MoveDirectoryResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListCompilationResultsResponse + * @returns MoveDirectoryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.ListCompilationResultsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.MoveDirectoryResponse; /** - * Verifies a ListCompilationResultsResponse message. + * Verifies a MoveDirectoryResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListCompilationResultsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MoveDirectoryResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListCompilationResultsResponse + * @returns MoveDirectoryResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.ListCompilationResultsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.MoveDirectoryResponse; /** - * Creates a plain object from a ListCompilationResultsResponse message. Also converts values to other types if specified. - * @param message ListCompilationResultsResponse + * Creates a plain object from a MoveDirectoryResponse message. Also converts values to other types if specified. + * @param message MoveDirectoryResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dataform.v1beta1.ListCompilationResultsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dataform.v1beta1.MoveDirectoryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListCompilationResultsResponse to JSON. + * Converts this MoveDirectoryResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListCompilationResultsResponse + * Gets the default type url for MoveDirectoryResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetCompilationResultRequest. */ - interface IGetCompilationResultRequest { + /** Properties of a ReadFileRequest. */ + interface IReadFileRequest { - /** GetCompilationResultRequest name */ - name?: (string|null); + /** ReadFileRequest workspace */ + workspace?: (string|null); + + /** ReadFileRequest path */ + path?: (string|null); } - /** Represents a GetCompilationResultRequest. */ - class GetCompilationResultRequest implements IGetCompilationResultRequest { + /** Represents a ReadFileRequest. */ + class ReadFileRequest implements IReadFileRequest { /** - * Constructs a new GetCompilationResultRequest. + * Constructs a new ReadFileRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dataform.v1beta1.IGetCompilationResultRequest); + constructor(properties?: google.cloud.dataform.v1beta1.IReadFileRequest); - /** GetCompilationResultRequest name. */ - public name: string; + /** ReadFileRequest workspace. */ + public workspace: string; + + /** ReadFileRequest path. */ + public path: string; /** - * Creates a new GetCompilationResultRequest instance using the specified properties. + * Creates a new ReadFileRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetCompilationResultRequest instance + * @returns ReadFileRequest instance */ - public static create(properties?: google.cloud.dataform.v1beta1.IGetCompilationResultRequest): google.cloud.dataform.v1beta1.GetCompilationResultRequest; + public static create(properties?: google.cloud.dataform.v1beta1.IReadFileRequest): google.cloud.dataform.v1beta1.ReadFileRequest; /** - * Encodes the specified GetCompilationResultRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.GetCompilationResultRequest.verify|verify} messages. - * @param message GetCompilationResultRequest message or plain object to encode + * Encodes the specified ReadFileRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.ReadFileRequest.verify|verify} messages. + * @param message ReadFileRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dataform.v1beta1.IGetCompilationResultRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dataform.v1beta1.IReadFileRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetCompilationResultRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.GetCompilationResultRequest.verify|verify} messages. - * @param message GetCompilationResultRequest message or plain object to encode + * Encodes the specified ReadFileRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.ReadFileRequest.verify|verify} messages. + * @param message ReadFileRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.IGetCompilationResultRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IReadFileRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetCompilationResultRequest message from the specified reader or buffer. + * Decodes a ReadFileRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetCompilationResultRequest + * @returns ReadFileRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.GetCompilationResultRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.ReadFileRequest; /** - * Decodes a GetCompilationResultRequest message from the specified reader or buffer, length delimited. + * Decodes a ReadFileRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetCompilationResultRequest + * @returns ReadFileRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.GetCompilationResultRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.ReadFileRequest; /** - * Verifies a GetCompilationResultRequest message. + * Verifies a ReadFileRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetCompilationResultRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ReadFileRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetCompilationResultRequest + * @returns ReadFileRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.GetCompilationResultRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.ReadFileRequest; /** - * Creates a plain object from a GetCompilationResultRequest message. Also converts values to other types if specified. - * @param message GetCompilationResultRequest + * Creates a plain object from a ReadFileRequest message. Also converts values to other types if specified. + * @param message ReadFileRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dataform.v1beta1.GetCompilationResultRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dataform.v1beta1.ReadFileRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetCompilationResultRequest to JSON. + * Converts this ReadFileRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetCompilationResultRequest + * Gets the default type url for ReadFileRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateCompilationResultRequest. */ - interface ICreateCompilationResultRequest { - - /** CreateCompilationResultRequest parent */ - parent?: (string|null); + /** Properties of a ReadFileResponse. */ + interface IReadFileResponse { - /** CreateCompilationResultRequest compilationResult */ - compilationResult?: (google.cloud.dataform.v1beta1.ICompilationResult|null); + /** ReadFileResponse fileContents */ + fileContents?: (Uint8Array|string|null); } - /** Represents a CreateCompilationResultRequest. */ - class CreateCompilationResultRequest implements ICreateCompilationResultRequest { + /** Represents a ReadFileResponse. */ + class ReadFileResponse implements IReadFileResponse { /** - * Constructs a new CreateCompilationResultRequest. + * Constructs a new ReadFileResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dataform.v1beta1.ICreateCompilationResultRequest); - - /** CreateCompilationResultRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.dataform.v1beta1.IReadFileResponse); - /** CreateCompilationResultRequest compilationResult. */ - public compilationResult?: (google.cloud.dataform.v1beta1.ICompilationResult|null); + /** ReadFileResponse fileContents. */ + public fileContents: (Uint8Array|string); /** - * Creates a new CreateCompilationResultRequest instance using the specified properties. + * Creates a new ReadFileResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CreateCompilationResultRequest instance + * @returns ReadFileResponse instance */ - public static create(properties?: google.cloud.dataform.v1beta1.ICreateCompilationResultRequest): google.cloud.dataform.v1beta1.CreateCompilationResultRequest; + public static create(properties?: google.cloud.dataform.v1beta1.IReadFileResponse): google.cloud.dataform.v1beta1.ReadFileResponse; /** - * Encodes the specified CreateCompilationResultRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.CreateCompilationResultRequest.verify|verify} messages. - * @param message CreateCompilationResultRequest message or plain object to encode + * Encodes the specified ReadFileResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.ReadFileResponse.verify|verify} messages. + * @param message ReadFileResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dataform.v1beta1.ICreateCompilationResultRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dataform.v1beta1.IReadFileResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateCompilationResultRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CreateCompilationResultRequest.verify|verify} messages. - * @param message CreateCompilationResultRequest message or plain object to encode + * Encodes the specified ReadFileResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.ReadFileResponse.verify|verify} messages. + * @param message ReadFileResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.ICreateCompilationResultRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IReadFileResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateCompilationResultRequest message from the specified reader or buffer. + * Decodes a ReadFileResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateCompilationResultRequest + * @returns ReadFileResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.CreateCompilationResultRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.ReadFileResponse; /** - * Decodes a CreateCompilationResultRequest message from the specified reader or buffer, length delimited. + * Decodes a ReadFileResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateCompilationResultRequest + * @returns ReadFileResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.CreateCompilationResultRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.ReadFileResponse; /** - * Verifies a CreateCompilationResultRequest message. + * Verifies a ReadFileResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateCompilationResultRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ReadFileResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateCompilationResultRequest + * @returns ReadFileResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.CreateCompilationResultRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.ReadFileResponse; /** - * Creates a plain object from a CreateCompilationResultRequest message. Also converts values to other types if specified. - * @param message CreateCompilationResultRequest + * Creates a plain object from a ReadFileResponse message. Also converts values to other types if specified. + * @param message ReadFileResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dataform.v1beta1.CreateCompilationResultRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dataform.v1beta1.ReadFileResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateCompilationResultRequest to JSON. + * Converts this ReadFileResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateCompilationResultRequest + * Gets the default type url for ReadFileResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Target. */ - interface ITarget { - - /** Target database */ - database?: (string|null); + /** Properties of a RemoveFileRequest. */ + interface IRemoveFileRequest { - /** Target schema */ - schema?: (string|null); + /** RemoveFileRequest workspace */ + workspace?: (string|null); - /** Target name */ - name?: (string|null); + /** RemoveFileRequest path */ + path?: (string|null); } - /** Represents a Target. */ - class Target implements ITarget { + /** Represents a RemoveFileRequest. */ + class RemoveFileRequest implements IRemoveFileRequest { /** - * Constructs a new Target. + * Constructs a new RemoveFileRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dataform.v1beta1.ITarget); - - /** Target database. */ - public database: string; + constructor(properties?: google.cloud.dataform.v1beta1.IRemoveFileRequest); - /** Target schema. */ - public schema: string; + /** RemoveFileRequest workspace. */ + public workspace: string; - /** Target name. */ - public name: string; + /** RemoveFileRequest path. */ + public path: string; /** - * Creates a new Target instance using the specified properties. + * Creates a new RemoveFileRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Target instance + * @returns RemoveFileRequest instance */ - public static create(properties?: google.cloud.dataform.v1beta1.ITarget): google.cloud.dataform.v1beta1.Target; + public static create(properties?: google.cloud.dataform.v1beta1.IRemoveFileRequest): google.cloud.dataform.v1beta1.RemoveFileRequest; /** - * Encodes the specified Target message. Does not implicitly {@link google.cloud.dataform.v1beta1.Target.verify|verify} messages. - * @param message Target message or plain object to encode + * Encodes the specified RemoveFileRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.RemoveFileRequest.verify|verify} messages. + * @param message RemoveFileRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dataform.v1beta1.ITarget, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dataform.v1beta1.IRemoveFileRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Target message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.Target.verify|verify} messages. - * @param message Target message or plain object to encode + * Encodes the specified RemoveFileRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.RemoveFileRequest.verify|verify} messages. + * @param message RemoveFileRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.ITarget, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IRemoveFileRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Target message from the specified reader or buffer. + * Decodes a RemoveFileRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Target + * @returns RemoveFileRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.Target; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.RemoveFileRequest; /** - * Decodes a Target message from the specified reader or buffer, length delimited. + * Decodes a RemoveFileRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Target + * @returns RemoveFileRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.Target; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.RemoveFileRequest; /** - * Verifies a Target message. + * Verifies a RemoveFileRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Target message from a plain object. Also converts values to their respective internal types. + * Creates a RemoveFileRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Target + * @returns RemoveFileRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.Target; + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.RemoveFileRequest; /** - * Creates a plain object from a Target message. Also converts values to other types if specified. - * @param message Target + * Creates a plain object from a RemoveFileRequest message. Also converts values to other types if specified. + * @param message RemoveFileRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dataform.v1beta1.Target, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dataform.v1beta1.RemoveFileRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Target to JSON. + * Converts this RemoveFileRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Target + * Gets the default type url for RemoveFileRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RelationDescriptor. */ - interface IRelationDescriptor { + /** Properties of a MoveFileRequest. */ + interface IMoveFileRequest { - /** RelationDescriptor description */ - description?: (string|null); + /** MoveFileRequest workspace */ + workspace?: (string|null); - /** RelationDescriptor columns */ - columns?: (google.cloud.dataform.v1beta1.RelationDescriptor.IColumnDescriptor[]|null); + /** MoveFileRequest path */ + path?: (string|null); - /** RelationDescriptor bigqueryLabels */ - bigqueryLabels?: ({ [k: string]: string }|null); + /** MoveFileRequest newPath */ + newPath?: (string|null); } - /** Represents a RelationDescriptor. */ - class RelationDescriptor implements IRelationDescriptor { + /** Represents a MoveFileRequest. */ + class MoveFileRequest implements IMoveFileRequest { /** - * Constructs a new RelationDescriptor. + * Constructs a new MoveFileRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dataform.v1beta1.IRelationDescriptor); + constructor(properties?: google.cloud.dataform.v1beta1.IMoveFileRequest); - /** RelationDescriptor description. */ - public description: string; + /** MoveFileRequest workspace. */ + public workspace: string; - /** RelationDescriptor columns. */ - public columns: google.cloud.dataform.v1beta1.RelationDescriptor.IColumnDescriptor[]; + /** MoveFileRequest path. */ + public path: string; - /** RelationDescriptor bigqueryLabels. */ - public bigqueryLabels: { [k: string]: string }; + /** MoveFileRequest newPath. */ + public newPath: string; /** - * Creates a new RelationDescriptor instance using the specified properties. + * Creates a new MoveFileRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RelationDescriptor instance + * @returns MoveFileRequest instance */ - public static create(properties?: google.cloud.dataform.v1beta1.IRelationDescriptor): google.cloud.dataform.v1beta1.RelationDescriptor; + public static create(properties?: google.cloud.dataform.v1beta1.IMoveFileRequest): google.cloud.dataform.v1beta1.MoveFileRequest; /** - * Encodes the specified RelationDescriptor message. Does not implicitly {@link google.cloud.dataform.v1beta1.RelationDescriptor.verify|verify} messages. - * @param message RelationDescriptor message or plain object to encode + * Encodes the specified MoveFileRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.MoveFileRequest.verify|verify} messages. + * @param message MoveFileRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dataform.v1beta1.IRelationDescriptor, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dataform.v1beta1.IMoveFileRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RelationDescriptor message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.RelationDescriptor.verify|verify} messages. - * @param message RelationDescriptor message or plain object to encode + * Encodes the specified MoveFileRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.MoveFileRequest.verify|verify} messages. + * @param message MoveFileRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.IRelationDescriptor, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IMoveFileRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RelationDescriptor message from the specified reader or buffer. + * Decodes a MoveFileRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RelationDescriptor + * @returns MoveFileRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.RelationDescriptor; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.MoveFileRequest; /** - * Decodes a RelationDescriptor message from the specified reader or buffer, length delimited. + * Decodes a MoveFileRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RelationDescriptor + * @returns MoveFileRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.RelationDescriptor; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.MoveFileRequest; /** - * Verifies a RelationDescriptor message. + * Verifies a MoveFileRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RelationDescriptor message from a plain object. Also converts values to their respective internal types. + * Creates a MoveFileRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RelationDescriptor + * @returns MoveFileRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.RelationDescriptor; + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.MoveFileRequest; /** - * Creates a plain object from a RelationDescriptor message. Also converts values to other types if specified. - * @param message RelationDescriptor + * Creates a plain object from a MoveFileRequest message. Also converts values to other types if specified. + * @param message MoveFileRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dataform.v1beta1.RelationDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dataform.v1beta1.MoveFileRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RelationDescriptor to JSON. + * Converts this MoveFileRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RelationDescriptor + * Gets the default type url for MoveFileRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace RelationDescriptor { + /** Properties of a MoveFileResponse. */ + interface IMoveFileResponse { + } - /** Properties of a ColumnDescriptor. */ - interface IColumnDescriptor { + /** Represents a MoveFileResponse. */ + class MoveFileResponse implements IMoveFileResponse { - /** ColumnDescriptor path */ - path?: (string[]|null); + /** + * Constructs a new MoveFileResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dataform.v1beta1.IMoveFileResponse); - /** ColumnDescriptor description */ - description?: (string|null); + /** + * Creates a new MoveFileResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MoveFileResponse instance + */ + public static create(properties?: google.cloud.dataform.v1beta1.IMoveFileResponse): google.cloud.dataform.v1beta1.MoveFileResponse; - /** ColumnDescriptor bigqueryPolicyTags */ - bigqueryPolicyTags?: (string[]|null); - } + /** + * Encodes the specified MoveFileResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.MoveFileResponse.verify|verify} messages. + * @param message MoveFileResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dataform.v1beta1.IMoveFileResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents a ColumnDescriptor. */ - class ColumnDescriptor implements IColumnDescriptor { + /** + * Encodes the specified MoveFileResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.MoveFileResponse.verify|verify} messages. + * @param message MoveFileResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IMoveFileResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new ColumnDescriptor. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dataform.v1beta1.RelationDescriptor.IColumnDescriptor); + /** + * Decodes a MoveFileResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MoveFileResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.MoveFileResponse; - /** ColumnDescriptor path. */ - public path: string[]; + /** + * Decodes a MoveFileResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MoveFileResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.MoveFileResponse; - /** ColumnDescriptor description. */ - public description: string; + /** + * Verifies a MoveFileResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** ColumnDescriptor bigqueryPolicyTags. */ - public bigqueryPolicyTags: string[]; + /** + * Creates a MoveFileResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MoveFileResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.MoveFileResponse; - /** - * Creates a new ColumnDescriptor instance using the specified properties. - * @param [properties] Properties to set - * @returns ColumnDescriptor instance - */ - public static create(properties?: google.cloud.dataform.v1beta1.RelationDescriptor.IColumnDescriptor): google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor; + /** + * Creates a plain object from a MoveFileResponse message. Also converts values to other types if specified. + * @param message MoveFileResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dataform.v1beta1.MoveFileResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified ColumnDescriptor message. Does not implicitly {@link google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor.verify|verify} messages. - * @param message ColumnDescriptor message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dataform.v1beta1.RelationDescriptor.IColumnDescriptor, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this MoveFileResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Encodes the specified ColumnDescriptor message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor.verify|verify} messages. - * @param message ColumnDescriptor message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.RelationDescriptor.IColumnDescriptor, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ColumnDescriptor message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ColumnDescriptor - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor; - - /** - * Decodes a ColumnDescriptor message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ColumnDescriptor - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor; - - /** - * Verifies a ColumnDescriptor message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Gets the default type url for MoveFileResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a ColumnDescriptor message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ColumnDescriptor - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor; + /** Properties of a WriteFileRequest. */ + interface IWriteFileRequest { - /** - * Creates a plain object from a ColumnDescriptor message. Also converts values to other types if specified. - * @param message ColumnDescriptor - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** WriteFileRequest workspace */ + workspace?: (string|null); - /** - * Converts this ColumnDescriptor to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** WriteFileRequest path */ + path?: (string|null); - /** - * Gets the default type url for ColumnDescriptor - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** WriteFileRequest contents */ + contents?: (Uint8Array|string|null); } - /** Properties of a CompilationResultAction. */ - interface ICompilationResultAction { + /** Represents a WriteFileRequest. */ + class WriteFileRequest implements IWriteFileRequest { - /** CompilationResultAction target */ - target?: (google.cloud.dataform.v1beta1.ITarget|null); + /** + * Constructs a new WriteFileRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dataform.v1beta1.IWriteFileRequest); - /** CompilationResultAction canonicalTarget */ - canonicalTarget?: (google.cloud.dataform.v1beta1.ITarget|null); + /** WriteFileRequest workspace. */ + public workspace: string; - /** CompilationResultAction filePath */ - filePath?: (string|null); + /** WriteFileRequest path. */ + public path: string; - /** CompilationResultAction relation */ - relation?: (google.cloud.dataform.v1beta1.CompilationResultAction.IRelation|null); + /** WriteFileRequest contents. */ + public contents: (Uint8Array|string); - /** CompilationResultAction operations */ - operations?: (google.cloud.dataform.v1beta1.CompilationResultAction.IOperations|null); + /** + * Creates a new WriteFileRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns WriteFileRequest instance + */ + public static create(properties?: google.cloud.dataform.v1beta1.IWriteFileRequest): google.cloud.dataform.v1beta1.WriteFileRequest; - /** CompilationResultAction assertion */ - assertion?: (google.cloud.dataform.v1beta1.CompilationResultAction.IAssertion|null); + /** + * Encodes the specified WriteFileRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.WriteFileRequest.verify|verify} messages. + * @param message WriteFileRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dataform.v1beta1.IWriteFileRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** CompilationResultAction declaration */ - declaration?: (google.cloud.dataform.v1beta1.CompilationResultAction.IDeclaration|null); - } + /** + * Encodes the specified WriteFileRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.WriteFileRequest.verify|verify} messages. + * @param message WriteFileRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IWriteFileRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents a CompilationResultAction. */ - class CompilationResultAction implements ICompilationResultAction { + /** + * Decodes a WriteFileRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WriteFileRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.WriteFileRequest; /** - * Constructs a new CompilationResultAction. - * @param [properties] Properties to set + * Decodes a WriteFileRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns WriteFileRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - constructor(properties?: google.cloud.dataform.v1beta1.ICompilationResultAction); + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.WriteFileRequest; - /** CompilationResultAction target. */ - public target?: (google.cloud.dataform.v1beta1.ITarget|null); + /** + * Verifies a WriteFileRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** CompilationResultAction canonicalTarget. */ - public canonicalTarget?: (google.cloud.dataform.v1beta1.ITarget|null); + /** + * Creates a WriteFileRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns WriteFileRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.WriteFileRequest; - /** CompilationResultAction filePath. */ - public filePath: string; + /** + * Creates a plain object from a WriteFileRequest message. Also converts values to other types if specified. + * @param message WriteFileRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dataform.v1beta1.WriteFileRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** CompilationResultAction relation. */ - public relation?: (google.cloud.dataform.v1beta1.CompilationResultAction.IRelation|null); + /** + * Converts this WriteFileRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** CompilationResultAction operations. */ - public operations?: (google.cloud.dataform.v1beta1.CompilationResultAction.IOperations|null); + /** + * Gets the default type url for WriteFileRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** CompilationResultAction assertion. */ - public assertion?: (google.cloud.dataform.v1beta1.CompilationResultAction.IAssertion|null); + /** Properties of a WriteFileResponse. */ + interface IWriteFileResponse { + } - /** CompilationResultAction declaration. */ - public declaration?: (google.cloud.dataform.v1beta1.CompilationResultAction.IDeclaration|null); + /** Represents a WriteFileResponse. */ + class WriteFileResponse implements IWriteFileResponse { - /** CompilationResultAction compiledObject. */ - public compiledObject?: ("relation"|"operations"|"assertion"|"declaration"); + /** + * Constructs a new WriteFileResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dataform.v1beta1.IWriteFileResponse); /** - * Creates a new CompilationResultAction instance using the specified properties. + * Creates a new WriteFileResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CompilationResultAction instance + * @returns WriteFileResponse instance */ - public static create(properties?: google.cloud.dataform.v1beta1.ICompilationResultAction): google.cloud.dataform.v1beta1.CompilationResultAction; + public static create(properties?: google.cloud.dataform.v1beta1.IWriteFileResponse): google.cloud.dataform.v1beta1.WriteFileResponse; /** - * Encodes the specified CompilationResultAction message. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResultAction.verify|verify} messages. - * @param message CompilationResultAction message or plain object to encode + * Encodes the specified WriteFileResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.WriteFileResponse.verify|verify} messages. + * @param message WriteFileResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dataform.v1beta1.ICompilationResultAction, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dataform.v1beta1.IWriteFileResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CompilationResultAction message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResultAction.verify|verify} messages. - * @param message CompilationResultAction message or plain object to encode + * Encodes the specified WriteFileResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.WriteFileResponse.verify|verify} messages. + * @param message WriteFileResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.ICompilationResultAction, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IWriteFileResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CompilationResultAction message from the specified reader or buffer. + * Decodes a WriteFileResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CompilationResultAction + * @returns WriteFileResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.CompilationResultAction; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.WriteFileResponse; /** - * Decodes a CompilationResultAction message from the specified reader or buffer, length delimited. + * Decodes a WriteFileResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CompilationResultAction + * @returns WriteFileResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.CompilationResultAction; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.WriteFileResponse; /** - * Verifies a CompilationResultAction message. + * Verifies a WriteFileResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CompilationResultAction message from a plain object. Also converts values to their respective internal types. + * Creates a WriteFileResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CompilationResultAction + * @returns WriteFileResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.CompilationResultAction; + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.WriteFileResponse; /** - * Creates a plain object from a CompilationResultAction message. Also converts values to other types if specified. - * @param message CompilationResultAction + * Creates a plain object from a WriteFileResponse message. Also converts values to other types if specified. + * @param message WriteFileResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dataform.v1beta1.CompilationResultAction, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dataform.v1beta1.WriteFileResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CompilationResultAction to JSON. + * Converts this WriteFileResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CompilationResultAction + * Gets the default type url for WriteFileResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace CompilationResultAction { + /** Properties of an InstallNpmPackagesRequest. */ + interface IInstallNpmPackagesRequest { - /** Properties of a Relation. */ - interface IRelation { + /** InstallNpmPackagesRequest workspace */ + workspace?: (string|null); + } - /** Relation dependencyTargets */ - dependencyTargets?: (google.cloud.dataform.v1beta1.ITarget[]|null); + /** Represents an InstallNpmPackagesRequest. */ + class InstallNpmPackagesRequest implements IInstallNpmPackagesRequest { + + /** + * Constructs a new InstallNpmPackagesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dataform.v1beta1.IInstallNpmPackagesRequest); + + /** InstallNpmPackagesRequest workspace. */ + public workspace: string; + + /** + * Creates a new InstallNpmPackagesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns InstallNpmPackagesRequest instance + */ + public static create(properties?: google.cloud.dataform.v1beta1.IInstallNpmPackagesRequest): google.cloud.dataform.v1beta1.InstallNpmPackagesRequest; + + /** + * Encodes the specified InstallNpmPackagesRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.InstallNpmPackagesRequest.verify|verify} messages. + * @param message InstallNpmPackagesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dataform.v1beta1.IInstallNpmPackagesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InstallNpmPackagesRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.InstallNpmPackagesRequest.verify|verify} messages. + * @param message InstallNpmPackagesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IInstallNpmPackagesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InstallNpmPackagesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InstallNpmPackagesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.InstallNpmPackagesRequest; + + /** + * Decodes an InstallNpmPackagesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InstallNpmPackagesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.InstallNpmPackagesRequest; + + /** + * Verifies an InstallNpmPackagesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an InstallNpmPackagesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InstallNpmPackagesRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.InstallNpmPackagesRequest; + + /** + * Creates a plain object from an InstallNpmPackagesRequest message. Also converts values to other types if specified. + * @param message InstallNpmPackagesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dataform.v1beta1.InstallNpmPackagesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InstallNpmPackagesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InstallNpmPackagesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an InstallNpmPackagesResponse. */ + interface IInstallNpmPackagesResponse { + } + + /** Represents an InstallNpmPackagesResponse. */ + class InstallNpmPackagesResponse implements IInstallNpmPackagesResponse { + + /** + * Constructs a new InstallNpmPackagesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dataform.v1beta1.IInstallNpmPackagesResponse); + + /** + * Creates a new InstallNpmPackagesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns InstallNpmPackagesResponse instance + */ + public static create(properties?: google.cloud.dataform.v1beta1.IInstallNpmPackagesResponse): google.cloud.dataform.v1beta1.InstallNpmPackagesResponse; + + /** + * Encodes the specified InstallNpmPackagesResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.InstallNpmPackagesResponse.verify|verify} messages. + * @param message InstallNpmPackagesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dataform.v1beta1.IInstallNpmPackagesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InstallNpmPackagesResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.InstallNpmPackagesResponse.verify|verify} messages. + * @param message InstallNpmPackagesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IInstallNpmPackagesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InstallNpmPackagesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InstallNpmPackagesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.InstallNpmPackagesResponse; + + /** + * Decodes an InstallNpmPackagesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InstallNpmPackagesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.InstallNpmPackagesResponse; + + /** + * Verifies an InstallNpmPackagesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an InstallNpmPackagesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InstallNpmPackagesResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.InstallNpmPackagesResponse; + + /** + * Creates a plain object from an InstallNpmPackagesResponse message. Also converts values to other types if specified. + * @param message InstallNpmPackagesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dataform.v1beta1.InstallNpmPackagesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InstallNpmPackagesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InstallNpmPackagesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReleaseConfig. */ + interface IReleaseConfig { + + /** ReleaseConfig name */ + name?: (string|null); + + /** ReleaseConfig gitCommitish */ + gitCommitish?: (string|null); + + /** ReleaseConfig codeCompilationConfig */ + codeCompilationConfig?: (google.cloud.dataform.v1beta1.ICodeCompilationConfig|null); + + /** ReleaseConfig cronSchedule */ + cronSchedule?: (string|null); + + /** ReleaseConfig timeZone */ + timeZone?: (string|null); + + /** ReleaseConfig recentScheduledReleaseRecords */ + recentScheduledReleaseRecords?: (google.cloud.dataform.v1beta1.ReleaseConfig.IScheduledReleaseRecord[]|null); + + /** ReleaseConfig releaseCompilationResult */ + releaseCompilationResult?: (string|null); + } + + /** Represents a ReleaseConfig. */ + class ReleaseConfig implements IReleaseConfig { + + /** + * Constructs a new ReleaseConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dataform.v1beta1.IReleaseConfig); + + /** ReleaseConfig name. */ + public name: string; + + /** ReleaseConfig gitCommitish. */ + public gitCommitish: string; + + /** ReleaseConfig codeCompilationConfig. */ + public codeCompilationConfig?: (google.cloud.dataform.v1beta1.ICodeCompilationConfig|null); + + /** ReleaseConfig cronSchedule. */ + public cronSchedule: string; + + /** ReleaseConfig timeZone. */ + public timeZone: string; + + /** ReleaseConfig recentScheduledReleaseRecords. */ + public recentScheduledReleaseRecords: google.cloud.dataform.v1beta1.ReleaseConfig.IScheduledReleaseRecord[]; + + /** ReleaseConfig releaseCompilationResult. */ + public releaseCompilationResult: string; + + /** + * Creates a new ReleaseConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns ReleaseConfig instance + */ + public static create(properties?: google.cloud.dataform.v1beta1.IReleaseConfig): google.cloud.dataform.v1beta1.ReleaseConfig; + + /** + * Encodes the specified ReleaseConfig message. Does not implicitly {@link google.cloud.dataform.v1beta1.ReleaseConfig.verify|verify} messages. + * @param message ReleaseConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dataform.v1beta1.IReleaseConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReleaseConfig message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.ReleaseConfig.verify|verify} messages. + * @param message ReleaseConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IReleaseConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReleaseConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReleaseConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.ReleaseConfig; + + /** + * Decodes a ReleaseConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReleaseConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.ReleaseConfig; + + /** + * Verifies a ReleaseConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReleaseConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReleaseConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.ReleaseConfig; + + /** + * Creates a plain object from a ReleaseConfig message. Also converts values to other types if specified. + * @param message ReleaseConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dataform.v1beta1.ReleaseConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReleaseConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReleaseConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace ReleaseConfig { + + /** Properties of a ScheduledReleaseRecord. */ + interface IScheduledReleaseRecord { + + /** ScheduledReleaseRecord releaseTime */ + releaseTime?: (google.protobuf.ITimestamp|null); + + /** ScheduledReleaseRecord compilationResult */ + compilationResult?: (string|null); + + /** ScheduledReleaseRecord errorStatus */ + errorStatus?: (google.rpc.IStatus|null); + } + + /** Represents a ScheduledReleaseRecord. */ + class ScheduledReleaseRecord implements IScheduledReleaseRecord { + + /** + * Constructs a new ScheduledReleaseRecord. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dataform.v1beta1.ReleaseConfig.IScheduledReleaseRecord); + + /** ScheduledReleaseRecord releaseTime. */ + public releaseTime?: (google.protobuf.ITimestamp|null); + + /** ScheduledReleaseRecord compilationResult. */ + public compilationResult?: (string|null); + + /** ScheduledReleaseRecord errorStatus. */ + public errorStatus?: (google.rpc.IStatus|null); + + /** ScheduledReleaseRecord result. */ + public result?: ("compilationResult"|"errorStatus"); + + /** + * Creates a new ScheduledReleaseRecord instance using the specified properties. + * @param [properties] Properties to set + * @returns ScheduledReleaseRecord instance + */ + public static create(properties?: google.cloud.dataform.v1beta1.ReleaseConfig.IScheduledReleaseRecord): google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord; + + /** + * Encodes the specified ScheduledReleaseRecord message. Does not implicitly {@link google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord.verify|verify} messages. + * @param message ScheduledReleaseRecord message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dataform.v1beta1.ReleaseConfig.IScheduledReleaseRecord, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ScheduledReleaseRecord message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord.verify|verify} messages. + * @param message ScheduledReleaseRecord message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dataform.v1beta1.ReleaseConfig.IScheduledReleaseRecord, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ScheduledReleaseRecord message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ScheduledReleaseRecord + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord; + + /** + * Decodes a ScheduledReleaseRecord message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ScheduledReleaseRecord + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord; + + /** + * Verifies a ScheduledReleaseRecord message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ScheduledReleaseRecord message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ScheduledReleaseRecord + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord; + + /** + * Creates a plain object from a ScheduledReleaseRecord message. Also converts values to other types if specified. + * @param message ScheduledReleaseRecord + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ScheduledReleaseRecord to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ScheduledReleaseRecord + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a ListReleaseConfigsRequest. */ + interface IListReleaseConfigsRequest { + + /** ListReleaseConfigsRequest parent */ + parent?: (string|null); + + /** ListReleaseConfigsRequest pageSize */ + pageSize?: (number|null); + + /** ListReleaseConfigsRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a ListReleaseConfigsRequest. */ + class ListReleaseConfigsRequest implements IListReleaseConfigsRequest { + + /** + * Constructs a new ListReleaseConfigsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dataform.v1beta1.IListReleaseConfigsRequest); + + /** ListReleaseConfigsRequest parent. */ + public parent: string; + + /** ListReleaseConfigsRequest pageSize. */ + public pageSize: number; + + /** ListReleaseConfigsRequest pageToken. */ + public pageToken: string; + + /** + * Creates a new ListReleaseConfigsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListReleaseConfigsRequest instance + */ + public static create(properties?: google.cloud.dataform.v1beta1.IListReleaseConfigsRequest): google.cloud.dataform.v1beta1.ListReleaseConfigsRequest; + + /** + * Encodes the specified ListReleaseConfigsRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.ListReleaseConfigsRequest.verify|verify} messages. + * @param message ListReleaseConfigsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dataform.v1beta1.IListReleaseConfigsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListReleaseConfigsRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.ListReleaseConfigsRequest.verify|verify} messages. + * @param message ListReleaseConfigsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IListReleaseConfigsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListReleaseConfigsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListReleaseConfigsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.ListReleaseConfigsRequest; + + /** + * Decodes a ListReleaseConfigsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListReleaseConfigsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.ListReleaseConfigsRequest; + + /** + * Verifies a ListReleaseConfigsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListReleaseConfigsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListReleaseConfigsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.ListReleaseConfigsRequest; + + /** + * Creates a plain object from a ListReleaseConfigsRequest message. Also converts values to other types if specified. + * @param message ListReleaseConfigsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dataform.v1beta1.ListReleaseConfigsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListReleaseConfigsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListReleaseConfigsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListReleaseConfigsResponse. */ + interface IListReleaseConfigsResponse { + + /** ListReleaseConfigsResponse releaseConfigs */ + releaseConfigs?: (google.cloud.dataform.v1beta1.IReleaseConfig[]|null); + + /** ListReleaseConfigsResponse nextPageToken */ + nextPageToken?: (string|null); + + /** ListReleaseConfigsResponse unreachable */ + unreachable?: (string[]|null); + } + + /** Represents a ListReleaseConfigsResponse. */ + class ListReleaseConfigsResponse implements IListReleaseConfigsResponse { + + /** + * Constructs a new ListReleaseConfigsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dataform.v1beta1.IListReleaseConfigsResponse); + + /** ListReleaseConfigsResponse releaseConfigs. */ + public releaseConfigs: google.cloud.dataform.v1beta1.IReleaseConfig[]; + + /** ListReleaseConfigsResponse nextPageToken. */ + public nextPageToken: string; + + /** ListReleaseConfigsResponse unreachable. */ + public unreachable: string[]; + + /** + * Creates a new ListReleaseConfigsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListReleaseConfigsResponse instance + */ + public static create(properties?: google.cloud.dataform.v1beta1.IListReleaseConfigsResponse): google.cloud.dataform.v1beta1.ListReleaseConfigsResponse; + + /** + * Encodes the specified ListReleaseConfigsResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.ListReleaseConfigsResponse.verify|verify} messages. + * @param message ListReleaseConfigsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dataform.v1beta1.IListReleaseConfigsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListReleaseConfigsResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.ListReleaseConfigsResponse.verify|verify} messages. + * @param message ListReleaseConfigsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IListReleaseConfigsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListReleaseConfigsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListReleaseConfigsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.ListReleaseConfigsResponse; + + /** + * Decodes a ListReleaseConfigsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListReleaseConfigsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.ListReleaseConfigsResponse; + + /** + * Verifies a ListReleaseConfigsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListReleaseConfigsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListReleaseConfigsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.ListReleaseConfigsResponse; + + /** + * Creates a plain object from a ListReleaseConfigsResponse message. Also converts values to other types if specified. + * @param message ListReleaseConfigsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dataform.v1beta1.ListReleaseConfigsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListReleaseConfigsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListReleaseConfigsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetReleaseConfigRequest. */ + interface IGetReleaseConfigRequest { + + /** GetReleaseConfigRequest name */ + name?: (string|null); + } + + /** Represents a GetReleaseConfigRequest. */ + class GetReleaseConfigRequest implements IGetReleaseConfigRequest { + + /** + * Constructs a new GetReleaseConfigRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dataform.v1beta1.IGetReleaseConfigRequest); + + /** GetReleaseConfigRequest name. */ + public name: string; + + /** + * Creates a new GetReleaseConfigRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetReleaseConfigRequest instance + */ + public static create(properties?: google.cloud.dataform.v1beta1.IGetReleaseConfigRequest): google.cloud.dataform.v1beta1.GetReleaseConfigRequest; + + /** + * Encodes the specified GetReleaseConfigRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.GetReleaseConfigRequest.verify|verify} messages. + * @param message GetReleaseConfigRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dataform.v1beta1.IGetReleaseConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetReleaseConfigRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.GetReleaseConfigRequest.verify|verify} messages. + * @param message GetReleaseConfigRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IGetReleaseConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetReleaseConfigRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetReleaseConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.GetReleaseConfigRequest; + + /** + * Decodes a GetReleaseConfigRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetReleaseConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.GetReleaseConfigRequest; + + /** + * Verifies a GetReleaseConfigRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetReleaseConfigRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetReleaseConfigRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.GetReleaseConfigRequest; + + /** + * Creates a plain object from a GetReleaseConfigRequest message. Also converts values to other types if specified. + * @param message GetReleaseConfigRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dataform.v1beta1.GetReleaseConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetReleaseConfigRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetReleaseConfigRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CreateReleaseConfigRequest. */ + interface ICreateReleaseConfigRequest { + + /** CreateReleaseConfigRequest parent */ + parent?: (string|null); + + /** CreateReleaseConfigRequest releaseConfig */ + releaseConfig?: (google.cloud.dataform.v1beta1.IReleaseConfig|null); + + /** CreateReleaseConfigRequest releaseConfigId */ + releaseConfigId?: (string|null); + } + + /** Represents a CreateReleaseConfigRequest. */ + class CreateReleaseConfigRequest implements ICreateReleaseConfigRequest { + + /** + * Constructs a new CreateReleaseConfigRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dataform.v1beta1.ICreateReleaseConfigRequest); + + /** CreateReleaseConfigRequest parent. */ + public parent: string; + + /** CreateReleaseConfigRequest releaseConfig. */ + public releaseConfig?: (google.cloud.dataform.v1beta1.IReleaseConfig|null); + + /** CreateReleaseConfigRequest releaseConfigId. */ + public releaseConfigId: string; + + /** + * Creates a new CreateReleaseConfigRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateReleaseConfigRequest instance + */ + public static create(properties?: google.cloud.dataform.v1beta1.ICreateReleaseConfigRequest): google.cloud.dataform.v1beta1.CreateReleaseConfigRequest; + + /** + * Encodes the specified CreateReleaseConfigRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.CreateReleaseConfigRequest.verify|verify} messages. + * @param message CreateReleaseConfigRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dataform.v1beta1.ICreateReleaseConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateReleaseConfigRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CreateReleaseConfigRequest.verify|verify} messages. + * @param message CreateReleaseConfigRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dataform.v1beta1.ICreateReleaseConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateReleaseConfigRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateReleaseConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.CreateReleaseConfigRequest; + + /** + * Decodes a CreateReleaseConfigRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateReleaseConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.CreateReleaseConfigRequest; + + /** + * Verifies a CreateReleaseConfigRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreateReleaseConfigRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateReleaseConfigRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.CreateReleaseConfigRequest; + + /** + * Creates a plain object from a CreateReleaseConfigRequest message. Also converts values to other types if specified. + * @param message CreateReleaseConfigRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dataform.v1beta1.CreateReleaseConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateReleaseConfigRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateReleaseConfigRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpdateReleaseConfigRequest. */ + interface IUpdateReleaseConfigRequest { + + /** UpdateReleaseConfigRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + + /** UpdateReleaseConfigRequest releaseConfig */ + releaseConfig?: (google.cloud.dataform.v1beta1.IReleaseConfig|null); + } + + /** Represents an UpdateReleaseConfigRequest. */ + class UpdateReleaseConfigRequest implements IUpdateReleaseConfigRequest { + + /** + * Constructs a new UpdateReleaseConfigRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dataform.v1beta1.IUpdateReleaseConfigRequest); + + /** UpdateReleaseConfigRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** UpdateReleaseConfigRequest releaseConfig. */ + public releaseConfig?: (google.cloud.dataform.v1beta1.IReleaseConfig|null); + + /** + * Creates a new UpdateReleaseConfigRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateReleaseConfigRequest instance + */ + public static create(properties?: google.cloud.dataform.v1beta1.IUpdateReleaseConfigRequest): google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest; + + /** + * Encodes the specified UpdateReleaseConfigRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest.verify|verify} messages. + * @param message UpdateReleaseConfigRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dataform.v1beta1.IUpdateReleaseConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateReleaseConfigRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest.verify|verify} messages. + * @param message UpdateReleaseConfigRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IUpdateReleaseConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateReleaseConfigRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateReleaseConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest; + + /** + * Decodes an UpdateReleaseConfigRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateReleaseConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest; + + /** + * Verifies an UpdateReleaseConfigRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an UpdateReleaseConfigRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateReleaseConfigRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest; + + /** + * Creates a plain object from an UpdateReleaseConfigRequest message. Also converts values to other types if specified. + * @param message UpdateReleaseConfigRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateReleaseConfigRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateReleaseConfigRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteReleaseConfigRequest. */ + interface IDeleteReleaseConfigRequest { + + /** DeleteReleaseConfigRequest name */ + name?: (string|null); + } + + /** Represents a DeleteReleaseConfigRequest. */ + class DeleteReleaseConfigRequest implements IDeleteReleaseConfigRequest { + + /** + * Constructs a new DeleteReleaseConfigRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dataform.v1beta1.IDeleteReleaseConfigRequest); + + /** DeleteReleaseConfigRequest name. */ + public name: string; + + /** + * Creates a new DeleteReleaseConfigRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteReleaseConfigRequest instance + */ + public static create(properties?: google.cloud.dataform.v1beta1.IDeleteReleaseConfigRequest): google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest; + + /** + * Encodes the specified DeleteReleaseConfigRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest.verify|verify} messages. + * @param message DeleteReleaseConfigRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dataform.v1beta1.IDeleteReleaseConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteReleaseConfigRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest.verify|verify} messages. + * @param message DeleteReleaseConfigRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IDeleteReleaseConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteReleaseConfigRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteReleaseConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest; + + /** + * Decodes a DeleteReleaseConfigRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteReleaseConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest; + + /** + * Verifies a DeleteReleaseConfigRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteReleaseConfigRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteReleaseConfigRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest; + + /** + * Creates a plain object from a DeleteReleaseConfigRequest message. Also converts values to other types if specified. + * @param message DeleteReleaseConfigRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteReleaseConfigRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteReleaseConfigRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CompilationResult. */ + interface ICompilationResult { + + /** CompilationResult name */ + name?: (string|null); + + /** CompilationResult gitCommitish */ + gitCommitish?: (string|null); + + /** CompilationResult workspace */ + workspace?: (string|null); + + /** CompilationResult releaseConfig */ + releaseConfig?: (string|null); + + /** CompilationResult codeCompilationConfig */ + codeCompilationConfig?: (google.cloud.dataform.v1beta1.ICodeCompilationConfig|null); + + /** CompilationResult resolvedGitCommitSha */ + resolvedGitCommitSha?: (string|null); + + /** CompilationResult dataformCoreVersion */ + dataformCoreVersion?: (string|null); + + /** CompilationResult compilationErrors */ + compilationErrors?: (google.cloud.dataform.v1beta1.CompilationResult.ICompilationError[]|null); + } + + /** Represents a CompilationResult. */ + class CompilationResult implements ICompilationResult { + + /** + * Constructs a new CompilationResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dataform.v1beta1.ICompilationResult); + + /** CompilationResult name. */ + public name: string; + + /** CompilationResult gitCommitish. */ + public gitCommitish?: (string|null); + + /** CompilationResult workspace. */ + public workspace?: (string|null); + + /** CompilationResult releaseConfig. */ + public releaseConfig?: (string|null); + + /** CompilationResult codeCompilationConfig. */ + public codeCompilationConfig?: (google.cloud.dataform.v1beta1.ICodeCompilationConfig|null); + + /** CompilationResult resolvedGitCommitSha. */ + public resolvedGitCommitSha: string; + + /** CompilationResult dataformCoreVersion. */ + public dataformCoreVersion: string; + + /** CompilationResult compilationErrors. */ + public compilationErrors: google.cloud.dataform.v1beta1.CompilationResult.ICompilationError[]; + + /** CompilationResult source. */ + public source?: ("gitCommitish"|"workspace"|"releaseConfig"); + + /** + * Creates a new CompilationResult instance using the specified properties. + * @param [properties] Properties to set + * @returns CompilationResult instance + */ + public static create(properties?: google.cloud.dataform.v1beta1.ICompilationResult): google.cloud.dataform.v1beta1.CompilationResult; + + /** + * Encodes the specified CompilationResult message. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResult.verify|verify} messages. + * @param message CompilationResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dataform.v1beta1.ICompilationResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CompilationResult message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResult.verify|verify} messages. + * @param message CompilationResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dataform.v1beta1.ICompilationResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CompilationResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CompilationResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.CompilationResult; + + /** + * Decodes a CompilationResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CompilationResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.CompilationResult; + + /** + * Verifies a CompilationResult message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CompilationResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CompilationResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.CompilationResult; + + /** + * Creates a plain object from a CompilationResult message. Also converts values to other types if specified. + * @param message CompilationResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dataform.v1beta1.CompilationResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CompilationResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CompilationResult + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace CompilationResult { + + /** Properties of a CompilationError. */ + interface ICompilationError { + + /** CompilationError message */ + message?: (string|null); + + /** CompilationError stack */ + stack?: (string|null); + + /** CompilationError path */ + path?: (string|null); + + /** CompilationError actionTarget */ + actionTarget?: (google.cloud.dataform.v1beta1.ITarget|null); + } + + /** Represents a CompilationError. */ + class CompilationError implements ICompilationError { + + /** + * Constructs a new CompilationError. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dataform.v1beta1.CompilationResult.ICompilationError); + + /** CompilationError message. */ + public message: string; + + /** CompilationError stack. */ + public stack: string; + + /** CompilationError path. */ + public path: string; + + /** CompilationError actionTarget. */ + public actionTarget?: (google.cloud.dataform.v1beta1.ITarget|null); + + /** + * Creates a new CompilationError instance using the specified properties. + * @param [properties] Properties to set + * @returns CompilationError instance + */ + public static create(properties?: google.cloud.dataform.v1beta1.CompilationResult.ICompilationError): google.cloud.dataform.v1beta1.CompilationResult.CompilationError; + + /** + * Encodes the specified CompilationError message. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResult.CompilationError.verify|verify} messages. + * @param message CompilationError message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dataform.v1beta1.CompilationResult.ICompilationError, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CompilationError message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResult.CompilationError.verify|verify} messages. + * @param message CompilationError message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dataform.v1beta1.CompilationResult.ICompilationError, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CompilationError message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CompilationError + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.CompilationResult.CompilationError; + + /** + * Decodes a CompilationError message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CompilationError + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.CompilationResult.CompilationError; + + /** + * Verifies a CompilationError message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CompilationError message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CompilationError + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.CompilationResult.CompilationError; + + /** + * Creates a plain object from a CompilationError message. Also converts values to other types if specified. + * @param message CompilationError + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dataform.v1beta1.CompilationResult.CompilationError, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CompilationError to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CompilationError + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a CodeCompilationConfig. */ + interface ICodeCompilationConfig { + + /** CodeCompilationConfig defaultDatabase */ + defaultDatabase?: (string|null); + + /** CodeCompilationConfig defaultSchema */ + defaultSchema?: (string|null); + + /** CodeCompilationConfig defaultLocation */ + defaultLocation?: (string|null); + + /** CodeCompilationConfig assertionSchema */ + assertionSchema?: (string|null); + + /** CodeCompilationConfig vars */ + vars?: ({ [k: string]: string }|null); + + /** CodeCompilationConfig databaseSuffix */ + databaseSuffix?: (string|null); + + /** CodeCompilationConfig schemaSuffix */ + schemaSuffix?: (string|null); + + /** CodeCompilationConfig tablePrefix */ + tablePrefix?: (string|null); + } + + /** Represents a CodeCompilationConfig. */ + class CodeCompilationConfig implements ICodeCompilationConfig { + + /** + * Constructs a new CodeCompilationConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dataform.v1beta1.ICodeCompilationConfig); + + /** CodeCompilationConfig defaultDatabase. */ + public defaultDatabase: string; + + /** CodeCompilationConfig defaultSchema. */ + public defaultSchema: string; + + /** CodeCompilationConfig defaultLocation. */ + public defaultLocation: string; + + /** CodeCompilationConfig assertionSchema. */ + public assertionSchema: string; + + /** CodeCompilationConfig vars. */ + public vars: { [k: string]: string }; + + /** CodeCompilationConfig databaseSuffix. */ + public databaseSuffix: string; + + /** CodeCompilationConfig schemaSuffix. */ + public schemaSuffix: string; + + /** CodeCompilationConfig tablePrefix. */ + public tablePrefix: string; + + /** + * Creates a new CodeCompilationConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns CodeCompilationConfig instance + */ + public static create(properties?: google.cloud.dataform.v1beta1.ICodeCompilationConfig): google.cloud.dataform.v1beta1.CodeCompilationConfig; + + /** + * Encodes the specified CodeCompilationConfig message. Does not implicitly {@link google.cloud.dataform.v1beta1.CodeCompilationConfig.verify|verify} messages. + * @param message CodeCompilationConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dataform.v1beta1.ICodeCompilationConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CodeCompilationConfig message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CodeCompilationConfig.verify|verify} messages. + * @param message CodeCompilationConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dataform.v1beta1.ICodeCompilationConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CodeCompilationConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CodeCompilationConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.CodeCompilationConfig; + + /** + * Decodes a CodeCompilationConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CodeCompilationConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.CodeCompilationConfig; + + /** + * Verifies a CodeCompilationConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CodeCompilationConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CodeCompilationConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.CodeCompilationConfig; + + /** + * Creates a plain object from a CodeCompilationConfig message. Also converts values to other types if specified. + * @param message CodeCompilationConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dataform.v1beta1.CodeCompilationConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CodeCompilationConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CodeCompilationConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListCompilationResultsRequest. */ + interface IListCompilationResultsRequest { + + /** ListCompilationResultsRequest parent */ + parent?: (string|null); + + /** ListCompilationResultsRequest pageSize */ + pageSize?: (number|null); + + /** ListCompilationResultsRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a ListCompilationResultsRequest. */ + class ListCompilationResultsRequest implements IListCompilationResultsRequest { + + /** + * Constructs a new ListCompilationResultsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dataform.v1beta1.IListCompilationResultsRequest); + + /** ListCompilationResultsRequest parent. */ + public parent: string; + + /** ListCompilationResultsRequest pageSize. */ + public pageSize: number; + + /** ListCompilationResultsRequest pageToken. */ + public pageToken: string; + + /** + * Creates a new ListCompilationResultsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListCompilationResultsRequest instance + */ + public static create(properties?: google.cloud.dataform.v1beta1.IListCompilationResultsRequest): google.cloud.dataform.v1beta1.ListCompilationResultsRequest; + + /** + * Encodes the specified ListCompilationResultsRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.ListCompilationResultsRequest.verify|verify} messages. + * @param message ListCompilationResultsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dataform.v1beta1.IListCompilationResultsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListCompilationResultsRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.ListCompilationResultsRequest.verify|verify} messages. + * @param message ListCompilationResultsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IListCompilationResultsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListCompilationResultsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListCompilationResultsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.ListCompilationResultsRequest; + + /** + * Decodes a ListCompilationResultsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListCompilationResultsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.ListCompilationResultsRequest; + + /** + * Verifies a ListCompilationResultsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListCompilationResultsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListCompilationResultsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.ListCompilationResultsRequest; + + /** + * Creates a plain object from a ListCompilationResultsRequest message. Also converts values to other types if specified. + * @param message ListCompilationResultsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dataform.v1beta1.ListCompilationResultsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListCompilationResultsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListCompilationResultsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListCompilationResultsResponse. */ + interface IListCompilationResultsResponse { + + /** ListCompilationResultsResponse compilationResults */ + compilationResults?: (google.cloud.dataform.v1beta1.ICompilationResult[]|null); + + /** ListCompilationResultsResponse nextPageToken */ + nextPageToken?: (string|null); + + /** ListCompilationResultsResponse unreachable */ + unreachable?: (string[]|null); + } + + /** Represents a ListCompilationResultsResponse. */ + class ListCompilationResultsResponse implements IListCompilationResultsResponse { + + /** + * Constructs a new ListCompilationResultsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dataform.v1beta1.IListCompilationResultsResponse); + + /** ListCompilationResultsResponse compilationResults. */ + public compilationResults: google.cloud.dataform.v1beta1.ICompilationResult[]; + + /** ListCompilationResultsResponse nextPageToken. */ + public nextPageToken: string; + + /** ListCompilationResultsResponse unreachable. */ + public unreachable: string[]; + + /** + * Creates a new ListCompilationResultsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListCompilationResultsResponse instance + */ + public static create(properties?: google.cloud.dataform.v1beta1.IListCompilationResultsResponse): google.cloud.dataform.v1beta1.ListCompilationResultsResponse; + + /** + * Encodes the specified ListCompilationResultsResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.ListCompilationResultsResponse.verify|verify} messages. + * @param message ListCompilationResultsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dataform.v1beta1.IListCompilationResultsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListCompilationResultsResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.ListCompilationResultsResponse.verify|verify} messages. + * @param message ListCompilationResultsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IListCompilationResultsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListCompilationResultsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListCompilationResultsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.ListCompilationResultsResponse; + + /** + * Decodes a ListCompilationResultsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListCompilationResultsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.ListCompilationResultsResponse; + + /** + * Verifies a ListCompilationResultsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListCompilationResultsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListCompilationResultsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.ListCompilationResultsResponse; + + /** + * Creates a plain object from a ListCompilationResultsResponse message. Also converts values to other types if specified. + * @param message ListCompilationResultsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dataform.v1beta1.ListCompilationResultsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListCompilationResultsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListCompilationResultsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetCompilationResultRequest. */ + interface IGetCompilationResultRequest { + + /** GetCompilationResultRequest name */ + name?: (string|null); + } + + /** Represents a GetCompilationResultRequest. */ + class GetCompilationResultRequest implements IGetCompilationResultRequest { + + /** + * Constructs a new GetCompilationResultRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dataform.v1beta1.IGetCompilationResultRequest); + + /** GetCompilationResultRequest name. */ + public name: string; + + /** + * Creates a new GetCompilationResultRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetCompilationResultRequest instance + */ + public static create(properties?: google.cloud.dataform.v1beta1.IGetCompilationResultRequest): google.cloud.dataform.v1beta1.GetCompilationResultRequest; + + /** + * Encodes the specified GetCompilationResultRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.GetCompilationResultRequest.verify|verify} messages. + * @param message GetCompilationResultRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dataform.v1beta1.IGetCompilationResultRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetCompilationResultRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.GetCompilationResultRequest.verify|verify} messages. + * @param message GetCompilationResultRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IGetCompilationResultRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetCompilationResultRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetCompilationResultRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.GetCompilationResultRequest; + + /** + * Decodes a GetCompilationResultRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetCompilationResultRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.GetCompilationResultRequest; + + /** + * Verifies a GetCompilationResultRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetCompilationResultRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetCompilationResultRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.GetCompilationResultRequest; + + /** + * Creates a plain object from a GetCompilationResultRequest message. Also converts values to other types if specified. + * @param message GetCompilationResultRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dataform.v1beta1.GetCompilationResultRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetCompilationResultRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetCompilationResultRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CreateCompilationResultRequest. */ + interface ICreateCompilationResultRequest { + + /** CreateCompilationResultRequest parent */ + parent?: (string|null); + + /** CreateCompilationResultRequest compilationResult */ + compilationResult?: (google.cloud.dataform.v1beta1.ICompilationResult|null); + } + + /** Represents a CreateCompilationResultRequest. */ + class CreateCompilationResultRequest implements ICreateCompilationResultRequest { + + /** + * Constructs a new CreateCompilationResultRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dataform.v1beta1.ICreateCompilationResultRequest); + + /** CreateCompilationResultRequest parent. */ + public parent: string; + + /** CreateCompilationResultRequest compilationResult. */ + public compilationResult?: (google.cloud.dataform.v1beta1.ICompilationResult|null); + + /** + * Creates a new CreateCompilationResultRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateCompilationResultRequest instance + */ + public static create(properties?: google.cloud.dataform.v1beta1.ICreateCompilationResultRequest): google.cloud.dataform.v1beta1.CreateCompilationResultRequest; + + /** + * Encodes the specified CreateCompilationResultRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.CreateCompilationResultRequest.verify|verify} messages. + * @param message CreateCompilationResultRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dataform.v1beta1.ICreateCompilationResultRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateCompilationResultRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CreateCompilationResultRequest.verify|verify} messages. + * @param message CreateCompilationResultRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dataform.v1beta1.ICreateCompilationResultRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateCompilationResultRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateCompilationResultRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.CreateCompilationResultRequest; + + /** + * Decodes a CreateCompilationResultRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateCompilationResultRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.CreateCompilationResultRequest; + + /** + * Verifies a CreateCompilationResultRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreateCompilationResultRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateCompilationResultRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.CreateCompilationResultRequest; + + /** + * Creates a plain object from a CreateCompilationResultRequest message. Also converts values to other types if specified. + * @param message CreateCompilationResultRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dataform.v1beta1.CreateCompilationResultRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateCompilationResultRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateCompilationResultRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Target. */ + interface ITarget { + + /** Target database */ + database?: (string|null); + + /** Target schema */ + schema?: (string|null); + + /** Target name */ + name?: (string|null); + } + + /** Represents a Target. */ + class Target implements ITarget { + + /** + * Constructs a new Target. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dataform.v1beta1.ITarget); + + /** Target database. */ + public database: string; + + /** Target schema. */ + public schema: string; + + /** Target name. */ + public name: string; + + /** + * Creates a new Target instance using the specified properties. + * @param [properties] Properties to set + * @returns Target instance + */ + public static create(properties?: google.cloud.dataform.v1beta1.ITarget): google.cloud.dataform.v1beta1.Target; + + /** + * Encodes the specified Target message. Does not implicitly {@link google.cloud.dataform.v1beta1.Target.verify|verify} messages. + * @param message Target message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dataform.v1beta1.ITarget, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Target message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.Target.verify|verify} messages. + * @param message Target message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dataform.v1beta1.ITarget, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Target message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Target + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.Target; + + /** + * Decodes a Target message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Target + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.Target; + + /** + * Verifies a Target message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Target message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Target + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.Target; + + /** + * Creates a plain object from a Target message. Also converts values to other types if specified. + * @param message Target + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dataform.v1beta1.Target, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Target to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Target + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RelationDescriptor. */ + interface IRelationDescriptor { + + /** RelationDescriptor description */ + description?: (string|null); + + /** RelationDescriptor columns */ + columns?: (google.cloud.dataform.v1beta1.RelationDescriptor.IColumnDescriptor[]|null); + + /** RelationDescriptor bigqueryLabels */ + bigqueryLabels?: ({ [k: string]: string }|null); + } + + /** Represents a RelationDescriptor. */ + class RelationDescriptor implements IRelationDescriptor { + + /** + * Constructs a new RelationDescriptor. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dataform.v1beta1.IRelationDescriptor); + + /** RelationDescriptor description. */ + public description: string; + + /** RelationDescriptor columns. */ + public columns: google.cloud.dataform.v1beta1.RelationDescriptor.IColumnDescriptor[]; + + /** RelationDescriptor bigqueryLabels. */ + public bigqueryLabels: { [k: string]: string }; + + /** + * Creates a new RelationDescriptor instance using the specified properties. + * @param [properties] Properties to set + * @returns RelationDescriptor instance + */ + public static create(properties?: google.cloud.dataform.v1beta1.IRelationDescriptor): google.cloud.dataform.v1beta1.RelationDescriptor; + + /** + * Encodes the specified RelationDescriptor message. Does not implicitly {@link google.cloud.dataform.v1beta1.RelationDescriptor.verify|verify} messages. + * @param message RelationDescriptor message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dataform.v1beta1.IRelationDescriptor, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RelationDescriptor message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.RelationDescriptor.verify|verify} messages. + * @param message RelationDescriptor message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IRelationDescriptor, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RelationDescriptor message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RelationDescriptor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.RelationDescriptor; + + /** + * Decodes a RelationDescriptor message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RelationDescriptor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.RelationDescriptor; + + /** + * Verifies a RelationDescriptor message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RelationDescriptor message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RelationDescriptor + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.RelationDescriptor; + + /** + * Creates a plain object from a RelationDescriptor message. Also converts values to other types if specified. + * @param message RelationDescriptor + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dataform.v1beta1.RelationDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RelationDescriptor to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RelationDescriptor + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace RelationDescriptor { + + /** Properties of a ColumnDescriptor. */ + interface IColumnDescriptor { + + /** ColumnDescriptor path */ + path?: (string[]|null); + + /** ColumnDescriptor description */ + description?: (string|null); + + /** ColumnDescriptor bigqueryPolicyTags */ + bigqueryPolicyTags?: (string[]|null); + } + + /** Represents a ColumnDescriptor. */ + class ColumnDescriptor implements IColumnDescriptor { + + /** + * Constructs a new ColumnDescriptor. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dataform.v1beta1.RelationDescriptor.IColumnDescriptor); + + /** ColumnDescriptor path. */ + public path: string[]; + + /** ColumnDescriptor description. */ + public description: string; + + /** ColumnDescriptor bigqueryPolicyTags. */ + public bigqueryPolicyTags: string[]; + + /** + * Creates a new ColumnDescriptor instance using the specified properties. + * @param [properties] Properties to set + * @returns ColumnDescriptor instance + */ + public static create(properties?: google.cloud.dataform.v1beta1.RelationDescriptor.IColumnDescriptor): google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor; + + /** + * Encodes the specified ColumnDescriptor message. Does not implicitly {@link google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor.verify|verify} messages. + * @param message ColumnDescriptor message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dataform.v1beta1.RelationDescriptor.IColumnDescriptor, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ColumnDescriptor message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor.verify|verify} messages. + * @param message ColumnDescriptor message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dataform.v1beta1.RelationDescriptor.IColumnDescriptor, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ColumnDescriptor message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ColumnDescriptor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor; + + /** + * Decodes a ColumnDescriptor message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ColumnDescriptor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor; + + /** + * Verifies a ColumnDescriptor message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ColumnDescriptor message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ColumnDescriptor + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor; + + /** + * Creates a plain object from a ColumnDescriptor message. Also converts values to other types if specified. + * @param message ColumnDescriptor + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ColumnDescriptor to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ColumnDescriptor + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a CompilationResultAction. */ + interface ICompilationResultAction { + + /** CompilationResultAction target */ + target?: (google.cloud.dataform.v1beta1.ITarget|null); + + /** CompilationResultAction canonicalTarget */ + canonicalTarget?: (google.cloud.dataform.v1beta1.ITarget|null); + + /** CompilationResultAction filePath */ + filePath?: (string|null); + + /** CompilationResultAction relation */ + relation?: (google.cloud.dataform.v1beta1.CompilationResultAction.IRelation|null); + + /** CompilationResultAction operations */ + operations?: (google.cloud.dataform.v1beta1.CompilationResultAction.IOperations|null); + + /** CompilationResultAction assertion */ + assertion?: (google.cloud.dataform.v1beta1.CompilationResultAction.IAssertion|null); + + /** CompilationResultAction declaration */ + declaration?: (google.cloud.dataform.v1beta1.CompilationResultAction.IDeclaration|null); + } + + /** Represents a CompilationResultAction. */ + class CompilationResultAction implements ICompilationResultAction { + + /** + * Constructs a new CompilationResultAction. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dataform.v1beta1.ICompilationResultAction); + + /** CompilationResultAction target. */ + public target?: (google.cloud.dataform.v1beta1.ITarget|null); + + /** CompilationResultAction canonicalTarget. */ + public canonicalTarget?: (google.cloud.dataform.v1beta1.ITarget|null); + + /** CompilationResultAction filePath. */ + public filePath: string; + + /** CompilationResultAction relation. */ + public relation?: (google.cloud.dataform.v1beta1.CompilationResultAction.IRelation|null); + + /** CompilationResultAction operations. */ + public operations?: (google.cloud.dataform.v1beta1.CompilationResultAction.IOperations|null); + + /** CompilationResultAction assertion. */ + public assertion?: (google.cloud.dataform.v1beta1.CompilationResultAction.IAssertion|null); + + /** CompilationResultAction declaration. */ + public declaration?: (google.cloud.dataform.v1beta1.CompilationResultAction.IDeclaration|null); + + /** CompilationResultAction compiledObject. */ + public compiledObject?: ("relation"|"operations"|"assertion"|"declaration"); + + /** + * Creates a new CompilationResultAction instance using the specified properties. + * @param [properties] Properties to set + * @returns CompilationResultAction instance + */ + public static create(properties?: google.cloud.dataform.v1beta1.ICompilationResultAction): google.cloud.dataform.v1beta1.CompilationResultAction; + + /** + * Encodes the specified CompilationResultAction message. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResultAction.verify|verify} messages. + * @param message CompilationResultAction message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dataform.v1beta1.ICompilationResultAction, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CompilationResultAction message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResultAction.verify|verify} messages. + * @param message CompilationResultAction message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dataform.v1beta1.ICompilationResultAction, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CompilationResultAction message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CompilationResultAction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.CompilationResultAction; + + /** + * Decodes a CompilationResultAction message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CompilationResultAction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.CompilationResultAction; + + /** + * Verifies a CompilationResultAction message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CompilationResultAction message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CompilationResultAction + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.CompilationResultAction; + + /** + * Creates a plain object from a CompilationResultAction message. Also converts values to other types if specified. + * @param message CompilationResultAction + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dataform.v1beta1.CompilationResultAction, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CompilationResultAction to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CompilationResultAction + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace CompilationResultAction { + + /** Properties of a Relation. */ + interface IRelation { + + /** Relation dependencyTargets */ + dependencyTargets?: (google.cloud.dataform.v1beta1.ITarget[]|null); /** Relation disabled */ disabled?: (boolean|null); - /** Relation tags */ - tags?: (string[]|null); + /** Relation tags */ + tags?: (string[]|null); + + /** Relation relationDescriptor */ + relationDescriptor?: (google.cloud.dataform.v1beta1.IRelationDescriptor|null); + + /** Relation relationType */ + relationType?: (google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType|keyof typeof google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType|null); + + /** Relation selectQuery */ + selectQuery?: (string|null); + + /** Relation preOperations */ + preOperations?: (string[]|null); + + /** Relation postOperations */ + postOperations?: (string[]|null); + + /** Relation incrementalTableConfig */ + incrementalTableConfig?: (google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IIncrementalTableConfig|null); + + /** Relation partitionExpression */ + partitionExpression?: (string|null); + + /** Relation clusterExpressions */ + clusterExpressions?: (string[]|null); + + /** Relation partitionExpirationDays */ + partitionExpirationDays?: (number|null); + + /** Relation requirePartitionFilter */ + requirePartitionFilter?: (boolean|null); + + /** Relation additionalOptions */ + additionalOptions?: ({ [k: string]: string }|null); + } + + /** Represents a Relation. */ + class Relation implements IRelation { + + /** + * Constructs a new Relation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dataform.v1beta1.CompilationResultAction.IRelation); + + /** Relation dependencyTargets. */ + public dependencyTargets: google.cloud.dataform.v1beta1.ITarget[]; + + /** Relation disabled. */ + public disabled: boolean; + + /** Relation tags. */ + public tags: string[]; + + /** Relation relationDescriptor. */ + public relationDescriptor?: (google.cloud.dataform.v1beta1.IRelationDescriptor|null); + + /** Relation relationType. */ + public relationType: (google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType|keyof typeof google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType); + + /** Relation selectQuery. */ + public selectQuery: string; + + /** Relation preOperations. */ + public preOperations: string[]; + + /** Relation postOperations. */ + public postOperations: string[]; + + /** Relation incrementalTableConfig. */ + public incrementalTableConfig?: (google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IIncrementalTableConfig|null); + + /** Relation partitionExpression. */ + public partitionExpression: string; + + /** Relation clusterExpressions. */ + public clusterExpressions: string[]; + + /** Relation partitionExpirationDays. */ + public partitionExpirationDays: number; + + /** Relation requirePartitionFilter. */ + public requirePartitionFilter: boolean; + + /** Relation additionalOptions. */ + public additionalOptions: { [k: string]: string }; + + /** + * Creates a new Relation instance using the specified properties. + * @param [properties] Properties to set + * @returns Relation instance + */ + public static create(properties?: google.cloud.dataform.v1beta1.CompilationResultAction.IRelation): google.cloud.dataform.v1beta1.CompilationResultAction.Relation; + + /** + * Encodes the specified Relation message. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResultAction.Relation.verify|verify} messages. + * @param message Relation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dataform.v1beta1.CompilationResultAction.IRelation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Relation message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResultAction.Relation.verify|verify} messages. + * @param message Relation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dataform.v1beta1.CompilationResultAction.IRelation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Relation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Relation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.CompilationResultAction.Relation; + + /** + * Decodes a Relation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Relation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.CompilationResultAction.Relation; + + /** + * Verifies a Relation message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Relation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Relation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.CompilationResultAction.Relation; + + /** + * Creates a plain object from a Relation message. Also converts values to other types if specified. + * @param message Relation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dataform.v1beta1.CompilationResultAction.Relation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Relation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Relation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace Relation { + + /** RelationType enum. */ + enum RelationType { + RELATION_TYPE_UNSPECIFIED = 0, + TABLE = 1, + VIEW = 2, + INCREMENTAL_TABLE = 3, + MATERIALIZED_VIEW = 4 + } + + /** Properties of an IncrementalTableConfig. */ + interface IIncrementalTableConfig { + + /** IncrementalTableConfig incrementalSelectQuery */ + incrementalSelectQuery?: (string|null); + + /** IncrementalTableConfig refreshDisabled */ + refreshDisabled?: (boolean|null); + + /** IncrementalTableConfig uniqueKeyParts */ + uniqueKeyParts?: (string[]|null); + + /** IncrementalTableConfig updatePartitionFilter */ + updatePartitionFilter?: (string|null); + + /** IncrementalTableConfig incrementalPreOperations */ + incrementalPreOperations?: (string[]|null); + + /** IncrementalTableConfig incrementalPostOperations */ + incrementalPostOperations?: (string[]|null); + } + + /** Represents an IncrementalTableConfig. */ + class IncrementalTableConfig implements IIncrementalTableConfig { + + /** + * Constructs a new IncrementalTableConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IIncrementalTableConfig); + + /** IncrementalTableConfig incrementalSelectQuery. */ + public incrementalSelectQuery: string; + + /** IncrementalTableConfig refreshDisabled. */ + public refreshDisabled: boolean; + + /** IncrementalTableConfig uniqueKeyParts. */ + public uniqueKeyParts: string[]; + + /** IncrementalTableConfig updatePartitionFilter. */ + public updatePartitionFilter: string; + + /** IncrementalTableConfig incrementalPreOperations. */ + public incrementalPreOperations: string[]; + + /** IncrementalTableConfig incrementalPostOperations. */ + public incrementalPostOperations: string[]; + + /** + * Creates a new IncrementalTableConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns IncrementalTableConfig instance + */ + public static create(properties?: google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IIncrementalTableConfig): google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig; + + /** + * Encodes the specified IncrementalTableConfig message. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig.verify|verify} messages. + * @param message IncrementalTableConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IIncrementalTableConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified IncrementalTableConfig message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig.verify|verify} messages. + * @param message IncrementalTableConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IIncrementalTableConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an IncrementalTableConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IncrementalTableConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig; + + /** + * Decodes an IncrementalTableConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns IncrementalTableConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig; + + /** + * Verifies an IncrementalTableConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an IncrementalTableConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns IncrementalTableConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig; + + /** + * Creates a plain object from an IncrementalTableConfig message. Also converts values to other types if specified. + * @param message IncrementalTableConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this IncrementalTableConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for IncrementalTableConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of an Operations. */ + interface IOperations { + + /** Operations dependencyTargets */ + dependencyTargets?: (google.cloud.dataform.v1beta1.ITarget[]|null); + + /** Operations disabled */ + disabled?: (boolean|null); + + /** Operations tags */ + tags?: (string[]|null); + + /** Operations relationDescriptor */ + relationDescriptor?: (google.cloud.dataform.v1beta1.IRelationDescriptor|null); + + /** Operations queries */ + queries?: (string[]|null); + + /** Operations hasOutput */ + hasOutput?: (boolean|null); + } + + /** Represents an Operations. */ + class Operations implements IOperations { + + /** + * Constructs a new Operations. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dataform.v1beta1.CompilationResultAction.IOperations); + + /** Operations dependencyTargets. */ + public dependencyTargets: google.cloud.dataform.v1beta1.ITarget[]; + + /** Operations disabled. */ + public disabled: boolean; + + /** Operations tags. */ + public tags: string[]; + + /** Operations relationDescriptor. */ + public relationDescriptor?: (google.cloud.dataform.v1beta1.IRelationDescriptor|null); + + /** Operations queries. */ + public queries: string[]; + + /** Operations hasOutput. */ + public hasOutput: boolean; + + /** + * Creates a new Operations instance using the specified properties. + * @param [properties] Properties to set + * @returns Operations instance + */ + public static create(properties?: google.cloud.dataform.v1beta1.CompilationResultAction.IOperations): google.cloud.dataform.v1beta1.CompilationResultAction.Operations; + + /** + * Encodes the specified Operations message. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResultAction.Operations.verify|verify} messages. + * @param message Operations message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dataform.v1beta1.CompilationResultAction.IOperations, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Operations message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResultAction.Operations.verify|verify} messages. + * @param message Operations message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dataform.v1beta1.CompilationResultAction.IOperations, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Operations message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Operations + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.CompilationResultAction.Operations; + + /** + * Decodes an Operations message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Operations + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.CompilationResultAction.Operations; + + /** + * Verifies an Operations message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an Operations message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Operations + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.CompilationResultAction.Operations; + + /** + * Creates a plain object from an Operations message. Also converts values to other types if specified. + * @param message Operations + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dataform.v1beta1.CompilationResultAction.Operations, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Operations to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Operations + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an Assertion. */ + interface IAssertion { + + /** Assertion dependencyTargets */ + dependencyTargets?: (google.cloud.dataform.v1beta1.ITarget[]|null); + + /** Assertion parentAction */ + parentAction?: (google.cloud.dataform.v1beta1.ITarget|null); + + /** Assertion disabled */ + disabled?: (boolean|null); + + /** Assertion tags */ + tags?: (string[]|null); + + /** Assertion selectQuery */ + selectQuery?: (string|null); + + /** Assertion relationDescriptor */ + relationDescriptor?: (google.cloud.dataform.v1beta1.IRelationDescriptor|null); + } + + /** Represents an Assertion. */ + class Assertion implements IAssertion { + + /** + * Constructs a new Assertion. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dataform.v1beta1.CompilationResultAction.IAssertion); + + /** Assertion dependencyTargets. */ + public dependencyTargets: google.cloud.dataform.v1beta1.ITarget[]; + + /** Assertion parentAction. */ + public parentAction?: (google.cloud.dataform.v1beta1.ITarget|null); + + /** Assertion disabled. */ + public disabled: boolean; + + /** Assertion tags. */ + public tags: string[]; + + /** Assertion selectQuery. */ + public selectQuery: string; + + /** Assertion relationDescriptor. */ + public relationDescriptor?: (google.cloud.dataform.v1beta1.IRelationDescriptor|null); + + /** + * Creates a new Assertion instance using the specified properties. + * @param [properties] Properties to set + * @returns Assertion instance + */ + public static create(properties?: google.cloud.dataform.v1beta1.CompilationResultAction.IAssertion): google.cloud.dataform.v1beta1.CompilationResultAction.Assertion; + + /** + * Encodes the specified Assertion message. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.verify|verify} messages. + * @param message Assertion message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dataform.v1beta1.CompilationResultAction.IAssertion, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Assertion message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.verify|verify} messages. + * @param message Assertion message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dataform.v1beta1.CompilationResultAction.IAssertion, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Assertion message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Assertion + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.CompilationResultAction.Assertion; + + /** + * Decodes an Assertion message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Assertion + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.CompilationResultAction.Assertion; + + /** + * Verifies an Assertion message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an Assertion message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Assertion + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.CompilationResultAction.Assertion; + + /** + * Creates a plain object from an Assertion message. Also converts values to other types if specified. + * @param message Assertion + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dataform.v1beta1.CompilationResultAction.Assertion, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Assertion to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Assertion + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Declaration. */ + interface IDeclaration { + + /** Declaration relationDescriptor */ + relationDescriptor?: (google.cloud.dataform.v1beta1.IRelationDescriptor|null); + } + + /** Represents a Declaration. */ + class Declaration implements IDeclaration { + + /** + * Constructs a new Declaration. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dataform.v1beta1.CompilationResultAction.IDeclaration); + + /** Declaration relationDescriptor. */ + public relationDescriptor?: (google.cloud.dataform.v1beta1.IRelationDescriptor|null); + + /** + * Creates a new Declaration instance using the specified properties. + * @param [properties] Properties to set + * @returns Declaration instance + */ + public static create(properties?: google.cloud.dataform.v1beta1.CompilationResultAction.IDeclaration): google.cloud.dataform.v1beta1.CompilationResultAction.Declaration; + + /** + * Encodes the specified Declaration message. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResultAction.Declaration.verify|verify} messages. + * @param message Declaration message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dataform.v1beta1.CompilationResultAction.IDeclaration, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Declaration message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResultAction.Declaration.verify|verify} messages. + * @param message Declaration message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dataform.v1beta1.CompilationResultAction.IDeclaration, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Declaration message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Declaration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.CompilationResultAction.Declaration; + + /** + * Decodes a Declaration message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Declaration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.CompilationResultAction.Declaration; + + /** + * Verifies a Declaration message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Declaration message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Declaration + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.CompilationResultAction.Declaration; + + /** + * Creates a plain object from a Declaration message. Also converts values to other types if specified. + * @param message Declaration + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dataform.v1beta1.CompilationResultAction.Declaration, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Declaration to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Declaration + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a QueryCompilationResultActionsRequest. */ + interface IQueryCompilationResultActionsRequest { + + /** QueryCompilationResultActionsRequest name */ + name?: (string|null); + + /** QueryCompilationResultActionsRequest pageSize */ + pageSize?: (number|null); + + /** QueryCompilationResultActionsRequest pageToken */ + pageToken?: (string|null); + + /** QueryCompilationResultActionsRequest filter */ + filter?: (string|null); + } + + /** Represents a QueryCompilationResultActionsRequest. */ + class QueryCompilationResultActionsRequest implements IQueryCompilationResultActionsRequest { + + /** + * Constructs a new QueryCompilationResultActionsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dataform.v1beta1.IQueryCompilationResultActionsRequest); + + /** QueryCompilationResultActionsRequest name. */ + public name: string; + + /** QueryCompilationResultActionsRequest pageSize. */ + public pageSize: number; + + /** QueryCompilationResultActionsRequest pageToken. */ + public pageToken: string; + + /** QueryCompilationResultActionsRequest filter. */ + public filter: string; + + /** + * Creates a new QueryCompilationResultActionsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryCompilationResultActionsRequest instance + */ + public static create(properties?: google.cloud.dataform.v1beta1.IQueryCompilationResultActionsRequest): google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest; + + /** + * Encodes the specified QueryCompilationResultActionsRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest.verify|verify} messages. + * @param message QueryCompilationResultActionsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dataform.v1beta1.IQueryCompilationResultActionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified QueryCompilationResultActionsRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest.verify|verify} messages. + * @param message QueryCompilationResultActionsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IQueryCompilationResultActionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QueryCompilationResultActionsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QueryCompilationResultActionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest; + + /** + * Decodes a QueryCompilationResultActionsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns QueryCompilationResultActionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest; + + /** + * Verifies a QueryCompilationResultActionsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a QueryCompilationResultActionsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QueryCompilationResultActionsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest; + + /** + * Creates a plain object from a QueryCompilationResultActionsRequest message. Also converts values to other types if specified. + * @param message QueryCompilationResultActionsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Relation relationDescriptor */ - relationDescriptor?: (google.cloud.dataform.v1beta1.IRelationDescriptor|null); + /** + * Converts this QueryCompilationResultActionsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Relation relationType */ - relationType?: (google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType|keyof typeof google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType|null); + /** + * Gets the default type url for QueryCompilationResultActionsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Relation selectQuery */ - selectQuery?: (string|null); + /** Properties of a QueryCompilationResultActionsResponse. */ + interface IQueryCompilationResultActionsResponse { - /** Relation preOperations */ - preOperations?: (string[]|null); + /** QueryCompilationResultActionsResponse compilationResultActions */ + compilationResultActions?: (google.cloud.dataform.v1beta1.ICompilationResultAction[]|null); - /** Relation postOperations */ - postOperations?: (string[]|null); + /** QueryCompilationResultActionsResponse nextPageToken */ + nextPageToken?: (string|null); + } - /** Relation incrementalTableConfig */ - incrementalTableConfig?: (google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IIncrementalTableConfig|null); + /** Represents a QueryCompilationResultActionsResponse. */ + class QueryCompilationResultActionsResponse implements IQueryCompilationResultActionsResponse { - /** Relation partitionExpression */ - partitionExpression?: (string|null); + /** + * Constructs a new QueryCompilationResultActionsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dataform.v1beta1.IQueryCompilationResultActionsResponse); - /** Relation clusterExpressions */ - clusterExpressions?: (string[]|null); + /** QueryCompilationResultActionsResponse compilationResultActions. */ + public compilationResultActions: google.cloud.dataform.v1beta1.ICompilationResultAction[]; - /** Relation partitionExpirationDays */ - partitionExpirationDays?: (number|null); + /** QueryCompilationResultActionsResponse nextPageToken. */ + public nextPageToken: string; - /** Relation requirePartitionFilter */ - requirePartitionFilter?: (boolean|null); + /** + * Creates a new QueryCompilationResultActionsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryCompilationResultActionsResponse instance + */ + public static create(properties?: google.cloud.dataform.v1beta1.IQueryCompilationResultActionsResponse): google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse; - /** Relation additionalOptions */ - additionalOptions?: ({ [k: string]: string }|null); - } + /** + * Encodes the specified QueryCompilationResultActionsResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse.verify|verify} messages. + * @param message QueryCompilationResultActionsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dataform.v1beta1.IQueryCompilationResultActionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents a Relation. */ - class Relation implements IRelation { + /** + * Encodes the specified QueryCompilationResultActionsResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse.verify|verify} messages. + * @param message QueryCompilationResultActionsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IQueryCompilationResultActionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new Relation. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dataform.v1beta1.CompilationResultAction.IRelation); + /** + * Decodes a QueryCompilationResultActionsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QueryCompilationResultActionsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse; - /** Relation dependencyTargets. */ - public dependencyTargets: google.cloud.dataform.v1beta1.ITarget[]; + /** + * Decodes a QueryCompilationResultActionsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns QueryCompilationResultActionsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse; - /** Relation disabled. */ - public disabled: boolean; + /** + * Verifies a QueryCompilationResultActionsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Relation tags. */ - public tags: string[]; + /** + * Creates a QueryCompilationResultActionsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QueryCompilationResultActionsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse; - /** Relation relationDescriptor. */ - public relationDescriptor?: (google.cloud.dataform.v1beta1.IRelationDescriptor|null); + /** + * Creates a plain object from a QueryCompilationResultActionsResponse message. Also converts values to other types if specified. + * @param message QueryCompilationResultActionsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Relation relationType. */ - public relationType: (google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType|keyof typeof google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType); + /** + * Converts this QueryCompilationResultActionsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Relation selectQuery. */ - public selectQuery: string; + /** + * Gets the default type url for QueryCompilationResultActionsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Relation preOperations. */ - public preOperations: string[]; + /** Properties of a WorkflowConfig. */ + interface IWorkflowConfig { - /** Relation postOperations. */ - public postOperations: string[]; + /** WorkflowConfig name */ + name?: (string|null); - /** Relation incrementalTableConfig. */ - public incrementalTableConfig?: (google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IIncrementalTableConfig|null); + /** WorkflowConfig releaseConfig */ + releaseConfig?: (string|null); - /** Relation partitionExpression. */ - public partitionExpression: string; + /** WorkflowConfig invocationConfig */ + invocationConfig?: (google.cloud.dataform.v1beta1.IInvocationConfig|null); - /** Relation clusterExpressions. */ - public clusterExpressions: string[]; + /** WorkflowConfig cronSchedule */ + cronSchedule?: (string|null); - /** Relation partitionExpirationDays. */ - public partitionExpirationDays: number; + /** WorkflowConfig timeZone */ + timeZone?: (string|null); - /** Relation requirePartitionFilter. */ - public requirePartitionFilter: boolean; + /** WorkflowConfig recentScheduledExecutionRecords */ + recentScheduledExecutionRecords?: (google.cloud.dataform.v1beta1.WorkflowConfig.IScheduledExecutionRecord[]|null); + } - /** Relation additionalOptions. */ - public additionalOptions: { [k: string]: string }; + /** Represents a WorkflowConfig. */ + class WorkflowConfig implements IWorkflowConfig { + + /** + * Constructs a new WorkflowConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dataform.v1beta1.IWorkflowConfig); + + /** WorkflowConfig name. */ + public name: string; + + /** WorkflowConfig releaseConfig. */ + public releaseConfig: string; + + /** WorkflowConfig invocationConfig. */ + public invocationConfig?: (google.cloud.dataform.v1beta1.IInvocationConfig|null); + + /** WorkflowConfig cronSchedule. */ + public cronSchedule: string; + + /** WorkflowConfig timeZone. */ + public timeZone: string; + + /** WorkflowConfig recentScheduledExecutionRecords. */ + public recentScheduledExecutionRecords: google.cloud.dataform.v1beta1.WorkflowConfig.IScheduledExecutionRecord[]; + + /** + * Creates a new WorkflowConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowConfig instance + */ + public static create(properties?: google.cloud.dataform.v1beta1.IWorkflowConfig): google.cloud.dataform.v1beta1.WorkflowConfig; + + /** + * Encodes the specified WorkflowConfig message. Does not implicitly {@link google.cloud.dataform.v1beta1.WorkflowConfig.verify|verify} messages. + * @param message WorkflowConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dataform.v1beta1.IWorkflowConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified WorkflowConfig message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.WorkflowConfig.verify|verify} messages. + * @param message WorkflowConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IWorkflowConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.WorkflowConfig; + + /** + * Decodes a WorkflowConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns WorkflowConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.WorkflowConfig; + + /** + * Verifies a WorkflowConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a WorkflowConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns WorkflowConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.WorkflowConfig; + + /** + * Creates a plain object from a WorkflowConfig message. Also converts values to other types if specified. + * @param message WorkflowConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dataform.v1beta1.WorkflowConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this WorkflowConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for WorkflowConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace WorkflowConfig { + + /** Properties of a ScheduledExecutionRecord. */ + interface IScheduledExecutionRecord { + + /** ScheduledExecutionRecord executionTime */ + executionTime?: (google.protobuf.ITimestamp|null); + + /** ScheduledExecutionRecord workflowInvocation */ + workflowInvocation?: (string|null); + + /** ScheduledExecutionRecord errorStatus */ + errorStatus?: (google.rpc.IStatus|null); + } + + /** Represents a ScheduledExecutionRecord. */ + class ScheduledExecutionRecord implements IScheduledExecutionRecord { /** - * Creates a new Relation instance using the specified properties. + * Constructs a new ScheduledExecutionRecord. * @param [properties] Properties to set - * @returns Relation instance */ - public static create(properties?: google.cloud.dataform.v1beta1.CompilationResultAction.IRelation): google.cloud.dataform.v1beta1.CompilationResultAction.Relation; + constructor(properties?: google.cloud.dataform.v1beta1.WorkflowConfig.IScheduledExecutionRecord); + + /** ScheduledExecutionRecord executionTime. */ + public executionTime?: (google.protobuf.ITimestamp|null); + + /** ScheduledExecutionRecord workflowInvocation. */ + public workflowInvocation?: (string|null); + + /** ScheduledExecutionRecord errorStatus. */ + public errorStatus?: (google.rpc.IStatus|null); + + /** ScheduledExecutionRecord result. */ + public result?: ("workflowInvocation"|"errorStatus"); /** - * Encodes the specified Relation message. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResultAction.Relation.verify|verify} messages. - * @param message Relation message or plain object to encode + * Creates a new ScheduledExecutionRecord instance using the specified properties. + * @param [properties] Properties to set + * @returns ScheduledExecutionRecord instance + */ + public static create(properties?: google.cloud.dataform.v1beta1.WorkflowConfig.IScheduledExecutionRecord): google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord; + + /** + * Encodes the specified ScheduledExecutionRecord message. Does not implicitly {@link google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord.verify|verify} messages. + * @param message ScheduledExecutionRecord message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dataform.v1beta1.CompilationResultAction.IRelation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dataform.v1beta1.WorkflowConfig.IScheduledExecutionRecord, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Relation message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResultAction.Relation.verify|verify} messages. - * @param message Relation message or plain object to encode + * Encodes the specified ScheduledExecutionRecord message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord.verify|verify} messages. + * @param message ScheduledExecutionRecord message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.CompilationResultAction.IRelation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dataform.v1beta1.WorkflowConfig.IScheduledExecutionRecord, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Relation message from the specified reader or buffer. + * Decodes a ScheduledExecutionRecord message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Relation + * @returns ScheduledExecutionRecord * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.CompilationResultAction.Relation; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord; /** - * Decodes a Relation message from the specified reader or buffer, length delimited. + * Decodes a ScheduledExecutionRecord message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Relation + * @returns ScheduledExecutionRecord * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.CompilationResultAction.Relation; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord; /** - * Verifies a Relation message. + * Verifies a ScheduledExecutionRecord message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Relation message from a plain object. Also converts values to their respective internal types. + * Creates a ScheduledExecutionRecord message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Relation + * @returns ScheduledExecutionRecord */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.CompilationResultAction.Relation; + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord; /** - * Creates a plain object from a Relation message. Also converts values to other types if specified. - * @param message Relation + * Creates a plain object from a ScheduledExecutionRecord message. Also converts values to other types if specified. + * @param message ScheduledExecutionRecord * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dataform.v1beta1.CompilationResultAction.Relation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Relation to JSON. + * Converts this ScheduledExecutionRecord to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Relation + * Gets the default type url for ScheduledExecutionRecord * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } + } - namespace Relation { + /** Properties of an InvocationConfig. */ + interface IInvocationConfig { - /** RelationType enum. */ - enum RelationType { - RELATION_TYPE_UNSPECIFIED = 0, - TABLE = 1, - VIEW = 2, - INCREMENTAL_TABLE = 3, - MATERIALIZED_VIEW = 4 - } + /** InvocationConfig includedTargets */ + includedTargets?: (google.cloud.dataform.v1beta1.ITarget[]|null); - /** Properties of an IncrementalTableConfig. */ - interface IIncrementalTableConfig { + /** InvocationConfig includedTags */ + includedTags?: (string[]|null); - /** IncrementalTableConfig incrementalSelectQuery */ - incrementalSelectQuery?: (string|null); + /** InvocationConfig transitiveDependenciesIncluded */ + transitiveDependenciesIncluded?: (boolean|null); - /** IncrementalTableConfig refreshDisabled */ - refreshDisabled?: (boolean|null); + /** InvocationConfig transitiveDependentsIncluded */ + transitiveDependentsIncluded?: (boolean|null); - /** IncrementalTableConfig uniqueKeyParts */ - uniqueKeyParts?: (string[]|null); + /** InvocationConfig fullyRefreshIncrementalTablesEnabled */ + fullyRefreshIncrementalTablesEnabled?: (boolean|null); - /** IncrementalTableConfig updatePartitionFilter */ - updatePartitionFilter?: (string|null); + /** InvocationConfig serviceAccount */ + serviceAccount?: (string|null); + } - /** IncrementalTableConfig incrementalPreOperations */ - incrementalPreOperations?: (string[]|null); + /** Represents an InvocationConfig. */ + class InvocationConfig implements IInvocationConfig { - /** IncrementalTableConfig incrementalPostOperations */ - incrementalPostOperations?: (string[]|null); - } + /** + * Constructs a new InvocationConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dataform.v1beta1.IInvocationConfig); - /** Represents an IncrementalTableConfig. */ - class IncrementalTableConfig implements IIncrementalTableConfig { + /** InvocationConfig includedTargets. */ + public includedTargets: google.cloud.dataform.v1beta1.ITarget[]; - /** - * Constructs a new IncrementalTableConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IIncrementalTableConfig); + /** InvocationConfig includedTags. */ + public includedTags: string[]; - /** IncrementalTableConfig incrementalSelectQuery. */ - public incrementalSelectQuery: string; + /** InvocationConfig transitiveDependenciesIncluded. */ + public transitiveDependenciesIncluded: boolean; - /** IncrementalTableConfig refreshDisabled. */ - public refreshDisabled: boolean; + /** InvocationConfig transitiveDependentsIncluded. */ + public transitiveDependentsIncluded: boolean; - /** IncrementalTableConfig uniqueKeyParts. */ - public uniqueKeyParts: string[]; + /** InvocationConfig fullyRefreshIncrementalTablesEnabled. */ + public fullyRefreshIncrementalTablesEnabled: boolean; - /** IncrementalTableConfig updatePartitionFilter. */ - public updatePartitionFilter: string; + /** InvocationConfig serviceAccount. */ + public serviceAccount: string; - /** IncrementalTableConfig incrementalPreOperations. */ - public incrementalPreOperations: string[]; + /** + * Creates a new InvocationConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns InvocationConfig instance + */ + public static create(properties?: google.cloud.dataform.v1beta1.IInvocationConfig): google.cloud.dataform.v1beta1.InvocationConfig; - /** IncrementalTableConfig incrementalPostOperations. */ - public incrementalPostOperations: string[]; + /** + * Encodes the specified InvocationConfig message. Does not implicitly {@link google.cloud.dataform.v1beta1.InvocationConfig.verify|verify} messages. + * @param message InvocationConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dataform.v1beta1.IInvocationConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new IncrementalTableConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns IncrementalTableConfig instance - */ - public static create(properties?: google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IIncrementalTableConfig): google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig; + /** + * Encodes the specified InvocationConfig message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.InvocationConfig.verify|verify} messages. + * @param message InvocationConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IInvocationConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified IncrementalTableConfig message. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig.verify|verify} messages. - * @param message IncrementalTableConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IIncrementalTableConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes an InvocationConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InvocationConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.InvocationConfig; - /** - * Encodes the specified IncrementalTableConfig message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig.verify|verify} messages. - * @param message IncrementalTableConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IIncrementalTableConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes an InvocationConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InvocationConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.InvocationConfig; - /** - * Decodes an IncrementalTableConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns IncrementalTableConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig; + /** + * Verifies an InvocationConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Decodes an IncrementalTableConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns IncrementalTableConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig; + /** + * Creates an InvocationConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InvocationConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.InvocationConfig; - /** - * Verifies an IncrementalTableConfig message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Creates a plain object from an InvocationConfig message. Also converts values to other types if specified. + * @param message InvocationConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dataform.v1beta1.InvocationConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates an IncrementalTableConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns IncrementalTableConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig; + /** + * Converts this InvocationConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a plain object from an IncrementalTableConfig message. Also converts values to other types if specified. - * @param message IncrementalTableConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Gets the default type url for InvocationConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Converts this IncrementalTableConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Properties of a ListWorkflowConfigsRequest. */ + interface IListWorkflowConfigsRequest { - /** - * Gets the default type url for IncrementalTableConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** ListWorkflowConfigsRequest parent */ + parent?: (string|null); - /** Properties of an Operations. */ - interface IOperations { + /** ListWorkflowConfigsRequest pageSize */ + pageSize?: (number|null); - /** Operations dependencyTargets */ - dependencyTargets?: (google.cloud.dataform.v1beta1.ITarget[]|null); + /** ListWorkflowConfigsRequest pageToken */ + pageToken?: (string|null); + } - /** Operations disabled */ - disabled?: (boolean|null); + /** Represents a ListWorkflowConfigsRequest. */ + class ListWorkflowConfigsRequest implements IListWorkflowConfigsRequest { - /** Operations tags */ - tags?: (string[]|null); + /** + * Constructs a new ListWorkflowConfigsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dataform.v1beta1.IListWorkflowConfigsRequest); - /** Operations relationDescriptor */ - relationDescriptor?: (google.cloud.dataform.v1beta1.IRelationDescriptor|null); + /** ListWorkflowConfigsRequest parent. */ + public parent: string; - /** Operations queries */ - queries?: (string[]|null); + /** ListWorkflowConfigsRequest pageSize. */ + public pageSize: number; - /** Operations hasOutput */ - hasOutput?: (boolean|null); - } + /** ListWorkflowConfigsRequest pageToken. */ + public pageToken: string; - /** Represents an Operations. */ - class Operations implements IOperations { + /** + * Creates a new ListWorkflowConfigsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListWorkflowConfigsRequest instance + */ + public static create(properties?: google.cloud.dataform.v1beta1.IListWorkflowConfigsRequest): google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest; - /** - * Constructs a new Operations. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dataform.v1beta1.CompilationResultAction.IOperations); + /** + * Encodes the specified ListWorkflowConfigsRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest.verify|verify} messages. + * @param message ListWorkflowConfigsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dataform.v1beta1.IListWorkflowConfigsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** Operations dependencyTargets. */ - public dependencyTargets: google.cloud.dataform.v1beta1.ITarget[]; + /** + * Encodes the specified ListWorkflowConfigsRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest.verify|verify} messages. + * @param message ListWorkflowConfigsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IListWorkflowConfigsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** Operations disabled. */ - public disabled: boolean; + /** + * Decodes a ListWorkflowConfigsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListWorkflowConfigsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest; - /** Operations tags. */ - public tags: string[]; + /** + * Decodes a ListWorkflowConfigsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListWorkflowConfigsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest; - /** Operations relationDescriptor. */ - public relationDescriptor?: (google.cloud.dataform.v1beta1.IRelationDescriptor|null); + /** + * Verifies a ListWorkflowConfigsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListWorkflowConfigsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListWorkflowConfigsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest; + + /** + * Creates a plain object from a ListWorkflowConfigsRequest message. Also converts values to other types if specified. + * @param message ListWorkflowConfigsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Operations queries. */ - public queries: string[]; + /** + * Converts this ListWorkflowConfigsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Operations hasOutput. */ - public hasOutput: boolean; + /** + * Gets the default type url for ListWorkflowConfigsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a new Operations instance using the specified properties. - * @param [properties] Properties to set - * @returns Operations instance - */ - public static create(properties?: google.cloud.dataform.v1beta1.CompilationResultAction.IOperations): google.cloud.dataform.v1beta1.CompilationResultAction.Operations; + /** Properties of a ListWorkflowConfigsResponse. */ + interface IListWorkflowConfigsResponse { - /** - * Encodes the specified Operations message. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResultAction.Operations.verify|verify} messages. - * @param message Operations message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dataform.v1beta1.CompilationResultAction.IOperations, writer?: $protobuf.Writer): $protobuf.Writer; + /** ListWorkflowConfigsResponse workflowConfigs */ + workflowConfigs?: (google.cloud.dataform.v1beta1.IWorkflowConfig[]|null); - /** - * Encodes the specified Operations message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResultAction.Operations.verify|verify} messages. - * @param message Operations message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.CompilationResultAction.IOperations, writer?: $protobuf.Writer): $protobuf.Writer; + /** ListWorkflowConfigsResponse nextPageToken */ + nextPageToken?: (string|null); - /** - * Decodes an Operations message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Operations - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.CompilationResultAction.Operations; + /** ListWorkflowConfigsResponse unreachable */ + unreachable?: (string[]|null); + } - /** - * Decodes an Operations message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Operations - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.CompilationResultAction.Operations; + /** Represents a ListWorkflowConfigsResponse. */ + class ListWorkflowConfigsResponse implements IListWorkflowConfigsResponse { - /** - * Verifies an Operations message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Constructs a new ListWorkflowConfigsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dataform.v1beta1.IListWorkflowConfigsResponse); - /** - * Creates an Operations message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Operations - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.CompilationResultAction.Operations; + /** ListWorkflowConfigsResponse workflowConfigs. */ + public workflowConfigs: google.cloud.dataform.v1beta1.IWorkflowConfig[]; - /** - * Creates a plain object from an Operations message. Also converts values to other types if specified. - * @param message Operations - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dataform.v1beta1.CompilationResultAction.Operations, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ListWorkflowConfigsResponse nextPageToken. */ + public nextPageToken: string; - /** - * Converts this Operations to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** ListWorkflowConfigsResponse unreachable. */ + public unreachable: string[]; - /** - * Gets the default type url for Operations - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates a new ListWorkflowConfigsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListWorkflowConfigsResponse instance + */ + public static create(properties?: google.cloud.dataform.v1beta1.IListWorkflowConfigsResponse): google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse; - /** Properties of an Assertion. */ - interface IAssertion { + /** + * Encodes the specified ListWorkflowConfigsResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse.verify|verify} messages. + * @param message ListWorkflowConfigsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dataform.v1beta1.IListWorkflowConfigsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** Assertion dependencyTargets */ - dependencyTargets?: (google.cloud.dataform.v1beta1.ITarget[]|null); + /** + * Encodes the specified ListWorkflowConfigsResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse.verify|verify} messages. + * @param message ListWorkflowConfigsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IListWorkflowConfigsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** Assertion parentAction */ - parentAction?: (google.cloud.dataform.v1beta1.ITarget|null); + /** + * Decodes a ListWorkflowConfigsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListWorkflowConfigsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse; - /** Assertion disabled */ - disabled?: (boolean|null); + /** + * Decodes a ListWorkflowConfigsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListWorkflowConfigsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse; - /** Assertion tags */ - tags?: (string[]|null); + /** + * Verifies a ListWorkflowConfigsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Assertion selectQuery */ - selectQuery?: (string|null); + /** + * Creates a ListWorkflowConfigsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListWorkflowConfigsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse; - /** Assertion relationDescriptor */ - relationDescriptor?: (google.cloud.dataform.v1beta1.IRelationDescriptor|null); - } + /** + * Creates a plain object from a ListWorkflowConfigsResponse message. Also converts values to other types if specified. + * @param message ListWorkflowConfigsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Represents an Assertion. */ - class Assertion implements IAssertion { + /** + * Converts this ListWorkflowConfigsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Constructs a new Assertion. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dataform.v1beta1.CompilationResultAction.IAssertion); + /** + * Gets the default type url for ListWorkflowConfigsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Assertion dependencyTargets. */ - public dependencyTargets: google.cloud.dataform.v1beta1.ITarget[]; + /** Properties of a GetWorkflowConfigRequest. */ + interface IGetWorkflowConfigRequest { - /** Assertion parentAction. */ - public parentAction?: (google.cloud.dataform.v1beta1.ITarget|null); + /** GetWorkflowConfigRequest name */ + name?: (string|null); + } - /** Assertion disabled. */ - public disabled: boolean; + /** Represents a GetWorkflowConfigRequest. */ + class GetWorkflowConfigRequest implements IGetWorkflowConfigRequest { - /** Assertion tags. */ - public tags: string[]; + /** + * Constructs a new GetWorkflowConfigRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dataform.v1beta1.IGetWorkflowConfigRequest); - /** Assertion selectQuery. */ - public selectQuery: string; + /** GetWorkflowConfigRequest name. */ + public name: string; - /** Assertion relationDescriptor. */ - public relationDescriptor?: (google.cloud.dataform.v1beta1.IRelationDescriptor|null); + /** + * Creates a new GetWorkflowConfigRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetWorkflowConfigRequest instance + */ + public static create(properties?: google.cloud.dataform.v1beta1.IGetWorkflowConfigRequest): google.cloud.dataform.v1beta1.GetWorkflowConfigRequest; - /** - * Creates a new Assertion instance using the specified properties. - * @param [properties] Properties to set - * @returns Assertion instance - */ - public static create(properties?: google.cloud.dataform.v1beta1.CompilationResultAction.IAssertion): google.cloud.dataform.v1beta1.CompilationResultAction.Assertion; + /** + * Encodes the specified GetWorkflowConfigRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.GetWorkflowConfigRequest.verify|verify} messages. + * @param message GetWorkflowConfigRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dataform.v1beta1.IGetWorkflowConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Assertion message. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.verify|verify} messages. - * @param message Assertion message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dataform.v1beta1.CompilationResultAction.IAssertion, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified GetWorkflowConfigRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.GetWorkflowConfigRequest.verify|verify} messages. + * @param message GetWorkflowConfigRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IGetWorkflowConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Assertion message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.verify|verify} messages. - * @param message Assertion message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.CompilationResultAction.IAssertion, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a GetWorkflowConfigRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetWorkflowConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.GetWorkflowConfigRequest; - /** - * Decodes an Assertion message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Assertion - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.CompilationResultAction.Assertion; + /** + * Decodes a GetWorkflowConfigRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetWorkflowConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.GetWorkflowConfigRequest; - /** - * Decodes an Assertion message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Assertion - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.CompilationResultAction.Assertion; + /** + * Verifies a GetWorkflowConfigRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Verifies an Assertion message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Creates a GetWorkflowConfigRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetWorkflowConfigRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.GetWorkflowConfigRequest; - /** - * Creates an Assertion message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Assertion - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.CompilationResultAction.Assertion; + /** + * Creates a plain object from a GetWorkflowConfigRequest message. Also converts values to other types if specified. + * @param message GetWorkflowConfigRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dataform.v1beta1.GetWorkflowConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a plain object from an Assertion message. Also converts values to other types if specified. - * @param message Assertion - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dataform.v1beta1.CompilationResultAction.Assertion, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Converts this GetWorkflowConfigRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Converts this Assertion to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Gets the default type url for GetWorkflowConfigRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Gets the default type url for Assertion - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Properties of a CreateWorkflowConfigRequest. */ + interface ICreateWorkflowConfigRequest { - /** Properties of a Declaration. */ - interface IDeclaration { + /** CreateWorkflowConfigRequest parent */ + parent?: (string|null); - /** Declaration relationDescriptor */ - relationDescriptor?: (google.cloud.dataform.v1beta1.IRelationDescriptor|null); - } + /** CreateWorkflowConfigRequest workflowConfig */ + workflowConfig?: (google.cloud.dataform.v1beta1.IWorkflowConfig|null); - /** Represents a Declaration. */ - class Declaration implements IDeclaration { + /** CreateWorkflowConfigRequest workflowConfigId */ + workflowConfigId?: (string|null); + } - /** - * Constructs a new Declaration. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dataform.v1beta1.CompilationResultAction.IDeclaration); + /** Represents a CreateWorkflowConfigRequest. */ + class CreateWorkflowConfigRequest implements ICreateWorkflowConfigRequest { - /** Declaration relationDescriptor. */ - public relationDescriptor?: (google.cloud.dataform.v1beta1.IRelationDescriptor|null); + /** + * Constructs a new CreateWorkflowConfigRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dataform.v1beta1.ICreateWorkflowConfigRequest); - /** - * Creates a new Declaration instance using the specified properties. - * @param [properties] Properties to set - * @returns Declaration instance - */ - public static create(properties?: google.cloud.dataform.v1beta1.CompilationResultAction.IDeclaration): google.cloud.dataform.v1beta1.CompilationResultAction.Declaration; + /** CreateWorkflowConfigRequest parent. */ + public parent: string; - /** - * Encodes the specified Declaration message. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResultAction.Declaration.verify|verify} messages. - * @param message Declaration message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dataform.v1beta1.CompilationResultAction.IDeclaration, writer?: $protobuf.Writer): $protobuf.Writer; + /** CreateWorkflowConfigRequest workflowConfig. */ + public workflowConfig?: (google.cloud.dataform.v1beta1.IWorkflowConfig|null); - /** - * Encodes the specified Declaration message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResultAction.Declaration.verify|verify} messages. - * @param message Declaration message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.CompilationResultAction.IDeclaration, writer?: $protobuf.Writer): $protobuf.Writer; + /** CreateWorkflowConfigRequest workflowConfigId. */ + public workflowConfigId: string; - /** - * Decodes a Declaration message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Declaration - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.CompilationResultAction.Declaration; + /** + * Creates a new CreateWorkflowConfigRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateWorkflowConfigRequest instance + */ + public static create(properties?: google.cloud.dataform.v1beta1.ICreateWorkflowConfigRequest): google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest; - /** - * Decodes a Declaration message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Declaration - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.CompilationResultAction.Declaration; + /** + * Encodes the specified CreateWorkflowConfigRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest.verify|verify} messages. + * @param message CreateWorkflowConfigRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dataform.v1beta1.ICreateWorkflowConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a Declaration message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Encodes the specified CreateWorkflowConfigRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest.verify|verify} messages. + * @param message CreateWorkflowConfigRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dataform.v1beta1.ICreateWorkflowConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a Declaration message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Declaration - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.CompilationResultAction.Declaration; + /** + * Decodes a CreateWorkflowConfigRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateWorkflowConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest; - /** - * Creates a plain object from a Declaration message. Also converts values to other types if specified. - * @param message Declaration - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dataform.v1beta1.CompilationResultAction.Declaration, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a CreateWorkflowConfigRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateWorkflowConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest; - /** - * Converts this Declaration to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Verifies a CreateWorkflowConfigRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Gets the default type url for Declaration - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** + * Creates a CreateWorkflowConfigRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateWorkflowConfigRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest; - /** Properties of a QueryCompilationResultActionsRequest. */ - interface IQueryCompilationResultActionsRequest { + /** + * Creates a plain object from a CreateWorkflowConfigRequest message. Also converts values to other types if specified. + * @param message CreateWorkflowConfigRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** QueryCompilationResultActionsRequest name */ - name?: (string|null); + /** + * Converts this CreateWorkflowConfigRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** QueryCompilationResultActionsRequest pageSize */ - pageSize?: (number|null); + /** + * Gets the default type url for CreateWorkflowConfigRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** QueryCompilationResultActionsRequest pageToken */ - pageToken?: (string|null); + /** Properties of an UpdateWorkflowConfigRequest. */ + interface IUpdateWorkflowConfigRequest { - /** QueryCompilationResultActionsRequest filter */ - filter?: (string|null); + /** UpdateWorkflowConfigRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + + /** UpdateWorkflowConfigRequest workflowConfig */ + workflowConfig?: (google.cloud.dataform.v1beta1.IWorkflowConfig|null); } - /** Represents a QueryCompilationResultActionsRequest. */ - class QueryCompilationResultActionsRequest implements IQueryCompilationResultActionsRequest { + /** Represents an UpdateWorkflowConfigRequest. */ + class UpdateWorkflowConfigRequest implements IUpdateWorkflowConfigRequest { /** - * Constructs a new QueryCompilationResultActionsRequest. + * Constructs a new UpdateWorkflowConfigRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dataform.v1beta1.IQueryCompilationResultActionsRequest); - - /** QueryCompilationResultActionsRequest name. */ - public name: string; - - /** QueryCompilationResultActionsRequest pageSize. */ - public pageSize: number; + constructor(properties?: google.cloud.dataform.v1beta1.IUpdateWorkflowConfigRequest); - /** QueryCompilationResultActionsRequest pageToken. */ - public pageToken: string; + /** UpdateWorkflowConfigRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); - /** QueryCompilationResultActionsRequest filter. */ - public filter: string; + /** UpdateWorkflowConfigRequest workflowConfig. */ + public workflowConfig?: (google.cloud.dataform.v1beta1.IWorkflowConfig|null); /** - * Creates a new QueryCompilationResultActionsRequest instance using the specified properties. + * Creates a new UpdateWorkflowConfigRequest instance using the specified properties. * @param [properties] Properties to set - * @returns QueryCompilationResultActionsRequest instance + * @returns UpdateWorkflowConfigRequest instance */ - public static create(properties?: google.cloud.dataform.v1beta1.IQueryCompilationResultActionsRequest): google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest; + public static create(properties?: google.cloud.dataform.v1beta1.IUpdateWorkflowConfigRequest): google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest; /** - * Encodes the specified QueryCompilationResultActionsRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest.verify|verify} messages. - * @param message QueryCompilationResultActionsRequest message or plain object to encode + * Encodes the specified UpdateWorkflowConfigRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest.verify|verify} messages. + * @param message UpdateWorkflowConfigRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dataform.v1beta1.IQueryCompilationResultActionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dataform.v1beta1.IUpdateWorkflowConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryCompilationResultActionsRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest.verify|verify} messages. - * @param message QueryCompilationResultActionsRequest message or plain object to encode + * Encodes the specified UpdateWorkflowConfigRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest.verify|verify} messages. + * @param message UpdateWorkflowConfigRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.IQueryCompilationResultActionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IUpdateWorkflowConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryCompilationResultActionsRequest message from the specified reader or buffer. + * Decodes an UpdateWorkflowConfigRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryCompilationResultActionsRequest + * @returns UpdateWorkflowConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest; /** - * Decodes a QueryCompilationResultActionsRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateWorkflowConfigRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryCompilationResultActionsRequest + * @returns UpdateWorkflowConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest; /** - * Verifies a QueryCompilationResultActionsRequest message. + * Verifies an UpdateWorkflowConfigRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryCompilationResultActionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateWorkflowConfigRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryCompilationResultActionsRequest + * @returns UpdateWorkflowConfigRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest; /** - * Creates a plain object from a QueryCompilationResultActionsRequest message. Also converts values to other types if specified. - * @param message QueryCompilationResultActionsRequest + * Creates a plain object from an UpdateWorkflowConfigRequest message. Also converts values to other types if specified. + * @param message UpdateWorkflowConfigRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryCompilationResultActionsRequest to JSON. + * Converts this UpdateWorkflowConfigRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for QueryCompilationResultActionsRequest + * Gets the default type url for UpdateWorkflowConfigRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a QueryCompilationResultActionsResponse. */ - interface IQueryCompilationResultActionsResponse { - - /** QueryCompilationResultActionsResponse compilationResultActions */ - compilationResultActions?: (google.cloud.dataform.v1beta1.ICompilationResultAction[]|null); + /** Properties of a DeleteWorkflowConfigRequest. */ + interface IDeleteWorkflowConfigRequest { - /** QueryCompilationResultActionsResponse nextPageToken */ - nextPageToken?: (string|null); + /** DeleteWorkflowConfigRequest name */ + name?: (string|null); } - /** Represents a QueryCompilationResultActionsResponse. */ - class QueryCompilationResultActionsResponse implements IQueryCompilationResultActionsResponse { + /** Represents a DeleteWorkflowConfigRequest. */ + class DeleteWorkflowConfigRequest implements IDeleteWorkflowConfigRequest { /** - * Constructs a new QueryCompilationResultActionsResponse. + * Constructs a new DeleteWorkflowConfigRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dataform.v1beta1.IQueryCompilationResultActionsResponse); - - /** QueryCompilationResultActionsResponse compilationResultActions. */ - public compilationResultActions: google.cloud.dataform.v1beta1.ICompilationResultAction[]; + constructor(properties?: google.cloud.dataform.v1beta1.IDeleteWorkflowConfigRequest); - /** QueryCompilationResultActionsResponse nextPageToken. */ - public nextPageToken: string; + /** DeleteWorkflowConfigRequest name. */ + public name: string; /** - * Creates a new QueryCompilationResultActionsResponse instance using the specified properties. + * Creates a new DeleteWorkflowConfigRequest instance using the specified properties. * @param [properties] Properties to set - * @returns QueryCompilationResultActionsResponse instance + * @returns DeleteWorkflowConfigRequest instance */ - public static create(properties?: google.cloud.dataform.v1beta1.IQueryCompilationResultActionsResponse): google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse; + public static create(properties?: google.cloud.dataform.v1beta1.IDeleteWorkflowConfigRequest): google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest; /** - * Encodes the specified QueryCompilationResultActionsResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse.verify|verify} messages. - * @param message QueryCompilationResultActionsResponse message or plain object to encode + * Encodes the specified DeleteWorkflowConfigRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest.verify|verify} messages. + * @param message DeleteWorkflowConfigRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dataform.v1beta1.IQueryCompilationResultActionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dataform.v1beta1.IDeleteWorkflowConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryCompilationResultActionsResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse.verify|verify} messages. - * @param message QueryCompilationResultActionsResponse message or plain object to encode + * Encodes the specified DeleteWorkflowConfigRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest.verify|verify} messages. + * @param message DeleteWorkflowConfigRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.IQueryCompilationResultActionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dataform.v1beta1.IDeleteWorkflowConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryCompilationResultActionsResponse message from the specified reader or buffer. + * Decodes a DeleteWorkflowConfigRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryCompilationResultActionsResponse + * @returns DeleteWorkflowConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest; /** - * Decodes a QueryCompilationResultActionsResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteWorkflowConfigRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryCompilationResultActionsResponse + * @returns DeleteWorkflowConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest; /** - * Verifies a QueryCompilationResultActionsResponse message. + * Verifies a DeleteWorkflowConfigRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryCompilationResultActionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteWorkflowConfigRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryCompilationResultActionsResponse + * @returns DeleteWorkflowConfigRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest; /** - * Creates a plain object from a QueryCompilationResultActionsResponse message. Also converts values to other types if specified. - * @param message QueryCompilationResultActionsResponse + * Creates a plain object from a DeleteWorkflowConfigRequest message. Also converts values to other types if specified. + * @param message DeleteWorkflowConfigRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryCompilationResultActionsResponse to JSON. + * Converts this DeleteWorkflowConfigRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for QueryCompilationResultActionsResponse + * Gets the default type url for DeleteWorkflowConfigRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ @@ -16570,8 +20493,11 @@ export namespace google { /** WorkflowInvocation compilationResult */ compilationResult?: (string|null); + /** WorkflowInvocation workflowConfig */ + workflowConfig?: (string|null); + /** WorkflowInvocation invocationConfig */ - invocationConfig?: (google.cloud.dataform.v1beta1.WorkflowInvocation.IInvocationConfig|null); + invocationConfig?: (google.cloud.dataform.v1beta1.IInvocationConfig|null); /** WorkflowInvocation state */ state?: (google.cloud.dataform.v1beta1.WorkflowInvocation.State|keyof typeof google.cloud.dataform.v1beta1.WorkflowInvocation.State|null); @@ -16593,10 +20519,13 @@ export namespace google { public name: string; /** WorkflowInvocation compilationResult. */ - public compilationResult: string; + public compilationResult?: (string|null); + + /** WorkflowInvocation workflowConfig. */ + public workflowConfig?: (string|null); /** WorkflowInvocation invocationConfig. */ - public invocationConfig?: (google.cloud.dataform.v1beta1.WorkflowInvocation.IInvocationConfig|null); + public invocationConfig?: (google.cloud.dataform.v1beta1.IInvocationConfig|null); /** WorkflowInvocation state. */ public state: (google.cloud.dataform.v1beta1.WorkflowInvocation.State|keyof typeof google.cloud.dataform.v1beta1.WorkflowInvocation.State); @@ -16604,6 +20533,9 @@ export namespace google { /** WorkflowInvocation invocationTiming. */ public invocationTiming?: (google.type.IInterval|null); + /** WorkflowInvocation compilationSource. */ + public compilationSource?: ("compilationResult"|"workflowConfig"); + /** * Creates a new WorkflowInvocation instance using the specified properties. * @param [properties] Properties to set @@ -16684,127 +20616,6 @@ export namespace google { namespace WorkflowInvocation { - /** Properties of an InvocationConfig. */ - interface IInvocationConfig { - - /** InvocationConfig includedTargets */ - includedTargets?: (google.cloud.dataform.v1beta1.ITarget[]|null); - - /** InvocationConfig includedTags */ - includedTags?: (string[]|null); - - /** InvocationConfig transitiveDependenciesIncluded */ - transitiveDependenciesIncluded?: (boolean|null); - - /** InvocationConfig transitiveDependentsIncluded */ - transitiveDependentsIncluded?: (boolean|null); - - /** InvocationConfig fullyRefreshIncrementalTablesEnabled */ - fullyRefreshIncrementalTablesEnabled?: (boolean|null); - } - - /** Represents an InvocationConfig. */ - class InvocationConfig implements IInvocationConfig { - - /** - * Constructs a new InvocationConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dataform.v1beta1.WorkflowInvocation.IInvocationConfig); - - /** InvocationConfig includedTargets. */ - public includedTargets: google.cloud.dataform.v1beta1.ITarget[]; - - /** InvocationConfig includedTags. */ - public includedTags: string[]; - - /** InvocationConfig transitiveDependenciesIncluded. */ - public transitiveDependenciesIncluded: boolean; - - /** InvocationConfig transitiveDependentsIncluded. */ - public transitiveDependentsIncluded: boolean; - - /** InvocationConfig fullyRefreshIncrementalTablesEnabled. */ - public fullyRefreshIncrementalTablesEnabled: boolean; - - /** - * Creates a new InvocationConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns InvocationConfig instance - */ - public static create(properties?: google.cloud.dataform.v1beta1.WorkflowInvocation.IInvocationConfig): google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig; - - /** - * Encodes the specified InvocationConfig message. Does not implicitly {@link google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig.verify|verify} messages. - * @param message InvocationConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dataform.v1beta1.WorkflowInvocation.IInvocationConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified InvocationConfig message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig.verify|verify} messages. - * @param message InvocationConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dataform.v1beta1.WorkflowInvocation.IInvocationConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an InvocationConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns InvocationConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig; - - /** - * Decodes an InvocationConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns InvocationConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig; - - /** - * Verifies an InvocationConfig message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an InvocationConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns InvocationConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig; - - /** - * Creates a plain object from an InvocationConfig message. Also converts values to other types if specified. - * @param message InvocationConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this InvocationConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for InvocationConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - /** State enum. */ enum State { STATE_UNSPECIFIED = 0, @@ -16827,6 +20638,12 @@ export namespace google { /** ListWorkflowInvocationsRequest pageToken */ pageToken?: (string|null); + + /** ListWorkflowInvocationsRequest orderBy */ + orderBy?: (string|null); + + /** ListWorkflowInvocationsRequest filter */ + filter?: (string|null); } /** Represents a ListWorkflowInvocationsRequest. */ @@ -16847,6 +20664,12 @@ export namespace google { /** ListWorkflowInvocationsRequest pageToken. */ public pageToken: string; + /** ListWorkflowInvocationsRequest orderBy. */ + public orderBy: string; + + /** ListWorkflowInvocationsRequest filter. */ + public filter: string; + /** * Creates a new ListWorkflowInvocationsRequest instance using the specified properties. * @param [properties] Properties to set @@ -23741,6 +27564,109 @@ export namespace google { */ public static getTypeUrl(typeUrlPrefix?: string): string; } + + /** Properties of an Any. */ + interface IAny { + + /** Any type_url */ + type_url?: (string|null); + + /** Any value */ + value?: (Uint8Array|string|null); + } + + /** Represents an Any. */ + class Any implements IAny { + + /** + * Constructs a new Any. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IAny); + + /** Any type_url. */ + public type_url: string; + + /** Any value. */ + public value: (Uint8Array|string); + + /** + * Creates a new Any instance using the specified properties. + * @param [properties] Properties to set + * @returns Any instance + */ + public static create(properties?: google.protobuf.IAny): google.protobuf.Any; + + /** + * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. + * @param message Any message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. + * @param message Any message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Any message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Any + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Any; + + /** + * Decodes an Any message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Any + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Any; + + /** + * Verifies an Any message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an Any message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Any + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.Any; + + /** + * Creates a plain object from an Any message. Also converts values to other types if specified. + * @param message Any + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.Any, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Any to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Any + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } /** Namespace type. */ @@ -23849,4 +27775,117 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } } + + /** Namespace rpc. */ + namespace rpc { + + /** Properties of a Status. */ + interface IStatus { + + /** Status code */ + code?: (number|null); + + /** Status message */ + message?: (string|null); + + /** Status details */ + details?: (google.protobuf.IAny[]|null); + } + + /** Represents a Status. */ + class Status implements IStatus { + + /** + * Constructs a new Status. + * @param [properties] Properties to set + */ + constructor(properties?: google.rpc.IStatus); + + /** Status code. */ + public code: number; + + /** Status message. */ + public message: string; + + /** Status details. */ + public details: google.protobuf.IAny[]; + + /** + * Creates a new Status instance using the specified properties. + * @param [properties] Properties to set + * @returns Status instance + */ + public static create(properties?: google.rpc.IStatus): google.rpc.Status; + + /** + * Encodes the specified Status message. Does not implicitly {@link google.rpc.Status.verify|verify} messages. + * @param message Status message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Status message, length delimited. Does not implicitly {@link google.rpc.Status.verify|verify} messages. + * @param message Status message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Status message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Status + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.rpc.Status; + + /** + * Decodes a Status message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Status + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.rpc.Status; + + /** + * Verifies a Status message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Status message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Status + */ + public static fromObject(object: { [k: string]: any }): google.rpc.Status; + + /** + * Creates a plain object from a Status message. Also converts values to other types if specified. + * @param message Status + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.rpc.Status, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Status to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Status + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } } diff --git a/packages/google-cloud-dataform/protos/protos.js b/packages/google-cloud-dataform/protos/protos.js index 31d8f2bceb9..9eeaba67fac 100644 --- a/packages/google-cloud-dataform/protos/protos.js +++ b/packages/google-cloud-dataform/protos/protos.js @@ -21017,6 +21017,171 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.dataform.v1beta1.Dataform|commitRepositoryChanges}. + * @memberof google.cloud.dataform.v1beta1.Dataform + * @typedef CommitRepositoryChangesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls CommitRepositoryChanges. + * @function commitRepositoryChanges + * @memberof google.cloud.dataform.v1beta1.Dataform + * @instance + * @param {google.cloud.dataform.v1beta1.ICommitRepositoryChangesRequest} request CommitRepositoryChangesRequest message or plain object + * @param {google.cloud.dataform.v1beta1.Dataform.CommitRepositoryChangesCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Dataform.prototype.commitRepositoryChanges = function commitRepositoryChanges(request, callback) { + return this.rpcCall(commitRepositoryChanges, $root.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "CommitRepositoryChanges" }); + + /** + * Calls CommitRepositoryChanges. + * @function commitRepositoryChanges + * @memberof google.cloud.dataform.v1beta1.Dataform + * @instance + * @param {google.cloud.dataform.v1beta1.ICommitRepositoryChangesRequest} request CommitRepositoryChangesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dataform.v1beta1.Dataform|readRepositoryFile}. + * @memberof google.cloud.dataform.v1beta1.Dataform + * @typedef ReadRepositoryFileCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dataform.v1beta1.ReadRepositoryFileResponse} [response] ReadRepositoryFileResponse + */ + + /** + * Calls ReadRepositoryFile. + * @function readRepositoryFile + * @memberof google.cloud.dataform.v1beta1.Dataform + * @instance + * @param {google.cloud.dataform.v1beta1.IReadRepositoryFileRequest} request ReadRepositoryFileRequest message or plain object + * @param {google.cloud.dataform.v1beta1.Dataform.ReadRepositoryFileCallback} callback Node-style callback called with the error, if any, and ReadRepositoryFileResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Dataform.prototype.readRepositoryFile = function readRepositoryFile(request, callback) { + return this.rpcCall(readRepositoryFile, $root.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest, $root.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse, request, callback); + }, "name", { value: "ReadRepositoryFile" }); + + /** + * Calls ReadRepositoryFile. + * @function readRepositoryFile + * @memberof google.cloud.dataform.v1beta1.Dataform + * @instance + * @param {google.cloud.dataform.v1beta1.IReadRepositoryFileRequest} request ReadRepositoryFileRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dataform.v1beta1.Dataform|queryRepositoryDirectoryContents}. + * @memberof google.cloud.dataform.v1beta1.Dataform + * @typedef QueryRepositoryDirectoryContentsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse} [response] QueryRepositoryDirectoryContentsResponse + */ + + /** + * Calls QueryRepositoryDirectoryContents. + * @function queryRepositoryDirectoryContents + * @memberof google.cloud.dataform.v1beta1.Dataform + * @instance + * @param {google.cloud.dataform.v1beta1.IQueryRepositoryDirectoryContentsRequest} request QueryRepositoryDirectoryContentsRequest message or plain object + * @param {google.cloud.dataform.v1beta1.Dataform.QueryRepositoryDirectoryContentsCallback} callback Node-style callback called with the error, if any, and QueryRepositoryDirectoryContentsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Dataform.prototype.queryRepositoryDirectoryContents = function queryRepositoryDirectoryContents(request, callback) { + return this.rpcCall(queryRepositoryDirectoryContents, $root.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest, $root.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse, request, callback); + }, "name", { value: "QueryRepositoryDirectoryContents" }); + + /** + * Calls QueryRepositoryDirectoryContents. + * @function queryRepositoryDirectoryContents + * @memberof google.cloud.dataform.v1beta1.Dataform + * @instance + * @param {google.cloud.dataform.v1beta1.IQueryRepositoryDirectoryContentsRequest} request QueryRepositoryDirectoryContentsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dataform.v1beta1.Dataform|fetchRepositoryHistory}. + * @memberof google.cloud.dataform.v1beta1.Dataform + * @typedef FetchRepositoryHistoryCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse} [response] FetchRepositoryHistoryResponse + */ + + /** + * Calls FetchRepositoryHistory. + * @function fetchRepositoryHistory + * @memberof google.cloud.dataform.v1beta1.Dataform + * @instance + * @param {google.cloud.dataform.v1beta1.IFetchRepositoryHistoryRequest} request FetchRepositoryHistoryRequest message or plain object + * @param {google.cloud.dataform.v1beta1.Dataform.FetchRepositoryHistoryCallback} callback Node-style callback called with the error, if any, and FetchRepositoryHistoryResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Dataform.prototype.fetchRepositoryHistory = function fetchRepositoryHistory(request, callback) { + return this.rpcCall(fetchRepositoryHistory, $root.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest, $root.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse, request, callback); + }, "name", { value: "FetchRepositoryHistory" }); + + /** + * Calls FetchRepositoryHistory. + * @function fetchRepositoryHistory + * @memberof google.cloud.dataform.v1beta1.Dataform + * @instance + * @param {google.cloud.dataform.v1beta1.IFetchRepositoryHistoryRequest} request FetchRepositoryHistoryRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dataform.v1beta1.Dataform|computeRepositoryAccessTokenStatus}. + * @memberof google.cloud.dataform.v1beta1.Dataform + * @typedef ComputeRepositoryAccessTokenStatusCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse} [response] ComputeRepositoryAccessTokenStatusResponse + */ + + /** + * Calls ComputeRepositoryAccessTokenStatus. + * @function computeRepositoryAccessTokenStatus + * @memberof google.cloud.dataform.v1beta1.Dataform + * @instance + * @param {google.cloud.dataform.v1beta1.IComputeRepositoryAccessTokenStatusRequest} request ComputeRepositoryAccessTokenStatusRequest message or plain object + * @param {google.cloud.dataform.v1beta1.Dataform.ComputeRepositoryAccessTokenStatusCallback} callback Node-style callback called with the error, if any, and ComputeRepositoryAccessTokenStatusResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Dataform.prototype.computeRepositoryAccessTokenStatus = function computeRepositoryAccessTokenStatus(request, callback) { + return this.rpcCall(computeRepositoryAccessTokenStatus, $root.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest, $root.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse, request, callback); + }, "name", { value: "ComputeRepositoryAccessTokenStatus" }); + + /** + * Calls ComputeRepositoryAccessTokenStatus. + * @function computeRepositoryAccessTokenStatus + * @memberof google.cloud.dataform.v1beta1.Dataform + * @instance + * @param {google.cloud.dataform.v1beta1.IComputeRepositoryAccessTokenStatusRequest} request ComputeRepositoryAccessTokenStatusRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.dataform.v1beta1.Dataform|fetchRemoteBranches}. * @memberof google.cloud.dataform.v1beta1.Dataform @@ -21710,6 +21875,171 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.dataform.v1beta1.Dataform|listReleaseConfigs}. + * @memberof google.cloud.dataform.v1beta1.Dataform + * @typedef ListReleaseConfigsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dataform.v1beta1.ListReleaseConfigsResponse} [response] ListReleaseConfigsResponse + */ + + /** + * Calls ListReleaseConfigs. + * @function listReleaseConfigs + * @memberof google.cloud.dataform.v1beta1.Dataform + * @instance + * @param {google.cloud.dataform.v1beta1.IListReleaseConfigsRequest} request ListReleaseConfigsRequest message or plain object + * @param {google.cloud.dataform.v1beta1.Dataform.ListReleaseConfigsCallback} callback Node-style callback called with the error, if any, and ListReleaseConfigsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Dataform.prototype.listReleaseConfigs = function listReleaseConfigs(request, callback) { + return this.rpcCall(listReleaseConfigs, $root.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest, $root.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse, request, callback); + }, "name", { value: "ListReleaseConfigs" }); + + /** + * Calls ListReleaseConfigs. + * @function listReleaseConfigs + * @memberof google.cloud.dataform.v1beta1.Dataform + * @instance + * @param {google.cloud.dataform.v1beta1.IListReleaseConfigsRequest} request ListReleaseConfigsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dataform.v1beta1.Dataform|getReleaseConfig}. + * @memberof google.cloud.dataform.v1beta1.Dataform + * @typedef GetReleaseConfigCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dataform.v1beta1.ReleaseConfig} [response] ReleaseConfig + */ + + /** + * Calls GetReleaseConfig. + * @function getReleaseConfig + * @memberof google.cloud.dataform.v1beta1.Dataform + * @instance + * @param {google.cloud.dataform.v1beta1.IGetReleaseConfigRequest} request GetReleaseConfigRequest message or plain object + * @param {google.cloud.dataform.v1beta1.Dataform.GetReleaseConfigCallback} callback Node-style callback called with the error, if any, and ReleaseConfig + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Dataform.prototype.getReleaseConfig = function getReleaseConfig(request, callback) { + return this.rpcCall(getReleaseConfig, $root.google.cloud.dataform.v1beta1.GetReleaseConfigRequest, $root.google.cloud.dataform.v1beta1.ReleaseConfig, request, callback); + }, "name", { value: "GetReleaseConfig" }); + + /** + * Calls GetReleaseConfig. + * @function getReleaseConfig + * @memberof google.cloud.dataform.v1beta1.Dataform + * @instance + * @param {google.cloud.dataform.v1beta1.IGetReleaseConfigRequest} request GetReleaseConfigRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dataform.v1beta1.Dataform|createReleaseConfig}. + * @memberof google.cloud.dataform.v1beta1.Dataform + * @typedef CreateReleaseConfigCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dataform.v1beta1.ReleaseConfig} [response] ReleaseConfig + */ + + /** + * Calls CreateReleaseConfig. + * @function createReleaseConfig + * @memberof google.cloud.dataform.v1beta1.Dataform + * @instance + * @param {google.cloud.dataform.v1beta1.ICreateReleaseConfigRequest} request CreateReleaseConfigRequest message or plain object + * @param {google.cloud.dataform.v1beta1.Dataform.CreateReleaseConfigCallback} callback Node-style callback called with the error, if any, and ReleaseConfig + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Dataform.prototype.createReleaseConfig = function createReleaseConfig(request, callback) { + return this.rpcCall(createReleaseConfig, $root.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest, $root.google.cloud.dataform.v1beta1.ReleaseConfig, request, callback); + }, "name", { value: "CreateReleaseConfig" }); + + /** + * Calls CreateReleaseConfig. + * @function createReleaseConfig + * @memberof google.cloud.dataform.v1beta1.Dataform + * @instance + * @param {google.cloud.dataform.v1beta1.ICreateReleaseConfigRequest} request CreateReleaseConfigRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dataform.v1beta1.Dataform|updateReleaseConfig}. + * @memberof google.cloud.dataform.v1beta1.Dataform + * @typedef UpdateReleaseConfigCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dataform.v1beta1.ReleaseConfig} [response] ReleaseConfig + */ + + /** + * Calls UpdateReleaseConfig. + * @function updateReleaseConfig + * @memberof google.cloud.dataform.v1beta1.Dataform + * @instance + * @param {google.cloud.dataform.v1beta1.IUpdateReleaseConfigRequest} request UpdateReleaseConfigRequest message or plain object + * @param {google.cloud.dataform.v1beta1.Dataform.UpdateReleaseConfigCallback} callback Node-style callback called with the error, if any, and ReleaseConfig + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Dataform.prototype.updateReleaseConfig = function updateReleaseConfig(request, callback) { + return this.rpcCall(updateReleaseConfig, $root.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest, $root.google.cloud.dataform.v1beta1.ReleaseConfig, request, callback); + }, "name", { value: "UpdateReleaseConfig" }); + + /** + * Calls UpdateReleaseConfig. + * @function updateReleaseConfig + * @memberof google.cloud.dataform.v1beta1.Dataform + * @instance + * @param {google.cloud.dataform.v1beta1.IUpdateReleaseConfigRequest} request UpdateReleaseConfigRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dataform.v1beta1.Dataform|deleteReleaseConfig}. + * @memberof google.cloud.dataform.v1beta1.Dataform + * @typedef DeleteReleaseConfigCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteReleaseConfig. + * @function deleteReleaseConfig + * @memberof google.cloud.dataform.v1beta1.Dataform + * @instance + * @param {google.cloud.dataform.v1beta1.IDeleteReleaseConfigRequest} request DeleteReleaseConfigRequest message or plain object + * @param {google.cloud.dataform.v1beta1.Dataform.DeleteReleaseConfigCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Dataform.prototype.deleteReleaseConfig = function deleteReleaseConfig(request, callback) { + return this.rpcCall(deleteReleaseConfig, $root.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteReleaseConfig" }); + + /** + * Calls DeleteReleaseConfig. + * @function deleteReleaseConfig + * @memberof google.cloud.dataform.v1beta1.Dataform + * @instance + * @param {google.cloud.dataform.v1beta1.IDeleteReleaseConfigRequest} request DeleteReleaseConfigRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.dataform.v1beta1.Dataform|listCompilationResults}. * @memberof google.cloud.dataform.v1beta1.Dataform @@ -21842,6 +22172,171 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.dataform.v1beta1.Dataform|listWorkflowConfigs}. + * @memberof google.cloud.dataform.v1beta1.Dataform + * @typedef ListWorkflowConfigsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse} [response] ListWorkflowConfigsResponse + */ + + /** + * Calls ListWorkflowConfigs. + * @function listWorkflowConfigs + * @memberof google.cloud.dataform.v1beta1.Dataform + * @instance + * @param {google.cloud.dataform.v1beta1.IListWorkflowConfigsRequest} request ListWorkflowConfigsRequest message or plain object + * @param {google.cloud.dataform.v1beta1.Dataform.ListWorkflowConfigsCallback} callback Node-style callback called with the error, if any, and ListWorkflowConfigsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Dataform.prototype.listWorkflowConfigs = function listWorkflowConfigs(request, callback) { + return this.rpcCall(listWorkflowConfigs, $root.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest, $root.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse, request, callback); + }, "name", { value: "ListWorkflowConfigs" }); + + /** + * Calls ListWorkflowConfigs. + * @function listWorkflowConfigs + * @memberof google.cloud.dataform.v1beta1.Dataform + * @instance + * @param {google.cloud.dataform.v1beta1.IListWorkflowConfigsRequest} request ListWorkflowConfigsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dataform.v1beta1.Dataform|getWorkflowConfig}. + * @memberof google.cloud.dataform.v1beta1.Dataform + * @typedef GetWorkflowConfigCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dataform.v1beta1.WorkflowConfig} [response] WorkflowConfig + */ + + /** + * Calls GetWorkflowConfig. + * @function getWorkflowConfig + * @memberof google.cloud.dataform.v1beta1.Dataform + * @instance + * @param {google.cloud.dataform.v1beta1.IGetWorkflowConfigRequest} request GetWorkflowConfigRequest message or plain object + * @param {google.cloud.dataform.v1beta1.Dataform.GetWorkflowConfigCallback} callback Node-style callback called with the error, if any, and WorkflowConfig + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Dataform.prototype.getWorkflowConfig = function getWorkflowConfig(request, callback) { + return this.rpcCall(getWorkflowConfig, $root.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest, $root.google.cloud.dataform.v1beta1.WorkflowConfig, request, callback); + }, "name", { value: "GetWorkflowConfig" }); + + /** + * Calls GetWorkflowConfig. + * @function getWorkflowConfig + * @memberof google.cloud.dataform.v1beta1.Dataform + * @instance + * @param {google.cloud.dataform.v1beta1.IGetWorkflowConfigRequest} request GetWorkflowConfigRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dataform.v1beta1.Dataform|createWorkflowConfig}. + * @memberof google.cloud.dataform.v1beta1.Dataform + * @typedef CreateWorkflowConfigCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dataform.v1beta1.WorkflowConfig} [response] WorkflowConfig + */ + + /** + * Calls CreateWorkflowConfig. + * @function createWorkflowConfig + * @memberof google.cloud.dataform.v1beta1.Dataform + * @instance + * @param {google.cloud.dataform.v1beta1.ICreateWorkflowConfigRequest} request CreateWorkflowConfigRequest message or plain object + * @param {google.cloud.dataform.v1beta1.Dataform.CreateWorkflowConfigCallback} callback Node-style callback called with the error, if any, and WorkflowConfig + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Dataform.prototype.createWorkflowConfig = function createWorkflowConfig(request, callback) { + return this.rpcCall(createWorkflowConfig, $root.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest, $root.google.cloud.dataform.v1beta1.WorkflowConfig, request, callback); + }, "name", { value: "CreateWorkflowConfig" }); + + /** + * Calls CreateWorkflowConfig. + * @function createWorkflowConfig + * @memberof google.cloud.dataform.v1beta1.Dataform + * @instance + * @param {google.cloud.dataform.v1beta1.ICreateWorkflowConfigRequest} request CreateWorkflowConfigRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dataform.v1beta1.Dataform|updateWorkflowConfig}. + * @memberof google.cloud.dataform.v1beta1.Dataform + * @typedef UpdateWorkflowConfigCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dataform.v1beta1.WorkflowConfig} [response] WorkflowConfig + */ + + /** + * Calls UpdateWorkflowConfig. + * @function updateWorkflowConfig + * @memberof google.cloud.dataform.v1beta1.Dataform + * @instance + * @param {google.cloud.dataform.v1beta1.IUpdateWorkflowConfigRequest} request UpdateWorkflowConfigRequest message or plain object + * @param {google.cloud.dataform.v1beta1.Dataform.UpdateWorkflowConfigCallback} callback Node-style callback called with the error, if any, and WorkflowConfig + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Dataform.prototype.updateWorkflowConfig = function updateWorkflowConfig(request, callback) { + return this.rpcCall(updateWorkflowConfig, $root.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest, $root.google.cloud.dataform.v1beta1.WorkflowConfig, request, callback); + }, "name", { value: "UpdateWorkflowConfig" }); + + /** + * Calls UpdateWorkflowConfig. + * @function updateWorkflowConfig + * @memberof google.cloud.dataform.v1beta1.Dataform + * @instance + * @param {google.cloud.dataform.v1beta1.IUpdateWorkflowConfigRequest} request UpdateWorkflowConfigRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dataform.v1beta1.Dataform|deleteWorkflowConfig}. + * @memberof google.cloud.dataform.v1beta1.Dataform + * @typedef DeleteWorkflowConfigCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteWorkflowConfig. + * @function deleteWorkflowConfig + * @memberof google.cloud.dataform.v1beta1.Dataform + * @instance + * @param {google.cloud.dataform.v1beta1.IDeleteWorkflowConfigRequest} request DeleteWorkflowConfigRequest message or plain object + * @param {google.cloud.dataform.v1beta1.Dataform.DeleteWorkflowConfigCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Dataform.prototype.deleteWorkflowConfig = function deleteWorkflowConfig(request, callback) { + return this.rpcCall(deleteWorkflowConfig, $root.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteWorkflowConfig" }); + + /** + * Calls DeleteWorkflowConfig. + * @function deleteWorkflowConfig + * @memberof google.cloud.dataform.v1beta1.Dataform + * @instance + * @param {google.cloud.dataform.v1beta1.IDeleteWorkflowConfigRequest} request DeleteWorkflowConfigRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.dataform.v1beta1.Dataform|listWorkflowInvocations}. * @memberof google.cloud.dataform.v1beta1.Dataform @@ -22050,7 +22545,13 @@ * @memberof google.cloud.dataform.v1beta1 * @interface IRepository * @property {string|null} [name] Repository name + * @property {string|null} [displayName] Repository displayName * @property {google.cloud.dataform.v1beta1.Repository.IGitRemoteSettings|null} [gitRemoteSettings] Repository gitRemoteSettings + * @property {string|null} [npmrcEnvironmentVariablesSecretVersion] Repository npmrcEnvironmentVariablesSecretVersion + * @property {google.cloud.dataform.v1beta1.Repository.IWorkspaceCompilationOverrides|null} [workspaceCompilationOverrides] Repository workspaceCompilationOverrides + * @property {Object.|null} [labels] Repository labels + * @property {boolean|null} [setAuthenticatedUserAdmin] Repository setAuthenticatedUserAdmin + * @property {string|null} [serviceAccount] Repository serviceAccount */ /** @@ -22062,6 +22563,7 @@ * @param {google.cloud.dataform.v1beta1.IRepository=} [properties] Properties to set */ function Repository(properties) { + this.labels = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -22076,6 +22578,14 @@ */ Repository.prototype.name = ""; + /** + * Repository displayName. + * @member {string} displayName + * @memberof google.cloud.dataform.v1beta1.Repository + * @instance + */ + Repository.prototype.displayName = ""; + /** * Repository gitRemoteSettings. * @member {google.cloud.dataform.v1beta1.Repository.IGitRemoteSettings|null|undefined} gitRemoteSettings @@ -22084,6 +22594,46 @@ */ Repository.prototype.gitRemoteSettings = null; + /** + * Repository npmrcEnvironmentVariablesSecretVersion. + * @member {string} npmrcEnvironmentVariablesSecretVersion + * @memberof google.cloud.dataform.v1beta1.Repository + * @instance + */ + Repository.prototype.npmrcEnvironmentVariablesSecretVersion = ""; + + /** + * Repository workspaceCompilationOverrides. + * @member {google.cloud.dataform.v1beta1.Repository.IWorkspaceCompilationOverrides|null|undefined} workspaceCompilationOverrides + * @memberof google.cloud.dataform.v1beta1.Repository + * @instance + */ + Repository.prototype.workspaceCompilationOverrides = null; + + /** + * Repository labels. + * @member {Object.} labels + * @memberof google.cloud.dataform.v1beta1.Repository + * @instance + */ + Repository.prototype.labels = $util.emptyObject; + + /** + * Repository setAuthenticatedUserAdmin. + * @member {boolean} setAuthenticatedUserAdmin + * @memberof google.cloud.dataform.v1beta1.Repository + * @instance + */ + Repository.prototype.setAuthenticatedUserAdmin = false; + + /** + * Repository serviceAccount. + * @member {string} serviceAccount + * @memberof google.cloud.dataform.v1beta1.Repository + * @instance + */ + Repository.prototype.serviceAccount = ""; + /** * Creates a new Repository instance using the specified properties. * @function create @@ -22112,6 +22662,19 @@ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); if (message.gitRemoteSettings != null && Object.hasOwnProperty.call(message, "gitRemoteSettings")) $root.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.encode(message.gitRemoteSettings, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.npmrcEnvironmentVariablesSecretVersion != null && Object.hasOwnProperty.call(message, "npmrcEnvironmentVariablesSecretVersion")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.npmrcEnvironmentVariablesSecretVersion); + if (message.workspaceCompilationOverrides != null && Object.hasOwnProperty.call(message, "workspaceCompilationOverrides")) + $root.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides.encode(message.workspaceCompilationOverrides, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.displayName); + if (message.setAuthenticatedUserAdmin != null && Object.hasOwnProperty.call(message, "setAuthenticatedUserAdmin")) + writer.uint32(/* id 9, wireType 0 =*/72).bool(message.setAuthenticatedUserAdmin); + if (message.serviceAccount != null && Object.hasOwnProperty.call(message, "serviceAccount")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.serviceAccount); return writer; }; @@ -22142,7 +22705,7 @@ Repository.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.Repository(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.Repository(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -22150,10 +22713,53 @@ message.name = reader.string(); break; } + case 8: { + message.displayName = reader.string(); + break; + } case 2: { message.gitRemoteSettings = $root.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.decode(reader, reader.uint32()); break; } + case 3: { + message.npmrcEnvironmentVariablesSecretVersion = reader.string(); + break; + } + case 4: { + message.workspaceCompilationOverrides = $root.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides.decode(reader, reader.uint32()); + break; + } + case 5: { + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; + break; + } + case 9: { + message.setAuthenticatedUserAdmin = reader.bool(); + break; + } + case 10: { + message.serviceAccount = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -22192,11 +22798,36 @@ if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; if (message.gitRemoteSettings != null && message.hasOwnProperty("gitRemoteSettings")) { var error = $root.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.verify(message.gitRemoteSettings); if (error) return "gitRemoteSettings." + error; } + if (message.npmrcEnvironmentVariablesSecretVersion != null && message.hasOwnProperty("npmrcEnvironmentVariablesSecretVersion")) + if (!$util.isString(message.npmrcEnvironmentVariablesSecretVersion)) + return "npmrcEnvironmentVariablesSecretVersion: string expected"; + if (message.workspaceCompilationOverrides != null && message.hasOwnProperty("workspaceCompilationOverrides")) { + var error = $root.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides.verify(message.workspaceCompilationOverrides); + if (error) + return "workspaceCompilationOverrides." + error; + } + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + if (message.setAuthenticatedUserAdmin != null && message.hasOwnProperty("setAuthenticatedUserAdmin")) + if (typeof message.setAuthenticatedUserAdmin !== "boolean") + return "setAuthenticatedUserAdmin: boolean expected"; + if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) + if (!$util.isString(message.serviceAccount)) + return "serviceAccount: string expected"; return null; }; @@ -22214,11 +22845,31 @@ var message = new $root.google.cloud.dataform.v1beta1.Repository(); if (object.name != null) message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); if (object.gitRemoteSettings != null) { if (typeof object.gitRemoteSettings !== "object") throw TypeError(".google.cloud.dataform.v1beta1.Repository.gitRemoteSettings: object expected"); message.gitRemoteSettings = $root.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.fromObject(object.gitRemoteSettings); } + if (object.npmrcEnvironmentVariablesSecretVersion != null) + message.npmrcEnvironmentVariablesSecretVersion = String(object.npmrcEnvironmentVariablesSecretVersion); + if (object.workspaceCompilationOverrides != null) { + if (typeof object.workspaceCompilationOverrides !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.Repository.workspaceCompilationOverrides: object expected"); + message.workspaceCompilationOverrides = $root.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides.fromObject(object.workspaceCompilationOverrides); + } + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.Repository.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } + if (object.setAuthenticatedUserAdmin != null) + message.setAuthenticatedUserAdmin = Boolean(object.setAuthenticatedUserAdmin); + if (object.serviceAccount != null) + message.serviceAccount = String(object.serviceAccount); return message; }; @@ -22235,14 +22886,37 @@ if (!options) options = {}; var object = {}; + if (options.objects || options.defaults) + object.labels = {}; if (options.defaults) { object.name = ""; object.gitRemoteSettings = null; + object.npmrcEnvironmentVariablesSecretVersion = ""; + object.workspaceCompilationOverrides = null; + object.displayName = ""; + object.setAuthenticatedUserAdmin = false; + object.serviceAccount = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; if (message.gitRemoteSettings != null && message.hasOwnProperty("gitRemoteSettings")) object.gitRemoteSettings = $root.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.toObject(message.gitRemoteSettings, options); + if (message.npmrcEnvironmentVariablesSecretVersion != null && message.hasOwnProperty("npmrcEnvironmentVariablesSecretVersion")) + object.npmrcEnvironmentVariablesSecretVersion = message.npmrcEnvironmentVariablesSecretVersion; + if (message.workspaceCompilationOverrides != null && message.hasOwnProperty("workspaceCompilationOverrides")) + object.workspaceCompilationOverrides = $root.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides.toObject(message.workspaceCompilationOverrides, options); + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; + } + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.setAuthenticatedUserAdmin != null && message.hasOwnProperty("setAuthenticatedUserAdmin")) + object.setAuthenticatedUserAdmin = message.setAuthenticatedUserAdmin; + if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) + object.serviceAccount = message.serviceAccount; return object; }; @@ -22281,6 +22955,7 @@ * @property {string|null} [url] GitRemoteSettings url * @property {string|null} [defaultBranch] GitRemoteSettings defaultBranch * @property {string|null} [authenticationTokenSecretVersion] GitRemoteSettings authenticationTokenSecretVersion + * @property {google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.ISshAuthenticationConfig|null} [sshAuthenticationConfig] GitRemoteSettings sshAuthenticationConfig * @property {google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus|null} [tokenStatus] GitRemoteSettings tokenStatus */ @@ -22323,6 +22998,14 @@ */ GitRemoteSettings.prototype.authenticationTokenSecretVersion = ""; + /** + * GitRemoteSettings sshAuthenticationConfig. + * @member {google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.ISshAuthenticationConfig|null|undefined} sshAuthenticationConfig + * @memberof google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + * @instance + */ + GitRemoteSettings.prototype.sshAuthenticationConfig = null; + /** * GitRemoteSettings tokenStatus. * @member {google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus} tokenStatus @@ -22363,6 +23046,8 @@ writer.uint32(/* id 3, wireType 2 =*/26).string(message.authenticationTokenSecretVersion); if (message.tokenStatus != null && Object.hasOwnProperty.call(message, "tokenStatus")) writer.uint32(/* id 4, wireType 0 =*/32).int32(message.tokenStatus); + if (message.sshAuthenticationConfig != null && Object.hasOwnProperty.call(message, "sshAuthenticationConfig")) + $root.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig.encode(message.sshAuthenticationConfig, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; @@ -22409,6 +23094,10 @@ message.authenticationTokenSecretVersion = reader.string(); break; } + case 5: { + message.sshAuthenticationConfig = $root.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig.decode(reader, reader.uint32()); + break; + } case 4: { message.tokenStatus = reader.int32(); break; @@ -22457,6 +23146,11 @@ if (message.authenticationTokenSecretVersion != null && message.hasOwnProperty("authenticationTokenSecretVersion")) if (!$util.isString(message.authenticationTokenSecretVersion)) return "authenticationTokenSecretVersion: string expected"; + if (message.sshAuthenticationConfig != null && message.hasOwnProperty("sshAuthenticationConfig")) { + var error = $root.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig.verify(message.sshAuthenticationConfig); + if (error) + return "sshAuthenticationConfig." + error; + } if (message.tokenStatus != null && message.hasOwnProperty("tokenStatus")) switch (message.tokenStatus) { default: @@ -22488,6 +23182,11 @@ message.defaultBranch = String(object.defaultBranch); if (object.authenticationTokenSecretVersion != null) message.authenticationTokenSecretVersion = String(object.authenticationTokenSecretVersion); + if (object.sshAuthenticationConfig != null) { + if (typeof object.sshAuthenticationConfig !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.sshAuthenticationConfig: object expected"); + message.sshAuthenticationConfig = $root.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig.fromObject(object.sshAuthenticationConfig); + } switch (object.tokenStatus) { default: if (typeof object.tokenStatus === "number") { @@ -22533,6 +23232,7 @@ object.defaultBranch = ""; object.authenticationTokenSecretVersion = ""; object.tokenStatus = options.enums === String ? "TOKEN_STATUS_UNSPECIFIED" : 0; + object.sshAuthenticationConfig = null; } if (message.url != null && message.hasOwnProperty("url")) object.url = message.url; @@ -22542,6 +23242,8 @@ object.authenticationTokenSecretVersion = message.authenticationTokenSecretVersion; if (message.tokenStatus != null && message.hasOwnProperty("tokenStatus")) object.tokenStatus = options.enums === String ? $root.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus[message.tokenStatus] === undefined ? message.tokenStatus : $root.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus[message.tokenStatus] : message.tokenStatus; + if (message.sshAuthenticationConfig != null && message.hasOwnProperty("sshAuthenticationConfig")) + object.sshAuthenticationConfig = $root.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig.toObject(message.sshAuthenticationConfig, options); return object; }; @@ -22571,6 +23273,233 @@ return typeUrlPrefix + "/google.cloud.dataform.v1beta1.Repository.GitRemoteSettings"; }; + GitRemoteSettings.SshAuthenticationConfig = (function() { + + /** + * Properties of a SshAuthenticationConfig. + * @memberof google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + * @interface ISshAuthenticationConfig + * @property {string|null} [userPrivateKeySecretVersion] SshAuthenticationConfig userPrivateKeySecretVersion + * @property {string|null} [hostPublicKey] SshAuthenticationConfig hostPublicKey + */ + + /** + * Constructs a new SshAuthenticationConfig. + * @memberof google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + * @classdesc Represents a SshAuthenticationConfig. + * @implements ISshAuthenticationConfig + * @constructor + * @param {google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.ISshAuthenticationConfig=} [properties] Properties to set + */ + function SshAuthenticationConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SshAuthenticationConfig userPrivateKeySecretVersion. + * @member {string} userPrivateKeySecretVersion + * @memberof google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig + * @instance + */ + SshAuthenticationConfig.prototype.userPrivateKeySecretVersion = ""; + + /** + * SshAuthenticationConfig hostPublicKey. + * @member {string} hostPublicKey + * @memberof google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig + * @instance + */ + SshAuthenticationConfig.prototype.hostPublicKey = ""; + + /** + * Creates a new SshAuthenticationConfig instance using the specified properties. + * @function create + * @memberof google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig + * @static + * @param {google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.ISshAuthenticationConfig=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig} SshAuthenticationConfig instance + */ + SshAuthenticationConfig.create = function create(properties) { + return new SshAuthenticationConfig(properties); + }; + + /** + * Encodes the specified SshAuthenticationConfig message. Does not implicitly {@link google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig + * @static + * @param {google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.ISshAuthenticationConfig} message SshAuthenticationConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SshAuthenticationConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.userPrivateKeySecretVersion != null && Object.hasOwnProperty.call(message, "userPrivateKeySecretVersion")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.userPrivateKeySecretVersion); + if (message.hostPublicKey != null && Object.hasOwnProperty.call(message, "hostPublicKey")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.hostPublicKey); + return writer; + }; + + /** + * Encodes the specified SshAuthenticationConfig message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig + * @static + * @param {google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.ISshAuthenticationConfig} message SshAuthenticationConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SshAuthenticationConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SshAuthenticationConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig} SshAuthenticationConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SshAuthenticationConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.userPrivateKeySecretVersion = reader.string(); + break; + } + case 2: { + message.hostPublicKey = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SshAuthenticationConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig} SshAuthenticationConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SshAuthenticationConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SshAuthenticationConfig message. + * @function verify + * @memberof google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SshAuthenticationConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.userPrivateKeySecretVersion != null && message.hasOwnProperty("userPrivateKeySecretVersion")) + if (!$util.isString(message.userPrivateKeySecretVersion)) + return "userPrivateKeySecretVersion: string expected"; + if (message.hostPublicKey != null && message.hasOwnProperty("hostPublicKey")) + if (!$util.isString(message.hostPublicKey)) + return "hostPublicKey: string expected"; + return null; + }; + + /** + * Creates a SshAuthenticationConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig} SshAuthenticationConfig + */ + SshAuthenticationConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig) + return object; + var message = new $root.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig(); + if (object.userPrivateKeySecretVersion != null) + message.userPrivateKeySecretVersion = String(object.userPrivateKeySecretVersion); + if (object.hostPublicKey != null) + message.hostPublicKey = String(object.hostPublicKey); + return message; + }; + + /** + * Creates a plain object from a SshAuthenticationConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig + * @static + * @param {google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig} message SshAuthenticationConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SshAuthenticationConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.userPrivateKeySecretVersion = ""; + object.hostPublicKey = ""; + } + if (message.userPrivateKeySecretVersion != null && message.hasOwnProperty("userPrivateKeySecretVersion")) + object.userPrivateKeySecretVersion = message.userPrivateKeySecretVersion; + if (message.hostPublicKey != null && message.hasOwnProperty("hostPublicKey")) + object.hostPublicKey = message.hostPublicKey; + return object; + }; + + /** + * Converts this SshAuthenticationConfig to JSON. + * @function toJSON + * @memberof google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig + * @instance + * @returns {Object.} JSON object + */ + SshAuthenticationConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SshAuthenticationConfig + * @function getTypeUrl + * @memberof google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SshAuthenticationConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig"; + }; + + return SshAuthenticationConfig; + })(); + /** * TokenStatus enum. * @name google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus @@ -22592,6 +23521,256 @@ return GitRemoteSettings; })(); + Repository.WorkspaceCompilationOverrides = (function() { + + /** + * Properties of a WorkspaceCompilationOverrides. + * @memberof google.cloud.dataform.v1beta1.Repository + * @interface IWorkspaceCompilationOverrides + * @property {string|null} [defaultDatabase] WorkspaceCompilationOverrides defaultDatabase + * @property {string|null} [schemaSuffix] WorkspaceCompilationOverrides schemaSuffix + * @property {string|null} [tablePrefix] WorkspaceCompilationOverrides tablePrefix + */ + + /** + * Constructs a new WorkspaceCompilationOverrides. + * @memberof google.cloud.dataform.v1beta1.Repository + * @classdesc Represents a WorkspaceCompilationOverrides. + * @implements IWorkspaceCompilationOverrides + * @constructor + * @param {google.cloud.dataform.v1beta1.Repository.IWorkspaceCompilationOverrides=} [properties] Properties to set + */ + function WorkspaceCompilationOverrides(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkspaceCompilationOverrides defaultDatabase. + * @member {string} defaultDatabase + * @memberof google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides + * @instance + */ + WorkspaceCompilationOverrides.prototype.defaultDatabase = ""; + + /** + * WorkspaceCompilationOverrides schemaSuffix. + * @member {string} schemaSuffix + * @memberof google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides + * @instance + */ + WorkspaceCompilationOverrides.prototype.schemaSuffix = ""; + + /** + * WorkspaceCompilationOverrides tablePrefix. + * @member {string} tablePrefix + * @memberof google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides + * @instance + */ + WorkspaceCompilationOverrides.prototype.tablePrefix = ""; + + /** + * Creates a new WorkspaceCompilationOverrides instance using the specified properties. + * @function create + * @memberof google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides + * @static + * @param {google.cloud.dataform.v1beta1.Repository.IWorkspaceCompilationOverrides=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides} WorkspaceCompilationOverrides instance + */ + WorkspaceCompilationOverrides.create = function create(properties) { + return new WorkspaceCompilationOverrides(properties); + }; + + /** + * Encodes the specified WorkspaceCompilationOverrides message. Does not implicitly {@link google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides.verify|verify} messages. + * @function encode + * @memberof google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides + * @static + * @param {google.cloud.dataform.v1beta1.Repository.IWorkspaceCompilationOverrides} message WorkspaceCompilationOverrides message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkspaceCompilationOverrides.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.defaultDatabase != null && Object.hasOwnProperty.call(message, "defaultDatabase")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.defaultDatabase); + if (message.schemaSuffix != null && Object.hasOwnProperty.call(message, "schemaSuffix")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.schemaSuffix); + if (message.tablePrefix != null && Object.hasOwnProperty.call(message, "tablePrefix")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.tablePrefix); + return writer; + }; + + /** + * Encodes the specified WorkspaceCompilationOverrides message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides + * @static + * @param {google.cloud.dataform.v1beta1.Repository.IWorkspaceCompilationOverrides} message WorkspaceCompilationOverrides message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkspaceCompilationOverrides.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a WorkspaceCompilationOverrides message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides} WorkspaceCompilationOverrides + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkspaceCompilationOverrides.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.defaultDatabase = reader.string(); + break; + } + case 2: { + message.schemaSuffix = reader.string(); + break; + } + case 3: { + message.tablePrefix = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a WorkspaceCompilationOverrides message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides} WorkspaceCompilationOverrides + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkspaceCompilationOverrides.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a WorkspaceCompilationOverrides message. + * @function verify + * @memberof google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkspaceCompilationOverrides.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.defaultDatabase != null && message.hasOwnProperty("defaultDatabase")) + if (!$util.isString(message.defaultDatabase)) + return "defaultDatabase: string expected"; + if (message.schemaSuffix != null && message.hasOwnProperty("schemaSuffix")) + if (!$util.isString(message.schemaSuffix)) + return "schemaSuffix: string expected"; + if (message.tablePrefix != null && message.hasOwnProperty("tablePrefix")) + if (!$util.isString(message.tablePrefix)) + return "tablePrefix: string expected"; + return null; + }; + + /** + * Creates a WorkspaceCompilationOverrides message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides} WorkspaceCompilationOverrides + */ + WorkspaceCompilationOverrides.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides) + return object; + var message = new $root.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides(); + if (object.defaultDatabase != null) + message.defaultDatabase = String(object.defaultDatabase); + if (object.schemaSuffix != null) + message.schemaSuffix = String(object.schemaSuffix); + if (object.tablePrefix != null) + message.tablePrefix = String(object.tablePrefix); + return message; + }; + + /** + * Creates a plain object from a WorkspaceCompilationOverrides message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides + * @static + * @param {google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides} message WorkspaceCompilationOverrides + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + WorkspaceCompilationOverrides.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.defaultDatabase = ""; + object.schemaSuffix = ""; + object.tablePrefix = ""; + } + if (message.defaultDatabase != null && message.hasOwnProperty("defaultDatabase")) + object.defaultDatabase = message.defaultDatabase; + if (message.schemaSuffix != null && message.hasOwnProperty("schemaSuffix")) + object.schemaSuffix = message.schemaSuffix; + if (message.tablePrefix != null && message.hasOwnProperty("tablePrefix")) + object.tablePrefix = message.tablePrefix; + return object; + }; + + /** + * Converts this WorkspaceCompilationOverrides to JSON. + * @function toJSON + * @memberof google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides + * @instance + * @returns {Object.} JSON object + */ + WorkspaceCompilationOverrides.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for WorkspaceCompilationOverrides + * @function getTypeUrl + * @memberof google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + WorkspaceCompilationOverrides.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides"; + }; + + return WorkspaceCompilationOverrides; + })(); + return Repository; })(); @@ -24101,24 +25280,28 @@ return DeleteRepositoryRequest; })(); - v1beta1.FetchRemoteBranchesRequest = (function() { + v1beta1.CommitRepositoryChangesRequest = (function() { /** - * Properties of a FetchRemoteBranchesRequest. + * Properties of a CommitRepositoryChangesRequest. * @memberof google.cloud.dataform.v1beta1 - * @interface IFetchRemoteBranchesRequest - * @property {string|null} [name] FetchRemoteBranchesRequest name + * @interface ICommitRepositoryChangesRequest + * @property {string|null} [name] CommitRepositoryChangesRequest name + * @property {google.cloud.dataform.v1beta1.ICommitMetadata|null} [commitMetadata] CommitRepositoryChangesRequest commitMetadata + * @property {string|null} [requiredHeadCommitSha] CommitRepositoryChangesRequest requiredHeadCommitSha + * @property {Object.|null} [fileOperations] CommitRepositoryChangesRequest fileOperations */ /** - * Constructs a new FetchRemoteBranchesRequest. + * Constructs a new CommitRepositoryChangesRequest. * @memberof google.cloud.dataform.v1beta1 - * @classdesc Represents a FetchRemoteBranchesRequest. - * @implements IFetchRemoteBranchesRequest + * @classdesc Represents a CommitRepositoryChangesRequest. + * @implements ICommitRepositoryChangesRequest * @constructor - * @param {google.cloud.dataform.v1beta1.IFetchRemoteBranchesRequest=} [properties] Properties to set + * @param {google.cloud.dataform.v1beta1.ICommitRepositoryChangesRequest=} [properties] Properties to set */ - function FetchRemoteBranchesRequest(properties) { + function CommitRepositoryChangesRequest(properties) { + this.fileOperations = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24126,70 +25309,103 @@ } /** - * FetchRemoteBranchesRequest name. + * CommitRepositoryChangesRequest name. * @member {string} name - * @memberof google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest * @instance */ - FetchRemoteBranchesRequest.prototype.name = ""; + CommitRepositoryChangesRequest.prototype.name = ""; /** - * Creates a new FetchRemoteBranchesRequest instance using the specified properties. + * CommitRepositoryChangesRequest commitMetadata. + * @member {google.cloud.dataform.v1beta1.ICommitMetadata|null|undefined} commitMetadata + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest + * @instance + */ + CommitRepositoryChangesRequest.prototype.commitMetadata = null; + + /** + * CommitRepositoryChangesRequest requiredHeadCommitSha. + * @member {string} requiredHeadCommitSha + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest + * @instance + */ + CommitRepositoryChangesRequest.prototype.requiredHeadCommitSha = ""; + + /** + * CommitRepositoryChangesRequest fileOperations. + * @member {Object.} fileOperations + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest + * @instance + */ + CommitRepositoryChangesRequest.prototype.fileOperations = $util.emptyObject; + + /** + * Creates a new CommitRepositoryChangesRequest instance using the specified properties. * @function create - * @memberof google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest * @static - * @param {google.cloud.dataform.v1beta1.IFetchRemoteBranchesRequest=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest} FetchRemoteBranchesRequest instance + * @param {google.cloud.dataform.v1beta1.ICommitRepositoryChangesRequest=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest} CommitRepositoryChangesRequest instance */ - FetchRemoteBranchesRequest.create = function create(properties) { - return new FetchRemoteBranchesRequest(properties); + CommitRepositoryChangesRequest.create = function create(properties) { + return new CommitRepositoryChangesRequest(properties); }; /** - * Encodes the specified FetchRemoteBranchesRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest.verify|verify} messages. + * Encodes the specified CommitRepositoryChangesRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest * @static - * @param {google.cloud.dataform.v1beta1.IFetchRemoteBranchesRequest} message FetchRemoteBranchesRequest message or plain object to encode + * @param {google.cloud.dataform.v1beta1.ICommitRepositoryChangesRequest} message CommitRepositoryChangesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FetchRemoteBranchesRequest.encode = function encode(message, writer) { + CommitRepositoryChangesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.commitMetadata != null && Object.hasOwnProperty.call(message, "commitMetadata")) + $root.google.cloud.dataform.v1beta1.CommitMetadata.encode(message.commitMetadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.fileOperations != null && Object.hasOwnProperty.call(message, "fileOperations")) + for (var keys = Object.keys(message.fileOperations), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.encode(message.fileOperations[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.requiredHeadCommitSha != null && Object.hasOwnProperty.call(message, "requiredHeadCommitSha")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.requiredHeadCommitSha); return writer; }; /** - * Encodes the specified FetchRemoteBranchesRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest.verify|verify} messages. + * Encodes the specified CommitRepositoryChangesRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest * @static - * @param {google.cloud.dataform.v1beta1.IFetchRemoteBranchesRequest} message FetchRemoteBranchesRequest message or plain object to encode + * @param {google.cloud.dataform.v1beta1.ICommitRepositoryChangesRequest} message CommitRepositoryChangesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FetchRemoteBranchesRequest.encodeDelimited = function encodeDelimited(message, writer) { + CommitRepositoryChangesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FetchRemoteBranchesRequest message from the specified reader or buffer. + * Decodes a CommitRepositoryChangesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest} FetchRemoteBranchesRequest + * @returns {google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest} CommitRepositoryChangesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FetchRemoteBranchesRequest.decode = function decode(reader, length) { + CommitRepositoryChangesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -24197,6 +25413,37 @@ message.name = reader.string(); break; } + case 2: { + message.commitMetadata = $root.google.cloud.dataform.v1beta1.CommitMetadata.decode(reader, reader.uint32()); + break; + } + case 4: { + message.requiredHeadCommitSha = reader.string(); + break; + } + case 3: { + if (message.fileOperations === $util.emptyObject) + message.fileOperations = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.fileOperations[key] = value; + break; + } default: reader.skipType(tag & 7); break; @@ -24206,412 +25453,914 @@ }; /** - * Decodes a FetchRemoteBranchesRequest message from the specified reader or buffer, length delimited. + * Decodes a CommitRepositoryChangesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest} FetchRemoteBranchesRequest + * @returns {google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest} CommitRepositoryChangesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FetchRemoteBranchesRequest.decodeDelimited = function decodeDelimited(reader) { + CommitRepositoryChangesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FetchRemoteBranchesRequest message. + * Verifies a CommitRepositoryChangesRequest message. * @function verify - * @memberof google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FetchRemoteBranchesRequest.verify = function verify(message) { + CommitRepositoryChangesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; + if (message.commitMetadata != null && message.hasOwnProperty("commitMetadata")) { + var error = $root.google.cloud.dataform.v1beta1.CommitMetadata.verify(message.commitMetadata); + if (error) + return "commitMetadata." + error; + } + if (message.requiredHeadCommitSha != null && message.hasOwnProperty("requiredHeadCommitSha")) + if (!$util.isString(message.requiredHeadCommitSha)) + return "requiredHeadCommitSha: string expected"; + if (message.fileOperations != null && message.hasOwnProperty("fileOperations")) { + if (!$util.isObject(message.fileOperations)) + return "fileOperations: object expected"; + var key = Object.keys(message.fileOperations); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.verify(message.fileOperations[key[i]]); + if (error) + return "fileOperations." + error; + } + } return null; }; /** - * Creates a FetchRemoteBranchesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CommitRepositoryChangesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest} FetchRemoteBranchesRequest + * @returns {google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest} CommitRepositoryChangesRequest */ - FetchRemoteBranchesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest) + CommitRepositoryChangesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest) return object; - var message = new $root.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest(); + var message = new $root.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest(); if (object.name != null) message.name = String(object.name); + if (object.commitMetadata != null) { + if (typeof object.commitMetadata !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.commitMetadata: object expected"); + message.commitMetadata = $root.google.cloud.dataform.v1beta1.CommitMetadata.fromObject(object.commitMetadata); + } + if (object.requiredHeadCommitSha != null) + message.requiredHeadCommitSha = String(object.requiredHeadCommitSha); + if (object.fileOperations) { + if (typeof object.fileOperations !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.fileOperations: object expected"); + message.fileOperations = {}; + for (var keys = Object.keys(object.fileOperations), i = 0; i < keys.length; ++i) { + if (typeof object.fileOperations[keys[i]] !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.fileOperations: object expected"); + message.fileOperations[keys[i]] = $root.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.fromObject(object.fileOperations[keys[i]]); + } + } return message; }; /** - * Creates a plain object from a FetchRemoteBranchesRequest message. Also converts values to other types if specified. + * Creates a plain object from a CommitRepositoryChangesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest * @static - * @param {google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest} message FetchRemoteBranchesRequest + * @param {google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest} message CommitRepositoryChangesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FetchRemoteBranchesRequest.toObject = function toObject(message, options) { + CommitRepositoryChangesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.objects || options.defaults) + object.fileOperations = {}; + if (options.defaults) { object.name = ""; + object.commitMetadata = null; + object.requiredHeadCommitSha = ""; + } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; + if (message.commitMetadata != null && message.hasOwnProperty("commitMetadata")) + object.commitMetadata = $root.google.cloud.dataform.v1beta1.CommitMetadata.toObject(message.commitMetadata, options); + var keys2; + if (message.fileOperations && (keys2 = Object.keys(message.fileOperations)).length) { + object.fileOperations = {}; + for (var j = 0; j < keys2.length; ++j) + object.fileOperations[keys2[j]] = $root.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.toObject(message.fileOperations[keys2[j]], options); + } + if (message.requiredHeadCommitSha != null && message.hasOwnProperty("requiredHeadCommitSha")) + object.requiredHeadCommitSha = message.requiredHeadCommitSha; return object; }; /** - * Converts this FetchRemoteBranchesRequest to JSON. + * Converts this CommitRepositoryChangesRequest to JSON. * @function toJSON - * @memberof google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest * @instance * @returns {Object.} JSON object */ - FetchRemoteBranchesRequest.prototype.toJSON = function toJSON() { + CommitRepositoryChangesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FetchRemoteBranchesRequest + * Gets the default type url for CommitRepositoryChangesRequest * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FetchRemoteBranchesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CommitRepositoryChangesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest"; + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest"; }; - return FetchRemoteBranchesRequest; - })(); + CommitRepositoryChangesRequest.FileOperation = (function() { - v1beta1.FetchRemoteBranchesResponse = (function() { + /** + * Properties of a FileOperation. + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest + * @interface IFileOperation + * @property {google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.IWriteFile|null} [writeFile] FileOperation writeFile + * @property {google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.IDeleteFile|null} [deleteFile] FileOperation deleteFile + */ - /** - * Properties of a FetchRemoteBranchesResponse. - * @memberof google.cloud.dataform.v1beta1 - * @interface IFetchRemoteBranchesResponse - * @property {Array.|null} [branches] FetchRemoteBranchesResponse branches - */ + /** + * Constructs a new FileOperation. + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest + * @classdesc Represents a FileOperation. + * @implements IFileOperation + * @constructor + * @param {google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.IFileOperation=} [properties] Properties to set + */ + function FileOperation(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new FetchRemoteBranchesResponse. - * @memberof google.cloud.dataform.v1beta1 - * @classdesc Represents a FetchRemoteBranchesResponse. - * @implements IFetchRemoteBranchesResponse - * @constructor - * @param {google.cloud.dataform.v1beta1.IFetchRemoteBranchesResponse=} [properties] Properties to set - */ - function FetchRemoteBranchesResponse(properties) { - this.branches = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * FileOperation writeFile. + * @member {google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.IWriteFile|null|undefined} writeFile + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + * @instance + */ + FileOperation.prototype.writeFile = null; - /** - * FetchRemoteBranchesResponse branches. - * @member {Array.} branches - * @memberof google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse - * @instance - */ - FetchRemoteBranchesResponse.prototype.branches = $util.emptyArray; + /** + * FileOperation deleteFile. + * @member {google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.IDeleteFile|null|undefined} deleteFile + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + * @instance + */ + FileOperation.prototype.deleteFile = null; - /** - * Creates a new FetchRemoteBranchesResponse instance using the specified properties. - * @function create - * @memberof google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse - * @static - * @param {google.cloud.dataform.v1beta1.IFetchRemoteBranchesResponse=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse} FetchRemoteBranchesResponse instance - */ - FetchRemoteBranchesResponse.create = function create(properties) { - return new FetchRemoteBranchesResponse(properties); - }; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * Encodes the specified FetchRemoteBranchesResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse - * @static - * @param {google.cloud.dataform.v1beta1.IFetchRemoteBranchesResponse} message FetchRemoteBranchesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FetchRemoteBranchesResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.branches != null && message.branches.length) - for (var i = 0; i < message.branches.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.branches[i]); - return writer; - }; + /** + * FileOperation operation. + * @member {"writeFile"|"deleteFile"|undefined} operation + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + * @instance + */ + Object.defineProperty(FileOperation.prototype, "operation", { + get: $util.oneOfGetter($oneOfFields = ["writeFile", "deleteFile"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * Encodes the specified FetchRemoteBranchesResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse - * @static - * @param {google.cloud.dataform.v1beta1.IFetchRemoteBranchesResponse} message FetchRemoteBranchesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FetchRemoteBranchesResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new FileOperation instance using the specified properties. + * @function create + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + * @static + * @param {google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.IFileOperation=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation} FileOperation instance + */ + FileOperation.create = function create(properties) { + return new FileOperation(properties); + }; - /** - * Decodes a FetchRemoteBranchesResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse} FetchRemoteBranchesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FetchRemoteBranchesResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.branches && message.branches.length)) - message.branches = []; - message.branches.push(reader.string()); + /** + * Encodes the specified FileOperation message. Does not implicitly {@link google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.verify|verify} messages. + * @function encode + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + * @static + * @param {google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.IFileOperation} message FileOperation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileOperation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.writeFile != null && Object.hasOwnProperty.call(message, "writeFile")) + $root.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile.encode(message.writeFile, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.deleteFile != null && Object.hasOwnProperty.call(message, "deleteFile")) + $root.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile.encode(message.deleteFile, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified FileOperation message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + * @static + * @param {google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.IFileOperation} message FileOperation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileOperation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FileOperation message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation} FileOperation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileOperation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.writeFile = $root.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile.decode(reader, reader.uint32()); + break; + } + case 2: { + message.deleteFile = $root.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes a FetchRemoteBranchesResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse} FetchRemoteBranchesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FetchRemoteBranchesResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a FileOperation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation} FileOperation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileOperation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a FetchRemoteBranchesResponse message. - * @function verify - * @memberof google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FetchRemoteBranchesResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.branches != null && message.hasOwnProperty("branches")) { - if (!Array.isArray(message.branches)) - return "branches: array expected"; - for (var i = 0; i < message.branches.length; ++i) - if (!$util.isString(message.branches[i])) - return "branches: string[] expected"; - } - return null; - }; + /** + * Verifies a FileOperation message. + * @function verify + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FileOperation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.writeFile != null && message.hasOwnProperty("writeFile")) { + properties.operation = 1; + { + var error = $root.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile.verify(message.writeFile); + if (error) + return "writeFile." + error; + } + } + if (message.deleteFile != null && message.hasOwnProperty("deleteFile")) { + if (properties.operation === 1) + return "operation: multiple values"; + properties.operation = 1; + { + var error = $root.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile.verify(message.deleteFile); + if (error) + return "deleteFile." + error; + } + } + return null; + }; - /** - * Creates a FetchRemoteBranchesResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse} FetchRemoteBranchesResponse - */ - FetchRemoteBranchesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse) + /** + * Creates a FileOperation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation} FileOperation + */ + FileOperation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation) + return object; + var message = new $root.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation(); + if (object.writeFile != null) { + if (typeof object.writeFile !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.writeFile: object expected"); + message.writeFile = $root.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile.fromObject(object.writeFile); + } + if (object.deleteFile != null) { + if (typeof object.deleteFile !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.deleteFile: object expected"); + message.deleteFile = $root.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile.fromObject(object.deleteFile); + } + return message; + }; + + /** + * Creates a plain object from a FileOperation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + * @static + * @param {google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation} message FileOperation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FileOperation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.writeFile != null && message.hasOwnProperty("writeFile")) { + object.writeFile = $root.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile.toObject(message.writeFile, options); + if (options.oneofs) + object.operation = "writeFile"; + } + if (message.deleteFile != null && message.hasOwnProperty("deleteFile")) { + object.deleteFile = $root.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile.toObject(message.deleteFile, options); + if (options.oneofs) + object.operation = "deleteFile"; + } return object; - var message = new $root.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse(); - if (object.branches) { - if (!Array.isArray(object.branches)) - throw TypeError(".google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse.branches: array expected"); - message.branches = []; - for (var i = 0; i < object.branches.length; ++i) - message.branches[i] = String(object.branches[i]); - } - return message; - }; + }; - /** - * Creates a plain object from a FetchRemoteBranchesResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse - * @static - * @param {google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse} message FetchRemoteBranchesResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FetchRemoteBranchesResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.branches = []; - if (message.branches && message.branches.length) { - object.branches = []; - for (var j = 0; j < message.branches.length; ++j) - object.branches[j] = message.branches[j]; - } - return object; - }; + /** + * Converts this FileOperation to JSON. + * @function toJSON + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + * @instance + * @returns {Object.} JSON object + */ + FileOperation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this FetchRemoteBranchesResponse to JSON. - * @function toJSON - * @memberof google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse - * @instance - * @returns {Object.} JSON object - */ - FetchRemoteBranchesResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for FileOperation + * @function getTypeUrl + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FileOperation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation"; + }; - /** - * Gets the default type url for FetchRemoteBranchesResponse - * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - FetchRemoteBranchesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse"; - }; + FileOperation.WriteFile = (function() { - return FetchRemoteBranchesResponse; - })(); + /** + * Properties of a WriteFile. + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + * @interface IWriteFile + * @property {Uint8Array|null} [contents] WriteFile contents + */ - v1beta1.Workspace = (function() { + /** + * Constructs a new WriteFile. + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + * @classdesc Represents a WriteFile. + * @implements IWriteFile + * @constructor + * @param {google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.IWriteFile=} [properties] Properties to set + */ + function WriteFile(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Properties of a Workspace. - * @memberof google.cloud.dataform.v1beta1 - * @interface IWorkspace - * @property {string|null} [name] Workspace name - */ + /** + * WriteFile contents. + * @member {Uint8Array} contents + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile + * @instance + */ + WriteFile.prototype.contents = $util.newBuffer([]); - /** - * Constructs a new Workspace. - * @memberof google.cloud.dataform.v1beta1 - * @classdesc Represents a Workspace. - * @implements IWorkspace - * @constructor - * @param {google.cloud.dataform.v1beta1.IWorkspace=} [properties] Properties to set - */ - function Workspace(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Creates a new WriteFile instance using the specified properties. + * @function create + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile + * @static + * @param {google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.IWriteFile=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile} WriteFile instance + */ + WriteFile.create = function create(properties) { + return new WriteFile(properties); + }; - /** - * Workspace name. - * @member {string} name - * @memberof google.cloud.dataform.v1beta1.Workspace - * @instance - */ - Workspace.prototype.name = ""; + /** + * Encodes the specified WriteFile message. Does not implicitly {@link google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile.verify|verify} messages. + * @function encode + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile + * @static + * @param {google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.IWriteFile} message WriteFile message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WriteFile.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.contents != null && Object.hasOwnProperty.call(message, "contents")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.contents); + return writer; + }; - /** - * Creates a new Workspace instance using the specified properties. - * @function create - * @memberof google.cloud.dataform.v1beta1.Workspace - * @static - * @param {google.cloud.dataform.v1beta1.IWorkspace=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.Workspace} Workspace instance - */ - Workspace.create = function create(properties) { - return new Workspace(properties); + /** + * Encodes the specified WriteFile message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile + * @static + * @param {google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.IWriteFile} message WriteFile message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WriteFile.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a WriteFile message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile} WriteFile + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WriteFile.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.contents = reader.bytes(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a WriteFile message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile} WriteFile + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WriteFile.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a WriteFile message. + * @function verify + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WriteFile.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.contents != null && message.hasOwnProperty("contents")) + if (!(message.contents && typeof message.contents.length === "number" || $util.isString(message.contents))) + return "contents: buffer expected"; + return null; + }; + + /** + * Creates a WriteFile message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile} WriteFile + */ + WriteFile.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile) + return object; + var message = new $root.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile(); + if (object.contents != null) + if (typeof object.contents === "string") + $util.base64.decode(object.contents, message.contents = $util.newBuffer($util.base64.length(object.contents)), 0); + else if (object.contents.length >= 0) + message.contents = object.contents; + return message; + }; + + /** + * Creates a plain object from a WriteFile message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile + * @static + * @param {google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile} message WriteFile + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + WriteFile.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + if (options.bytes === String) + object.contents = ""; + else { + object.contents = []; + if (options.bytes !== Array) + object.contents = $util.newBuffer(object.contents); + } + if (message.contents != null && message.hasOwnProperty("contents")) + object.contents = options.bytes === String ? $util.base64.encode(message.contents, 0, message.contents.length) : options.bytes === Array ? Array.prototype.slice.call(message.contents) : message.contents; + return object; + }; + + /** + * Converts this WriteFile to JSON. + * @function toJSON + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile + * @instance + * @returns {Object.} JSON object + */ + WriteFile.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for WriteFile + * @function getTypeUrl + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + WriteFile.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile"; + }; + + return WriteFile; + })(); + + FileOperation.DeleteFile = (function() { + + /** + * Properties of a DeleteFile. + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + * @interface IDeleteFile + */ + + /** + * Constructs a new DeleteFile. + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + * @classdesc Represents a DeleteFile. + * @implements IDeleteFile + * @constructor + * @param {google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.IDeleteFile=} [properties] Properties to set + */ + function DeleteFile(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new DeleteFile instance using the specified properties. + * @function create + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile + * @static + * @param {google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.IDeleteFile=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile} DeleteFile instance + */ + DeleteFile.create = function create(properties) { + return new DeleteFile(properties); + }; + + /** + * Encodes the specified DeleteFile message. Does not implicitly {@link google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile.verify|verify} messages. + * @function encode + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile + * @static + * @param {google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.IDeleteFile} message DeleteFile message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteFile.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified DeleteFile message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile + * @static + * @param {google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.IDeleteFile} message DeleteFile message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteFile.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteFile message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile} DeleteFile + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteFile.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeleteFile message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile} DeleteFile + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteFile.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteFile message. + * @function verify + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteFile.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates a DeleteFile message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile} DeleteFile + */ + DeleteFile.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile) + return object; + return new $root.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile(); + }; + + /** + * Creates a plain object from a DeleteFile message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile + * @static + * @param {google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile} message DeleteFile + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteFile.toObject = function toObject() { + return {}; + }; + + /** + * Converts this DeleteFile to JSON. + * @function toJSON + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile + * @instance + * @returns {Object.} JSON object + */ + DeleteFile.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeleteFile + * @function getTypeUrl + * @memberof google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteFile.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile"; + }; + + return DeleteFile; + })(); + + return FileOperation; + })(); + + return CommitRepositoryChangesRequest; + })(); + + v1beta1.ReadRepositoryFileRequest = (function() { + + /** + * Properties of a ReadRepositoryFileRequest. + * @memberof google.cloud.dataform.v1beta1 + * @interface IReadRepositoryFileRequest + * @property {string|null} [name] ReadRepositoryFileRequest name + * @property {string|null} [commitSha] ReadRepositoryFileRequest commitSha + * @property {string|null} [path] ReadRepositoryFileRequest path + */ + + /** + * Constructs a new ReadRepositoryFileRequest. + * @memberof google.cloud.dataform.v1beta1 + * @classdesc Represents a ReadRepositoryFileRequest. + * @implements IReadRepositoryFileRequest + * @constructor + * @param {google.cloud.dataform.v1beta1.IReadRepositoryFileRequest=} [properties] Properties to set + */ + function ReadRepositoryFileRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ReadRepositoryFileRequest name. + * @member {string} name + * @memberof google.cloud.dataform.v1beta1.ReadRepositoryFileRequest + * @instance + */ + ReadRepositoryFileRequest.prototype.name = ""; + + /** + * ReadRepositoryFileRequest commitSha. + * @member {string} commitSha + * @memberof google.cloud.dataform.v1beta1.ReadRepositoryFileRequest + * @instance + */ + ReadRepositoryFileRequest.prototype.commitSha = ""; + + /** + * ReadRepositoryFileRequest path. + * @member {string} path + * @memberof google.cloud.dataform.v1beta1.ReadRepositoryFileRequest + * @instance + */ + ReadRepositoryFileRequest.prototype.path = ""; + + /** + * Creates a new ReadRepositoryFileRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dataform.v1beta1.ReadRepositoryFileRequest + * @static + * @param {google.cloud.dataform.v1beta1.IReadRepositoryFileRequest=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.ReadRepositoryFileRequest} ReadRepositoryFileRequest instance + */ + ReadRepositoryFileRequest.create = function create(properties) { + return new ReadRepositoryFileRequest(properties); }; /** - * Encodes the specified Workspace message. Does not implicitly {@link google.cloud.dataform.v1beta1.Workspace.verify|verify} messages. + * Encodes the specified ReadRepositoryFileRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.ReadRepositoryFileRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dataform.v1beta1.Workspace + * @memberof google.cloud.dataform.v1beta1.ReadRepositoryFileRequest * @static - * @param {google.cloud.dataform.v1beta1.IWorkspace} message Workspace message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IReadRepositoryFileRequest} message ReadRepositoryFileRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Workspace.encode = function encode(message, writer) { + ReadRepositoryFileRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.commitSha != null && Object.hasOwnProperty.call(message, "commitSha")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.commitSha); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.path); return writer; }; /** - * Encodes the specified Workspace message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.Workspace.verify|verify} messages. + * Encodes the specified ReadRepositoryFileRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.ReadRepositoryFileRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.Workspace + * @memberof google.cloud.dataform.v1beta1.ReadRepositoryFileRequest * @static - * @param {google.cloud.dataform.v1beta1.IWorkspace} message Workspace message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IReadRepositoryFileRequest} message ReadRepositoryFileRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Workspace.encodeDelimited = function encodeDelimited(message, writer) { + ReadRepositoryFileRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Workspace message from the specified reader or buffer. + * Decodes a ReadRepositoryFileRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dataform.v1beta1.Workspace + * @memberof google.cloud.dataform.v1beta1.ReadRepositoryFileRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.Workspace} Workspace + * @returns {google.cloud.dataform.v1beta1.ReadRepositoryFileRequest} ReadRepositoryFileRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Workspace.decode = function decode(reader, length) { + ReadRepositoryFileRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.Workspace(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -24619,6 +26368,14 @@ message.name = reader.string(); break; } + case 2: { + message.commitSha = reader.string(); + break; + } + case 3: { + message.path = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -24628,126 +26385,139 @@ }; /** - * Decodes a Workspace message from the specified reader or buffer, length delimited. + * Decodes a ReadRepositoryFileRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.Workspace + * @memberof google.cloud.dataform.v1beta1.ReadRepositoryFileRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.Workspace} Workspace + * @returns {google.cloud.dataform.v1beta1.ReadRepositoryFileRequest} ReadRepositoryFileRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Workspace.decodeDelimited = function decodeDelimited(reader) { + ReadRepositoryFileRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Workspace message. + * Verifies a ReadRepositoryFileRequest message. * @function verify - * @memberof google.cloud.dataform.v1beta1.Workspace + * @memberof google.cloud.dataform.v1beta1.ReadRepositoryFileRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Workspace.verify = function verify(message) { + ReadRepositoryFileRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; + if (message.commitSha != null && message.hasOwnProperty("commitSha")) + if (!$util.isString(message.commitSha)) + return "commitSha: string expected"; + if (message.path != null && message.hasOwnProperty("path")) + if (!$util.isString(message.path)) + return "path: string expected"; return null; }; /** - * Creates a Workspace message from a plain object. Also converts values to their respective internal types. + * Creates a ReadRepositoryFileRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dataform.v1beta1.Workspace + * @memberof google.cloud.dataform.v1beta1.ReadRepositoryFileRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.Workspace} Workspace + * @returns {google.cloud.dataform.v1beta1.ReadRepositoryFileRequest} ReadRepositoryFileRequest */ - Workspace.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.Workspace) + ReadRepositoryFileRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest) return object; - var message = new $root.google.cloud.dataform.v1beta1.Workspace(); + var message = new $root.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest(); if (object.name != null) message.name = String(object.name); + if (object.commitSha != null) + message.commitSha = String(object.commitSha); + if (object.path != null) + message.path = String(object.path); return message; }; /** - * Creates a plain object from a Workspace message. Also converts values to other types if specified. + * Creates a plain object from a ReadRepositoryFileRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dataform.v1beta1.Workspace + * @memberof google.cloud.dataform.v1beta1.ReadRepositoryFileRequest * @static - * @param {google.cloud.dataform.v1beta1.Workspace} message Workspace + * @param {google.cloud.dataform.v1beta1.ReadRepositoryFileRequest} message ReadRepositoryFileRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Workspace.toObject = function toObject(message, options) { + ReadRepositoryFileRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { object.name = ""; + object.commitSha = ""; + object.path = ""; + } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; + if (message.commitSha != null && message.hasOwnProperty("commitSha")) + object.commitSha = message.commitSha; + if (message.path != null && message.hasOwnProperty("path")) + object.path = message.path; return object; }; /** - * Converts this Workspace to JSON. + * Converts this ReadRepositoryFileRequest to JSON. * @function toJSON - * @memberof google.cloud.dataform.v1beta1.Workspace + * @memberof google.cloud.dataform.v1beta1.ReadRepositoryFileRequest * @instance * @returns {Object.} JSON object */ - Workspace.prototype.toJSON = function toJSON() { + ReadRepositoryFileRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Workspace + * Gets the default type url for ReadRepositoryFileRequest * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.Workspace + * @memberof google.cloud.dataform.v1beta1.ReadRepositoryFileRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Workspace.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReadRepositoryFileRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.Workspace"; + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.ReadRepositoryFileRequest"; }; - return Workspace; + return ReadRepositoryFileRequest; })(); - v1beta1.ListWorkspacesRequest = (function() { + v1beta1.ReadRepositoryFileResponse = (function() { /** - * Properties of a ListWorkspacesRequest. + * Properties of a ReadRepositoryFileResponse. * @memberof google.cloud.dataform.v1beta1 - * @interface IListWorkspacesRequest - * @property {string|null} [parent] ListWorkspacesRequest parent - * @property {number|null} [pageSize] ListWorkspacesRequest pageSize - * @property {string|null} [pageToken] ListWorkspacesRequest pageToken - * @property {string|null} [orderBy] ListWorkspacesRequest orderBy - * @property {string|null} [filter] ListWorkspacesRequest filter + * @interface IReadRepositoryFileResponse + * @property {Uint8Array|null} [contents] ReadRepositoryFileResponse contents */ /** - * Constructs a new ListWorkspacesRequest. + * Constructs a new ReadRepositoryFileResponse. * @memberof google.cloud.dataform.v1beta1 - * @classdesc Represents a ListWorkspacesRequest. - * @implements IListWorkspacesRequest + * @classdesc Represents a ReadRepositoryFileResponse. + * @implements IReadRepositoryFileResponse * @constructor - * @param {google.cloud.dataform.v1beta1.IListWorkspacesRequest=} [properties] Properties to set + * @param {google.cloud.dataform.v1beta1.IReadRepositoryFileResponse=} [properties] Properties to set */ - function ListWorkspacesRequest(properties) { + function ReadRepositoryFileResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24755,131 +26525,75 @@ } /** - * ListWorkspacesRequest parent. - * @member {string} parent - * @memberof google.cloud.dataform.v1beta1.ListWorkspacesRequest - * @instance - */ - ListWorkspacesRequest.prototype.parent = ""; - - /** - * ListWorkspacesRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dataform.v1beta1.ListWorkspacesRequest - * @instance - */ - ListWorkspacesRequest.prototype.pageSize = 0; - - /** - * ListWorkspacesRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dataform.v1beta1.ListWorkspacesRequest - * @instance - */ - ListWorkspacesRequest.prototype.pageToken = ""; - - /** - * ListWorkspacesRequest orderBy. - * @member {string} orderBy - * @memberof google.cloud.dataform.v1beta1.ListWorkspacesRequest - * @instance - */ - ListWorkspacesRequest.prototype.orderBy = ""; - - /** - * ListWorkspacesRequest filter. - * @member {string} filter - * @memberof google.cloud.dataform.v1beta1.ListWorkspacesRequest + * ReadRepositoryFileResponse contents. + * @member {Uint8Array} contents + * @memberof google.cloud.dataform.v1beta1.ReadRepositoryFileResponse * @instance */ - ListWorkspacesRequest.prototype.filter = ""; + ReadRepositoryFileResponse.prototype.contents = $util.newBuffer([]); /** - * Creates a new ListWorkspacesRequest instance using the specified properties. + * Creates a new ReadRepositoryFileResponse instance using the specified properties. * @function create - * @memberof google.cloud.dataform.v1beta1.ListWorkspacesRequest + * @memberof google.cloud.dataform.v1beta1.ReadRepositoryFileResponse * @static - * @param {google.cloud.dataform.v1beta1.IListWorkspacesRequest=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.ListWorkspacesRequest} ListWorkspacesRequest instance + * @param {google.cloud.dataform.v1beta1.IReadRepositoryFileResponse=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.ReadRepositoryFileResponse} ReadRepositoryFileResponse instance */ - ListWorkspacesRequest.create = function create(properties) { - return new ListWorkspacesRequest(properties); + ReadRepositoryFileResponse.create = function create(properties) { + return new ReadRepositoryFileResponse(properties); }; /** - * Encodes the specified ListWorkspacesRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.ListWorkspacesRequest.verify|verify} messages. + * Encodes the specified ReadRepositoryFileResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.ReadRepositoryFileResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dataform.v1beta1.ListWorkspacesRequest + * @memberof google.cloud.dataform.v1beta1.ReadRepositoryFileResponse * @static - * @param {google.cloud.dataform.v1beta1.IListWorkspacesRequest} message ListWorkspacesRequest message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IReadRepositoryFileResponse} message ReadRepositoryFileResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListWorkspacesRequest.encode = function encode(message, writer) { + ReadRepositoryFileResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.orderBy); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.filter); + if (message.contents != null && Object.hasOwnProperty.call(message, "contents")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.contents); return writer; }; /** - * Encodes the specified ListWorkspacesRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.ListWorkspacesRequest.verify|verify} messages. + * Encodes the specified ReadRepositoryFileResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.ReadRepositoryFileResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.ListWorkspacesRequest + * @memberof google.cloud.dataform.v1beta1.ReadRepositoryFileResponse * @static - * @param {google.cloud.dataform.v1beta1.IListWorkspacesRequest} message ListWorkspacesRequest message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IReadRepositoryFileResponse} message ReadRepositoryFileResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListWorkspacesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ReadRepositoryFileResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListWorkspacesRequest message from the specified reader or buffer. + * Decodes a ReadRepositoryFileResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dataform.v1beta1.ListWorkspacesRequest + * @memberof google.cloud.dataform.v1beta1.ReadRepositoryFileResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.ListWorkspacesRequest} ListWorkspacesRequest + * @returns {google.cloud.dataform.v1beta1.ReadRepositoryFileResponse} ReadRepositoryFileResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListWorkspacesRequest.decode = function decode(reader, length) { + ReadRepositoryFileResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.ListWorkspacesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.pageSize = reader.int32(); - break; - } - case 3: { - message.pageToken = reader.string(); - break; - } - case 4: { - message.orderBy = reader.string(); - break; - } - case 5: { - message.filter = reader.string(); + message.contents = reader.bytes(); break; } default: @@ -24891,159 +26605,135 @@ }; /** - * Decodes a ListWorkspacesRequest message from the specified reader or buffer, length delimited. + * Decodes a ReadRepositoryFileResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.ListWorkspacesRequest + * @memberof google.cloud.dataform.v1beta1.ReadRepositoryFileResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.ListWorkspacesRequest} ListWorkspacesRequest + * @returns {google.cloud.dataform.v1beta1.ReadRepositoryFileResponse} ReadRepositoryFileResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListWorkspacesRequest.decodeDelimited = function decodeDelimited(reader) { + ReadRepositoryFileResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListWorkspacesRequest message. + * Verifies a ReadRepositoryFileResponse message. * @function verify - * @memberof google.cloud.dataform.v1beta1.ListWorkspacesRequest + * @memberof google.cloud.dataform.v1beta1.ReadRepositoryFileResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListWorkspacesRequest.verify = function verify(message) { + ReadRepositoryFileResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - if (!$util.isString(message.orderBy)) - return "orderBy: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; + if (message.contents != null && message.hasOwnProperty("contents")) + if (!(message.contents && typeof message.contents.length === "number" || $util.isString(message.contents))) + return "contents: buffer expected"; return null; }; /** - * Creates a ListWorkspacesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ReadRepositoryFileResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dataform.v1beta1.ListWorkspacesRequest + * @memberof google.cloud.dataform.v1beta1.ReadRepositoryFileResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.ListWorkspacesRequest} ListWorkspacesRequest + * @returns {google.cloud.dataform.v1beta1.ReadRepositoryFileResponse} ReadRepositoryFileResponse */ - ListWorkspacesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.ListWorkspacesRequest) + ReadRepositoryFileResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse) return object; - var message = new $root.google.cloud.dataform.v1beta1.ListWorkspacesRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.orderBy != null) - message.orderBy = String(object.orderBy); - if (object.filter != null) - message.filter = String(object.filter); + var message = new $root.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse(); + if (object.contents != null) + if (typeof object.contents === "string") + $util.base64.decode(object.contents, message.contents = $util.newBuffer($util.base64.length(object.contents)), 0); + else if (object.contents.length >= 0) + message.contents = object.contents; return message; }; /** - * Creates a plain object from a ListWorkspacesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ReadRepositoryFileResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dataform.v1beta1.ListWorkspacesRequest + * @memberof google.cloud.dataform.v1beta1.ReadRepositoryFileResponse * @static - * @param {google.cloud.dataform.v1beta1.ListWorkspacesRequest} message ListWorkspacesRequest + * @param {google.cloud.dataform.v1beta1.ReadRepositoryFileResponse} message ReadRepositoryFileResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListWorkspacesRequest.toObject = function toObject(message, options) { + ReadRepositoryFileResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - object.orderBy = ""; - object.filter = ""; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - object.orderBy = message.orderBy; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; + if (options.defaults) + if (options.bytes === String) + object.contents = ""; + else { + object.contents = []; + if (options.bytes !== Array) + object.contents = $util.newBuffer(object.contents); + } + if (message.contents != null && message.hasOwnProperty("contents")) + object.contents = options.bytes === String ? $util.base64.encode(message.contents, 0, message.contents.length) : options.bytes === Array ? Array.prototype.slice.call(message.contents) : message.contents; return object; }; /** - * Converts this ListWorkspacesRequest to JSON. + * Converts this ReadRepositoryFileResponse to JSON. * @function toJSON - * @memberof google.cloud.dataform.v1beta1.ListWorkspacesRequest + * @memberof google.cloud.dataform.v1beta1.ReadRepositoryFileResponse * @instance * @returns {Object.} JSON object */ - ListWorkspacesRequest.prototype.toJSON = function toJSON() { + ReadRepositoryFileResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListWorkspacesRequest + * Gets the default type url for ReadRepositoryFileResponse * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.ListWorkspacesRequest + * @memberof google.cloud.dataform.v1beta1.ReadRepositoryFileResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListWorkspacesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReadRepositoryFileResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.ListWorkspacesRequest"; + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.ReadRepositoryFileResponse"; }; - return ListWorkspacesRequest; + return ReadRepositoryFileResponse; })(); - v1beta1.ListWorkspacesResponse = (function() { + v1beta1.QueryRepositoryDirectoryContentsRequest = (function() { /** - * Properties of a ListWorkspacesResponse. + * Properties of a QueryRepositoryDirectoryContentsRequest. * @memberof google.cloud.dataform.v1beta1 - * @interface IListWorkspacesResponse - * @property {Array.|null} [workspaces] ListWorkspacesResponse workspaces - * @property {string|null} [nextPageToken] ListWorkspacesResponse nextPageToken - * @property {Array.|null} [unreachable] ListWorkspacesResponse unreachable + * @interface IQueryRepositoryDirectoryContentsRequest + * @property {string|null} [name] QueryRepositoryDirectoryContentsRequest name + * @property {string|null} [commitSha] QueryRepositoryDirectoryContentsRequest commitSha + * @property {string|null} [path] QueryRepositoryDirectoryContentsRequest path + * @property {number|null} [pageSize] QueryRepositoryDirectoryContentsRequest pageSize + * @property {string|null} [pageToken] QueryRepositoryDirectoryContentsRequest pageToken */ /** - * Constructs a new ListWorkspacesResponse. + * Constructs a new QueryRepositoryDirectoryContentsRequest. * @memberof google.cloud.dataform.v1beta1 - * @classdesc Represents a ListWorkspacesResponse. - * @implements IListWorkspacesResponse + * @classdesc Represents a QueryRepositoryDirectoryContentsRequest. + * @implements IQueryRepositoryDirectoryContentsRequest * @constructor - * @param {google.cloud.dataform.v1beta1.IListWorkspacesResponse=} [properties] Properties to set + * @param {google.cloud.dataform.v1beta1.IQueryRepositoryDirectoryContentsRequest=} [properties] Properties to set */ - function ListWorkspacesResponse(properties) { - this.workspaces = []; - this.unreachable = []; + function QueryRepositoryDirectoryContentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -25051,109 +26741,131 @@ } /** - * ListWorkspacesResponse workspaces. - * @member {Array.} workspaces - * @memberof google.cloud.dataform.v1beta1.ListWorkspacesResponse + * QueryRepositoryDirectoryContentsRequest name. + * @member {string} name + * @memberof google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest * @instance */ - ListWorkspacesResponse.prototype.workspaces = $util.emptyArray; + QueryRepositoryDirectoryContentsRequest.prototype.name = ""; /** - * ListWorkspacesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dataform.v1beta1.ListWorkspacesResponse + * QueryRepositoryDirectoryContentsRequest commitSha. + * @member {string} commitSha + * @memberof google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest * @instance */ - ListWorkspacesResponse.prototype.nextPageToken = ""; + QueryRepositoryDirectoryContentsRequest.prototype.commitSha = ""; /** - * ListWorkspacesResponse unreachable. - * @member {Array.} unreachable - * @memberof google.cloud.dataform.v1beta1.ListWorkspacesResponse + * QueryRepositoryDirectoryContentsRequest path. + * @member {string} path + * @memberof google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest * @instance */ - ListWorkspacesResponse.prototype.unreachable = $util.emptyArray; + QueryRepositoryDirectoryContentsRequest.prototype.path = ""; /** - * Creates a new ListWorkspacesResponse instance using the specified properties. + * QueryRepositoryDirectoryContentsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest + * @instance + */ + QueryRepositoryDirectoryContentsRequest.prototype.pageSize = 0; + + /** + * QueryRepositoryDirectoryContentsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest + * @instance + */ + QueryRepositoryDirectoryContentsRequest.prototype.pageToken = ""; + + /** + * Creates a new QueryRepositoryDirectoryContentsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dataform.v1beta1.ListWorkspacesResponse + * @memberof google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest * @static - * @param {google.cloud.dataform.v1beta1.IListWorkspacesResponse=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.ListWorkspacesResponse} ListWorkspacesResponse instance + * @param {google.cloud.dataform.v1beta1.IQueryRepositoryDirectoryContentsRequest=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest} QueryRepositoryDirectoryContentsRequest instance */ - ListWorkspacesResponse.create = function create(properties) { - return new ListWorkspacesResponse(properties); + QueryRepositoryDirectoryContentsRequest.create = function create(properties) { + return new QueryRepositoryDirectoryContentsRequest(properties); }; /** - * Encodes the specified ListWorkspacesResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.ListWorkspacesResponse.verify|verify} messages. + * Encodes the specified QueryRepositoryDirectoryContentsRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dataform.v1beta1.ListWorkspacesResponse + * @memberof google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest * @static - * @param {google.cloud.dataform.v1beta1.IListWorkspacesResponse} message ListWorkspacesResponse message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IQueryRepositoryDirectoryContentsRequest} message QueryRepositoryDirectoryContentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListWorkspacesResponse.encode = function encode(message, writer) { + QueryRepositoryDirectoryContentsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.workspaces != null && message.workspaces.length) - for (var i = 0; i < message.workspaces.length; ++i) - $root.google.cloud.dataform.v1beta1.Workspace.encode(message.workspaces[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); - if (message.unreachable != null && message.unreachable.length) - for (var i = 0; i < message.unreachable.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.commitSha != null && Object.hasOwnProperty.call(message, "commitSha")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.commitSha); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.path); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.pageToken); return writer; }; /** - * Encodes the specified ListWorkspacesResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.ListWorkspacesResponse.verify|verify} messages. + * Encodes the specified QueryRepositoryDirectoryContentsRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.ListWorkspacesResponse + * @memberof google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest * @static - * @param {google.cloud.dataform.v1beta1.IListWorkspacesResponse} message ListWorkspacesResponse message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IQueryRepositoryDirectoryContentsRequest} message QueryRepositoryDirectoryContentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListWorkspacesResponse.encodeDelimited = function encodeDelimited(message, writer) { + QueryRepositoryDirectoryContentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListWorkspacesResponse message from the specified reader or buffer. + * Decodes a QueryRepositoryDirectoryContentsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dataform.v1beta1.ListWorkspacesResponse + * @memberof google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.ListWorkspacesResponse} ListWorkspacesResponse + * @returns {google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest} QueryRepositoryDirectoryContentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListWorkspacesResponse.decode = function decode(reader, length) { + QueryRepositoryDirectoryContentsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.ListWorkspacesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.workspaces && message.workspaces.length)) - message.workspaces = []; - message.workspaces.push($root.google.cloud.dataform.v1beta1.Workspace.decode(reader, reader.uint32())); + message.name = reader.string(); break; } case 2: { - message.nextPageToken = reader.string(); + message.commitSha = reader.string(); break; } case 3: { - if (!(message.unreachable && message.unreachable.length)) - message.unreachable = []; - message.unreachable.push(reader.string()); + message.path = reader.string(); + break; + } + case 4: { + message.pageSize = reader.int32(); + break; + } + case 5: { + message.pageToken = reader.string(); break; } default: @@ -25165,169 +26877,157 @@ }; /** - * Decodes a ListWorkspacesResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryRepositoryDirectoryContentsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.ListWorkspacesResponse + * @memberof google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.ListWorkspacesResponse} ListWorkspacesResponse + * @returns {google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest} QueryRepositoryDirectoryContentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListWorkspacesResponse.decodeDelimited = function decodeDelimited(reader) { + QueryRepositoryDirectoryContentsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListWorkspacesResponse message. + * Verifies a QueryRepositoryDirectoryContentsRequest message. * @function verify - * @memberof google.cloud.dataform.v1beta1.ListWorkspacesResponse + * @memberof google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListWorkspacesResponse.verify = function verify(message) { + QueryRepositoryDirectoryContentsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.workspaces != null && message.hasOwnProperty("workspaces")) { - if (!Array.isArray(message.workspaces)) - return "workspaces: array expected"; - for (var i = 0; i < message.workspaces.length; ++i) { - var error = $root.google.cloud.dataform.v1beta1.Workspace.verify(message.workspaces[i]); - if (error) - return "workspaces." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - if (message.unreachable != null && message.hasOwnProperty("unreachable")) { - if (!Array.isArray(message.unreachable)) - return "unreachable: array expected"; - for (var i = 0; i < message.unreachable.length; ++i) - if (!$util.isString(message.unreachable[i])) - return "unreachable: string[] expected"; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.commitSha != null && message.hasOwnProperty("commitSha")) + if (!$util.isString(message.commitSha)) + return "commitSha: string expected"; + if (message.path != null && message.hasOwnProperty("path")) + if (!$util.isString(message.path)) + return "path: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates a ListWorkspacesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryRepositoryDirectoryContentsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dataform.v1beta1.ListWorkspacesResponse + * @memberof google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.ListWorkspacesResponse} ListWorkspacesResponse + * @returns {google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest} QueryRepositoryDirectoryContentsRequest */ - ListWorkspacesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.ListWorkspacesResponse) + QueryRepositoryDirectoryContentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest) return object; - var message = new $root.google.cloud.dataform.v1beta1.ListWorkspacesResponse(); - if (object.workspaces) { - if (!Array.isArray(object.workspaces)) - throw TypeError(".google.cloud.dataform.v1beta1.ListWorkspacesResponse.workspaces: array expected"); - message.workspaces = []; - for (var i = 0; i < object.workspaces.length; ++i) { - if (typeof object.workspaces[i] !== "object") - throw TypeError(".google.cloud.dataform.v1beta1.ListWorkspacesResponse.workspaces: object expected"); - message.workspaces[i] = $root.google.cloud.dataform.v1beta1.Workspace.fromObject(object.workspaces[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - if (object.unreachable) { - if (!Array.isArray(object.unreachable)) - throw TypeError(".google.cloud.dataform.v1beta1.ListWorkspacesResponse.unreachable: array expected"); - message.unreachable = []; - for (var i = 0; i < object.unreachable.length; ++i) - message.unreachable[i] = String(object.unreachable[i]); - } + var message = new $root.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.commitSha != null) + message.commitSha = String(object.commitSha); + if (object.path != null) + message.path = String(object.path); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from a ListWorkspacesResponse message. Also converts values to other types if specified. + * Creates a plain object from a QueryRepositoryDirectoryContentsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dataform.v1beta1.ListWorkspacesResponse + * @memberof google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest * @static - * @param {google.cloud.dataform.v1beta1.ListWorkspacesResponse} message ListWorkspacesResponse + * @param {google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest} message QueryRepositoryDirectoryContentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListWorkspacesResponse.toObject = function toObject(message, options) { + QueryRepositoryDirectoryContentsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.workspaces = []; - object.unreachable = []; - } - if (options.defaults) - object.nextPageToken = ""; - if (message.workspaces && message.workspaces.length) { - object.workspaces = []; - for (var j = 0; j < message.workspaces.length; ++j) - object.workspaces[j] = $root.google.cloud.dataform.v1beta1.Workspace.toObject(message.workspaces[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - if (message.unreachable && message.unreachable.length) { - object.unreachable = []; - for (var j = 0; j < message.unreachable.length; ++j) - object.unreachable[j] = message.unreachable[j]; + if (options.defaults) { + object.name = ""; + object.commitSha = ""; + object.path = ""; + object.pageSize = 0; + object.pageToken = ""; } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.commitSha != null && message.hasOwnProperty("commitSha")) + object.commitSha = message.commitSha; + if (message.path != null && message.hasOwnProperty("path")) + object.path = message.path; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; return object; }; /** - * Converts this ListWorkspacesResponse to JSON. + * Converts this QueryRepositoryDirectoryContentsRequest to JSON. * @function toJSON - * @memberof google.cloud.dataform.v1beta1.ListWorkspacesResponse + * @memberof google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest * @instance * @returns {Object.} JSON object */ - ListWorkspacesResponse.prototype.toJSON = function toJSON() { + QueryRepositoryDirectoryContentsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListWorkspacesResponse + * Gets the default type url for QueryRepositoryDirectoryContentsRequest * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.ListWorkspacesResponse + * @memberof google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListWorkspacesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + QueryRepositoryDirectoryContentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.ListWorkspacesResponse"; + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest"; }; - return ListWorkspacesResponse; + return QueryRepositoryDirectoryContentsRequest; })(); - v1beta1.GetWorkspaceRequest = (function() { + v1beta1.QueryRepositoryDirectoryContentsResponse = (function() { /** - * Properties of a GetWorkspaceRequest. + * Properties of a QueryRepositoryDirectoryContentsResponse. * @memberof google.cloud.dataform.v1beta1 - * @interface IGetWorkspaceRequest - * @property {string|null} [name] GetWorkspaceRequest name + * @interface IQueryRepositoryDirectoryContentsResponse + * @property {Array.|null} [directoryEntries] QueryRepositoryDirectoryContentsResponse directoryEntries + * @property {string|null} [nextPageToken] QueryRepositoryDirectoryContentsResponse nextPageToken */ /** - * Constructs a new GetWorkspaceRequest. + * Constructs a new QueryRepositoryDirectoryContentsResponse. * @memberof google.cloud.dataform.v1beta1 - * @classdesc Represents a GetWorkspaceRequest. - * @implements IGetWorkspaceRequest + * @classdesc Represents a QueryRepositoryDirectoryContentsResponse. + * @implements IQueryRepositoryDirectoryContentsResponse * @constructor - * @param {google.cloud.dataform.v1beta1.IGetWorkspaceRequest=} [properties] Properties to set + * @param {google.cloud.dataform.v1beta1.IQueryRepositoryDirectoryContentsResponse=} [properties] Properties to set */ - function GetWorkspaceRequest(properties) { + function QueryRepositoryDirectoryContentsResponse(properties) { + this.directoryEntries = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -25335,75 +27035,92 @@ } /** - * GetWorkspaceRequest name. - * @member {string} name - * @memberof google.cloud.dataform.v1beta1.GetWorkspaceRequest + * QueryRepositoryDirectoryContentsResponse directoryEntries. + * @member {Array.} directoryEntries + * @memberof google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse * @instance */ - GetWorkspaceRequest.prototype.name = ""; + QueryRepositoryDirectoryContentsResponse.prototype.directoryEntries = $util.emptyArray; /** - * Creates a new GetWorkspaceRequest instance using the specified properties. + * QueryRepositoryDirectoryContentsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse + * @instance + */ + QueryRepositoryDirectoryContentsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new QueryRepositoryDirectoryContentsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dataform.v1beta1.GetWorkspaceRequest + * @memberof google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse * @static - * @param {google.cloud.dataform.v1beta1.IGetWorkspaceRequest=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.GetWorkspaceRequest} GetWorkspaceRequest instance + * @param {google.cloud.dataform.v1beta1.IQueryRepositoryDirectoryContentsResponse=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse} QueryRepositoryDirectoryContentsResponse instance */ - GetWorkspaceRequest.create = function create(properties) { - return new GetWorkspaceRequest(properties); + QueryRepositoryDirectoryContentsResponse.create = function create(properties) { + return new QueryRepositoryDirectoryContentsResponse(properties); }; /** - * Encodes the specified GetWorkspaceRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.GetWorkspaceRequest.verify|verify} messages. + * Encodes the specified QueryRepositoryDirectoryContentsResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dataform.v1beta1.GetWorkspaceRequest + * @memberof google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse * @static - * @param {google.cloud.dataform.v1beta1.IGetWorkspaceRequest} message GetWorkspaceRequest message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IQueryRepositoryDirectoryContentsResponse} message QueryRepositoryDirectoryContentsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetWorkspaceRequest.encode = function encode(message, writer) { + QueryRepositoryDirectoryContentsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.directoryEntries != null && message.directoryEntries.length) + for (var i = 0; i < message.directoryEntries.length; ++i) + $root.google.cloud.dataform.v1beta1.DirectoryEntry.encode(message.directoryEntries[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified GetWorkspaceRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.GetWorkspaceRequest.verify|verify} messages. + * Encodes the specified QueryRepositoryDirectoryContentsResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.GetWorkspaceRequest + * @memberof google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse * @static - * @param {google.cloud.dataform.v1beta1.IGetWorkspaceRequest} message GetWorkspaceRequest message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IQueryRepositoryDirectoryContentsResponse} message QueryRepositoryDirectoryContentsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetWorkspaceRequest.encodeDelimited = function encodeDelimited(message, writer) { + QueryRepositoryDirectoryContentsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetWorkspaceRequest message from the specified reader or buffer. + * Decodes a QueryRepositoryDirectoryContentsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dataform.v1beta1.GetWorkspaceRequest + * @memberof google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.GetWorkspaceRequest} GetWorkspaceRequest + * @returns {google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse} QueryRepositoryDirectoryContentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetWorkspaceRequest.decode = function decode(reader, length) { + QueryRepositoryDirectoryContentsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.GetWorkspaceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + if (!(message.directoryEntries && message.directoryEntries.length)) + message.directoryEntries = []; + message.directoryEntries.push($root.google.cloud.dataform.v1beta1.DirectoryEntry.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); break; } default: @@ -25415,124 +27132,150 @@ }; /** - * Decodes a GetWorkspaceRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryRepositoryDirectoryContentsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.GetWorkspaceRequest + * @memberof google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.GetWorkspaceRequest} GetWorkspaceRequest + * @returns {google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse} QueryRepositoryDirectoryContentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetWorkspaceRequest.decodeDelimited = function decodeDelimited(reader) { + QueryRepositoryDirectoryContentsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetWorkspaceRequest message. + * Verifies a QueryRepositoryDirectoryContentsResponse message. * @function verify - * @memberof google.cloud.dataform.v1beta1.GetWorkspaceRequest + * @memberof google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetWorkspaceRequest.verify = function verify(message) { + QueryRepositoryDirectoryContentsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.directoryEntries != null && message.hasOwnProperty("directoryEntries")) { + if (!Array.isArray(message.directoryEntries)) + return "directoryEntries: array expected"; + for (var i = 0; i < message.directoryEntries.length; ++i) { + var error = $root.google.cloud.dataform.v1beta1.DirectoryEntry.verify(message.directoryEntries[i]); + if (error) + return "directoryEntries." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a GetWorkspaceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryRepositoryDirectoryContentsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dataform.v1beta1.GetWorkspaceRequest + * @memberof google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.GetWorkspaceRequest} GetWorkspaceRequest + * @returns {google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse} QueryRepositoryDirectoryContentsResponse */ - GetWorkspaceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.GetWorkspaceRequest) + QueryRepositoryDirectoryContentsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse) return object; - var message = new $root.google.cloud.dataform.v1beta1.GetWorkspaceRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse(); + if (object.directoryEntries) { + if (!Array.isArray(object.directoryEntries)) + throw TypeError(".google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse.directoryEntries: array expected"); + message.directoryEntries = []; + for (var i = 0; i < object.directoryEntries.length; ++i) { + if (typeof object.directoryEntries[i] !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse.directoryEntries: object expected"); + message.directoryEntries[i] = $root.google.cloud.dataform.v1beta1.DirectoryEntry.fromObject(object.directoryEntries[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a GetWorkspaceRequest message. Also converts values to other types if specified. + * Creates a plain object from a QueryRepositoryDirectoryContentsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dataform.v1beta1.GetWorkspaceRequest + * @memberof google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse * @static - * @param {google.cloud.dataform.v1beta1.GetWorkspaceRequest} message GetWorkspaceRequest + * @param {google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse} message QueryRepositoryDirectoryContentsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetWorkspaceRequest.toObject = function toObject(message, options) { + QueryRepositoryDirectoryContentsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.directoryEntries = []; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.nextPageToken = ""; + if (message.directoryEntries && message.directoryEntries.length) { + object.directoryEntries = []; + for (var j = 0; j < message.directoryEntries.length; ++j) + object.directoryEntries[j] = $root.google.cloud.dataform.v1beta1.DirectoryEntry.toObject(message.directoryEntries[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this GetWorkspaceRequest to JSON. + * Converts this QueryRepositoryDirectoryContentsResponse to JSON. * @function toJSON - * @memberof google.cloud.dataform.v1beta1.GetWorkspaceRequest + * @memberof google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse * @instance * @returns {Object.} JSON object */ - GetWorkspaceRequest.prototype.toJSON = function toJSON() { + QueryRepositoryDirectoryContentsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetWorkspaceRequest + * Gets the default type url for QueryRepositoryDirectoryContentsResponse * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.GetWorkspaceRequest + * @memberof google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetWorkspaceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + QueryRepositoryDirectoryContentsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.GetWorkspaceRequest"; + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse"; }; - return GetWorkspaceRequest; + return QueryRepositoryDirectoryContentsResponse; })(); - v1beta1.CreateWorkspaceRequest = (function() { + v1beta1.FetchRepositoryHistoryRequest = (function() { /** - * Properties of a CreateWorkspaceRequest. + * Properties of a FetchRepositoryHistoryRequest. * @memberof google.cloud.dataform.v1beta1 - * @interface ICreateWorkspaceRequest - * @property {string|null} [parent] CreateWorkspaceRequest parent - * @property {google.cloud.dataform.v1beta1.IWorkspace|null} [workspace] CreateWorkspaceRequest workspace - * @property {string|null} [workspaceId] CreateWorkspaceRequest workspaceId + * @interface IFetchRepositoryHistoryRequest + * @property {string|null} [name] FetchRepositoryHistoryRequest name + * @property {number|null} [pageSize] FetchRepositoryHistoryRequest pageSize + * @property {string|null} [pageToken] FetchRepositoryHistoryRequest pageToken */ /** - * Constructs a new CreateWorkspaceRequest. + * Constructs a new FetchRepositoryHistoryRequest. * @memberof google.cloud.dataform.v1beta1 - * @classdesc Represents a CreateWorkspaceRequest. - * @implements ICreateWorkspaceRequest + * @classdesc Represents a FetchRepositoryHistoryRequest. + * @implements IFetchRepositoryHistoryRequest * @constructor - * @param {google.cloud.dataform.v1beta1.ICreateWorkspaceRequest=} [properties] Properties to set + * @param {google.cloud.dataform.v1beta1.IFetchRepositoryHistoryRequest=} [properties] Properties to set */ - function CreateWorkspaceRequest(properties) { + function FetchRepositoryHistoryRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -25540,103 +27283,103 @@ } /** - * CreateWorkspaceRequest parent. - * @member {string} parent - * @memberof google.cloud.dataform.v1beta1.CreateWorkspaceRequest + * FetchRepositoryHistoryRequest name. + * @member {string} name + * @memberof google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest * @instance */ - CreateWorkspaceRequest.prototype.parent = ""; + FetchRepositoryHistoryRequest.prototype.name = ""; /** - * CreateWorkspaceRequest workspace. - * @member {google.cloud.dataform.v1beta1.IWorkspace|null|undefined} workspace - * @memberof google.cloud.dataform.v1beta1.CreateWorkspaceRequest + * FetchRepositoryHistoryRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest * @instance */ - CreateWorkspaceRequest.prototype.workspace = null; + FetchRepositoryHistoryRequest.prototype.pageSize = 0; /** - * CreateWorkspaceRequest workspaceId. - * @member {string} workspaceId - * @memberof google.cloud.dataform.v1beta1.CreateWorkspaceRequest + * FetchRepositoryHistoryRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest * @instance */ - CreateWorkspaceRequest.prototype.workspaceId = ""; + FetchRepositoryHistoryRequest.prototype.pageToken = ""; /** - * Creates a new CreateWorkspaceRequest instance using the specified properties. + * Creates a new FetchRepositoryHistoryRequest instance using the specified properties. * @function create - * @memberof google.cloud.dataform.v1beta1.CreateWorkspaceRequest + * @memberof google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest * @static - * @param {google.cloud.dataform.v1beta1.ICreateWorkspaceRequest=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.CreateWorkspaceRequest} CreateWorkspaceRequest instance + * @param {google.cloud.dataform.v1beta1.IFetchRepositoryHistoryRequest=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest} FetchRepositoryHistoryRequest instance */ - CreateWorkspaceRequest.create = function create(properties) { - return new CreateWorkspaceRequest(properties); + FetchRepositoryHistoryRequest.create = function create(properties) { + return new FetchRepositoryHistoryRequest(properties); }; /** - * Encodes the specified CreateWorkspaceRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.CreateWorkspaceRequest.verify|verify} messages. + * Encodes the specified FetchRepositoryHistoryRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dataform.v1beta1.CreateWorkspaceRequest + * @memberof google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest * @static - * @param {google.cloud.dataform.v1beta1.ICreateWorkspaceRequest} message CreateWorkspaceRequest message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IFetchRepositoryHistoryRequest} message FetchRepositoryHistoryRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateWorkspaceRequest.encode = function encode(message, writer) { + FetchRepositoryHistoryRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.workspace != null && Object.hasOwnProperty.call(message, "workspace")) - $root.google.cloud.dataform.v1beta1.Workspace.encode(message.workspace, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.workspaceId != null && Object.hasOwnProperty.call(message, "workspaceId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.workspaceId); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.pageToken); return writer; }; /** - * Encodes the specified CreateWorkspaceRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CreateWorkspaceRequest.verify|verify} messages. + * Encodes the specified FetchRepositoryHistoryRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.CreateWorkspaceRequest + * @memberof google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest * @static - * @param {google.cloud.dataform.v1beta1.ICreateWorkspaceRequest} message CreateWorkspaceRequest message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IFetchRepositoryHistoryRequest} message FetchRepositoryHistoryRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateWorkspaceRequest.encodeDelimited = function encodeDelimited(message, writer) { + FetchRepositoryHistoryRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateWorkspaceRequest message from the specified reader or buffer. + * Decodes a FetchRepositoryHistoryRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dataform.v1beta1.CreateWorkspaceRequest + * @memberof google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.CreateWorkspaceRequest} CreateWorkspaceRequest + * @returns {google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest} FetchRepositoryHistoryRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateWorkspaceRequest.decode = function decode(reader, length) { + FetchRepositoryHistoryRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.CreateWorkspaceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.name = reader.string(); break; } case 2: { - message.workspace = $root.google.cloud.dataform.v1beta1.Workspace.decode(reader, reader.uint32()); + message.pageSize = reader.int32(); break; } - case 3: { - message.workspaceId = reader.string(); + case 5: { + message.pageToken = reader.string(); break; } default: @@ -25648,144 +27391,141 @@ }; /** - * Decodes a CreateWorkspaceRequest message from the specified reader or buffer, length delimited. + * Decodes a FetchRepositoryHistoryRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.CreateWorkspaceRequest + * @memberof google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.CreateWorkspaceRequest} CreateWorkspaceRequest + * @returns {google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest} FetchRepositoryHistoryRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateWorkspaceRequest.decodeDelimited = function decodeDelimited(reader) { + FetchRepositoryHistoryRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateWorkspaceRequest message. + * Verifies a FetchRepositoryHistoryRequest message. * @function verify - * @memberof google.cloud.dataform.v1beta1.CreateWorkspaceRequest + * @memberof google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateWorkspaceRequest.verify = function verify(message) { + FetchRepositoryHistoryRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.workspace != null && message.hasOwnProperty("workspace")) { - var error = $root.google.cloud.dataform.v1beta1.Workspace.verify(message.workspace); - if (error) - return "workspace." + error; - } - if (message.workspaceId != null && message.hasOwnProperty("workspaceId")) - if (!$util.isString(message.workspaceId)) - return "workspaceId: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates a CreateWorkspaceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FetchRepositoryHistoryRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dataform.v1beta1.CreateWorkspaceRequest + * @memberof google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.CreateWorkspaceRequest} CreateWorkspaceRequest + * @returns {google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest} FetchRepositoryHistoryRequest */ - CreateWorkspaceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.CreateWorkspaceRequest) + FetchRepositoryHistoryRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest) return object; - var message = new $root.google.cloud.dataform.v1beta1.CreateWorkspaceRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.workspace != null) { - if (typeof object.workspace !== "object") - throw TypeError(".google.cloud.dataform.v1beta1.CreateWorkspaceRequest.workspace: object expected"); - message.workspace = $root.google.cloud.dataform.v1beta1.Workspace.fromObject(object.workspace); - } - if (object.workspaceId != null) - message.workspaceId = String(object.workspaceId); + var message = new $root.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from a CreateWorkspaceRequest message. Also converts values to other types if specified. + * Creates a plain object from a FetchRepositoryHistoryRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dataform.v1beta1.CreateWorkspaceRequest + * @memberof google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest * @static - * @param {google.cloud.dataform.v1beta1.CreateWorkspaceRequest} message CreateWorkspaceRequest + * @param {google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest} message FetchRepositoryHistoryRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateWorkspaceRequest.toObject = function toObject(message, options) { + FetchRepositoryHistoryRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.workspace = null; - object.workspaceId = ""; + object.name = ""; + object.pageSize = 0; + object.pageToken = ""; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.workspace != null && message.hasOwnProperty("workspace")) - object.workspace = $root.google.cloud.dataform.v1beta1.Workspace.toObject(message.workspace, options); - if (message.workspaceId != null && message.hasOwnProperty("workspaceId")) - object.workspaceId = message.workspaceId; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; return object; }; /** - * Converts this CreateWorkspaceRequest to JSON. + * Converts this FetchRepositoryHistoryRequest to JSON. * @function toJSON - * @memberof google.cloud.dataform.v1beta1.CreateWorkspaceRequest + * @memberof google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest * @instance * @returns {Object.} JSON object */ - CreateWorkspaceRequest.prototype.toJSON = function toJSON() { + FetchRepositoryHistoryRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateWorkspaceRequest + * Gets the default type url for FetchRepositoryHistoryRequest * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.CreateWorkspaceRequest + * @memberof google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateWorkspaceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FetchRepositoryHistoryRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.CreateWorkspaceRequest"; + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest"; }; - return CreateWorkspaceRequest; + return FetchRepositoryHistoryRequest; })(); - v1beta1.DeleteWorkspaceRequest = (function() { + v1beta1.FetchRepositoryHistoryResponse = (function() { /** - * Properties of a DeleteWorkspaceRequest. + * Properties of a FetchRepositoryHistoryResponse. * @memberof google.cloud.dataform.v1beta1 - * @interface IDeleteWorkspaceRequest - * @property {string|null} [name] DeleteWorkspaceRequest name + * @interface IFetchRepositoryHistoryResponse + * @property {Array.|null} [commits] FetchRepositoryHistoryResponse commits + * @property {string|null} [nextPageToken] FetchRepositoryHistoryResponse nextPageToken */ /** - * Constructs a new DeleteWorkspaceRequest. + * Constructs a new FetchRepositoryHistoryResponse. * @memberof google.cloud.dataform.v1beta1 - * @classdesc Represents a DeleteWorkspaceRequest. - * @implements IDeleteWorkspaceRequest + * @classdesc Represents a FetchRepositoryHistoryResponse. + * @implements IFetchRepositoryHistoryResponse * @constructor - * @param {google.cloud.dataform.v1beta1.IDeleteWorkspaceRequest=} [properties] Properties to set + * @param {google.cloud.dataform.v1beta1.IFetchRepositoryHistoryResponse=} [properties] Properties to set */ - function DeleteWorkspaceRequest(properties) { + function FetchRepositoryHistoryResponse(properties) { + this.commits = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -25793,75 +27533,92 @@ } /** - * DeleteWorkspaceRequest name. - * @member {string} name - * @memberof google.cloud.dataform.v1beta1.DeleteWorkspaceRequest + * FetchRepositoryHistoryResponse commits. + * @member {Array.} commits + * @memberof google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse * @instance */ - DeleteWorkspaceRequest.prototype.name = ""; + FetchRepositoryHistoryResponse.prototype.commits = $util.emptyArray; /** - * Creates a new DeleteWorkspaceRequest instance using the specified properties. + * FetchRepositoryHistoryResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse + * @instance + */ + FetchRepositoryHistoryResponse.prototype.nextPageToken = ""; + + /** + * Creates a new FetchRepositoryHistoryResponse instance using the specified properties. * @function create - * @memberof google.cloud.dataform.v1beta1.DeleteWorkspaceRequest + * @memberof google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse * @static - * @param {google.cloud.dataform.v1beta1.IDeleteWorkspaceRequest=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.DeleteWorkspaceRequest} DeleteWorkspaceRequest instance + * @param {google.cloud.dataform.v1beta1.IFetchRepositoryHistoryResponse=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse} FetchRepositoryHistoryResponse instance */ - DeleteWorkspaceRequest.create = function create(properties) { - return new DeleteWorkspaceRequest(properties); + FetchRepositoryHistoryResponse.create = function create(properties) { + return new FetchRepositoryHistoryResponse(properties); }; /** - * Encodes the specified DeleteWorkspaceRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.DeleteWorkspaceRequest.verify|verify} messages. + * Encodes the specified FetchRepositoryHistoryResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dataform.v1beta1.DeleteWorkspaceRequest + * @memberof google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse * @static - * @param {google.cloud.dataform.v1beta1.IDeleteWorkspaceRequest} message DeleteWorkspaceRequest message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IFetchRepositoryHistoryResponse} message FetchRepositoryHistoryResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteWorkspaceRequest.encode = function encode(message, writer) { + FetchRepositoryHistoryResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.commits != null && message.commits.length) + for (var i = 0; i < message.commits.length; ++i) + $root.google.cloud.dataform.v1beta1.CommitLogEntry.encode(message.commits[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified DeleteWorkspaceRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.DeleteWorkspaceRequest.verify|verify} messages. + * Encodes the specified FetchRepositoryHistoryResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.DeleteWorkspaceRequest + * @memberof google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse * @static - * @param {google.cloud.dataform.v1beta1.IDeleteWorkspaceRequest} message DeleteWorkspaceRequest message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IFetchRepositoryHistoryResponse} message FetchRepositoryHistoryResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteWorkspaceRequest.encodeDelimited = function encodeDelimited(message, writer) { + FetchRepositoryHistoryResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteWorkspaceRequest message from the specified reader or buffer. + * Decodes a FetchRepositoryHistoryResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dataform.v1beta1.DeleteWorkspaceRequest + * @memberof google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.DeleteWorkspaceRequest} DeleteWorkspaceRequest + * @returns {google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse} FetchRepositoryHistoryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteWorkspaceRequest.decode = function decode(reader, length) { + FetchRepositoryHistoryResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + if (!(message.commits && message.commits.length)) + message.commits = []; + message.commits.push($root.google.cloud.dataform.v1beta1.CommitLogEntry.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); break; } default: @@ -25873,123 +27630,151 @@ }; /** - * Decodes a DeleteWorkspaceRequest message from the specified reader or buffer, length delimited. + * Decodes a FetchRepositoryHistoryResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.DeleteWorkspaceRequest + * @memberof google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.DeleteWorkspaceRequest} DeleteWorkspaceRequest + * @returns {google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse} FetchRepositoryHistoryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteWorkspaceRequest.decodeDelimited = function decodeDelimited(reader) { + FetchRepositoryHistoryResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteWorkspaceRequest message. + * Verifies a FetchRepositoryHistoryResponse message. * @function verify - * @memberof google.cloud.dataform.v1beta1.DeleteWorkspaceRequest + * @memberof google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteWorkspaceRequest.verify = function verify(message) { + FetchRepositoryHistoryResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.commits != null && message.hasOwnProperty("commits")) { + if (!Array.isArray(message.commits)) + return "commits: array expected"; + for (var i = 0; i < message.commits.length; ++i) { + var error = $root.google.cloud.dataform.v1beta1.CommitLogEntry.verify(message.commits[i]); + if (error) + return "commits." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a DeleteWorkspaceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FetchRepositoryHistoryResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dataform.v1beta1.DeleteWorkspaceRequest + * @memberof google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.DeleteWorkspaceRequest} DeleteWorkspaceRequest + * @returns {google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse} FetchRepositoryHistoryResponse */ - DeleteWorkspaceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest) + FetchRepositoryHistoryResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse) return object; - var message = new $root.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; + var message = new $root.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse(); + if (object.commits) { + if (!Array.isArray(object.commits)) + throw TypeError(".google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse.commits: array expected"); + message.commits = []; + for (var i = 0; i < object.commits.length; ++i) { + if (typeof object.commits[i] !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse.commits: object expected"); + message.commits[i] = $root.google.cloud.dataform.v1beta1.CommitLogEntry.fromObject(object.commits[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; /** - * Creates a plain object from a DeleteWorkspaceRequest message. Also converts values to other types if specified. + * Creates a plain object from a FetchRepositoryHistoryResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dataform.v1beta1.DeleteWorkspaceRequest + * @memberof google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse * @static - * @param {google.cloud.dataform.v1beta1.DeleteWorkspaceRequest} message DeleteWorkspaceRequest + * @param {google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse} message FetchRepositoryHistoryResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteWorkspaceRequest.toObject = function toObject(message, options) { + FetchRepositoryHistoryResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.commits = []; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.nextPageToken = ""; + if (message.commits && message.commits.length) { + object.commits = []; + for (var j = 0; j < message.commits.length; ++j) + object.commits[j] = $root.google.cloud.dataform.v1beta1.CommitLogEntry.toObject(message.commits[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this DeleteWorkspaceRequest to JSON. + * Converts this FetchRepositoryHistoryResponse to JSON. * @function toJSON - * @memberof google.cloud.dataform.v1beta1.DeleteWorkspaceRequest + * @memberof google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse * @instance * @returns {Object.} JSON object */ - DeleteWorkspaceRequest.prototype.toJSON = function toJSON() { + FetchRepositoryHistoryResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteWorkspaceRequest + * Gets the default type url for FetchRepositoryHistoryResponse * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.DeleteWorkspaceRequest + * @memberof google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteWorkspaceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FetchRepositoryHistoryResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.DeleteWorkspaceRequest"; + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse"; }; - return DeleteWorkspaceRequest; + return FetchRepositoryHistoryResponse; })(); - v1beta1.CommitAuthor = (function() { + v1beta1.CommitLogEntry = (function() { /** - * Properties of a CommitAuthor. + * Properties of a CommitLogEntry. * @memberof google.cloud.dataform.v1beta1 - * @interface ICommitAuthor - * @property {string|null} [name] CommitAuthor name - * @property {string|null} [emailAddress] CommitAuthor emailAddress + * @interface ICommitLogEntry + * @property {google.protobuf.ITimestamp|null} [commitTime] CommitLogEntry commitTime + * @property {string|null} [commitSha] CommitLogEntry commitSha + * @property {google.cloud.dataform.v1beta1.ICommitAuthor|null} [author] CommitLogEntry author + * @property {string|null} [commitMessage] CommitLogEntry commitMessage */ /** - * Constructs a new CommitAuthor. + * Constructs a new CommitLogEntry. * @memberof google.cloud.dataform.v1beta1 - * @classdesc Represents a CommitAuthor. - * @implements ICommitAuthor + * @classdesc Represents a CommitLogEntry. + * @implements ICommitLogEntry * @constructor - * @param {google.cloud.dataform.v1beta1.ICommitAuthor=} [properties] Properties to set + * @param {google.cloud.dataform.v1beta1.ICommitLogEntry=} [properties] Properties to set */ - function CommitAuthor(properties) { + function CommitLogEntry(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -25997,89 +27782,117 @@ } /** - * CommitAuthor name. - * @member {string} name - * @memberof google.cloud.dataform.v1beta1.CommitAuthor + * CommitLogEntry commitTime. + * @member {google.protobuf.ITimestamp|null|undefined} commitTime + * @memberof google.cloud.dataform.v1beta1.CommitLogEntry * @instance */ - CommitAuthor.prototype.name = ""; + CommitLogEntry.prototype.commitTime = null; /** - * CommitAuthor emailAddress. - * @member {string} emailAddress - * @memberof google.cloud.dataform.v1beta1.CommitAuthor + * CommitLogEntry commitSha. + * @member {string} commitSha + * @memberof google.cloud.dataform.v1beta1.CommitLogEntry * @instance */ - CommitAuthor.prototype.emailAddress = ""; + CommitLogEntry.prototype.commitSha = ""; /** - * Creates a new CommitAuthor instance using the specified properties. + * CommitLogEntry author. + * @member {google.cloud.dataform.v1beta1.ICommitAuthor|null|undefined} author + * @memberof google.cloud.dataform.v1beta1.CommitLogEntry + * @instance + */ + CommitLogEntry.prototype.author = null; + + /** + * CommitLogEntry commitMessage. + * @member {string} commitMessage + * @memberof google.cloud.dataform.v1beta1.CommitLogEntry + * @instance + */ + CommitLogEntry.prototype.commitMessage = ""; + + /** + * Creates a new CommitLogEntry instance using the specified properties. * @function create - * @memberof google.cloud.dataform.v1beta1.CommitAuthor + * @memberof google.cloud.dataform.v1beta1.CommitLogEntry * @static - * @param {google.cloud.dataform.v1beta1.ICommitAuthor=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.CommitAuthor} CommitAuthor instance + * @param {google.cloud.dataform.v1beta1.ICommitLogEntry=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.CommitLogEntry} CommitLogEntry instance */ - CommitAuthor.create = function create(properties) { - return new CommitAuthor(properties); + CommitLogEntry.create = function create(properties) { + return new CommitLogEntry(properties); }; /** - * Encodes the specified CommitAuthor message. Does not implicitly {@link google.cloud.dataform.v1beta1.CommitAuthor.verify|verify} messages. + * Encodes the specified CommitLogEntry message. Does not implicitly {@link google.cloud.dataform.v1beta1.CommitLogEntry.verify|verify} messages. * @function encode - * @memberof google.cloud.dataform.v1beta1.CommitAuthor + * @memberof google.cloud.dataform.v1beta1.CommitLogEntry * @static - * @param {google.cloud.dataform.v1beta1.ICommitAuthor} message CommitAuthor message or plain object to encode + * @param {google.cloud.dataform.v1beta1.ICommitLogEntry} message CommitLogEntry message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CommitAuthor.encode = function encode(message, writer) { + CommitLogEntry.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.emailAddress != null && Object.hasOwnProperty.call(message, "emailAddress")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.emailAddress); + if (message.commitTime != null && Object.hasOwnProperty.call(message, "commitTime")) + $root.google.protobuf.Timestamp.encode(message.commitTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.commitSha != null && Object.hasOwnProperty.call(message, "commitSha")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.commitSha); + if (message.author != null && Object.hasOwnProperty.call(message, "author")) + $root.google.cloud.dataform.v1beta1.CommitAuthor.encode(message.author, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.commitMessage != null && Object.hasOwnProperty.call(message, "commitMessage")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.commitMessage); return writer; }; /** - * Encodes the specified CommitAuthor message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CommitAuthor.verify|verify} messages. + * Encodes the specified CommitLogEntry message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CommitLogEntry.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.CommitAuthor + * @memberof google.cloud.dataform.v1beta1.CommitLogEntry * @static - * @param {google.cloud.dataform.v1beta1.ICommitAuthor} message CommitAuthor message or plain object to encode + * @param {google.cloud.dataform.v1beta1.ICommitLogEntry} message CommitLogEntry message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CommitAuthor.encodeDelimited = function encodeDelimited(message, writer) { + CommitLogEntry.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CommitAuthor message from the specified reader or buffer. + * Decodes a CommitLogEntry message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dataform.v1beta1.CommitAuthor + * @memberof google.cloud.dataform.v1beta1.CommitLogEntry * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.CommitAuthor} CommitAuthor + * @returns {google.cloud.dataform.v1beta1.CommitLogEntry} CommitLogEntry * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CommitAuthor.decode = function decode(reader, length) { + CommitLogEntry.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.CommitAuthor(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.CommitLogEntry(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.commitTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } case 2: { - message.emailAddress = reader.string(); + message.commitSha = reader.string(); + break; + } + case 3: { + message.author = $root.google.cloud.dataform.v1beta1.CommitAuthor.decode(reader, reader.uint32()); + break; + } + case 4: { + message.commitMessage = reader.string(); break; } default: @@ -26091,133 +27904,158 @@ }; /** - * Decodes a CommitAuthor message from the specified reader or buffer, length delimited. + * Decodes a CommitLogEntry message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.CommitAuthor + * @memberof google.cloud.dataform.v1beta1.CommitLogEntry * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.CommitAuthor} CommitAuthor + * @returns {google.cloud.dataform.v1beta1.CommitLogEntry} CommitLogEntry * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CommitAuthor.decodeDelimited = function decodeDelimited(reader) { + CommitLogEntry.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CommitAuthor message. + * Verifies a CommitLogEntry message. * @function verify - * @memberof google.cloud.dataform.v1beta1.CommitAuthor + * @memberof google.cloud.dataform.v1beta1.CommitLogEntry * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CommitAuthor.verify = function verify(message) { + CommitLogEntry.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.emailAddress != null && message.hasOwnProperty("emailAddress")) - if (!$util.isString(message.emailAddress)) - return "emailAddress: string expected"; + if (message.commitTime != null && message.hasOwnProperty("commitTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.commitTime); + if (error) + return "commitTime." + error; + } + if (message.commitSha != null && message.hasOwnProperty("commitSha")) + if (!$util.isString(message.commitSha)) + return "commitSha: string expected"; + if (message.author != null && message.hasOwnProperty("author")) { + var error = $root.google.cloud.dataform.v1beta1.CommitAuthor.verify(message.author); + if (error) + return "author." + error; + } + if (message.commitMessage != null && message.hasOwnProperty("commitMessage")) + if (!$util.isString(message.commitMessage)) + return "commitMessage: string expected"; return null; }; /** - * Creates a CommitAuthor message from a plain object. Also converts values to their respective internal types. + * Creates a CommitLogEntry message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dataform.v1beta1.CommitAuthor + * @memberof google.cloud.dataform.v1beta1.CommitLogEntry * @static * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.CommitAuthor} CommitAuthor + * @returns {google.cloud.dataform.v1beta1.CommitLogEntry} CommitLogEntry */ - CommitAuthor.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.CommitAuthor) + CommitLogEntry.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.CommitLogEntry) return object; - var message = new $root.google.cloud.dataform.v1beta1.CommitAuthor(); - if (object.name != null) - message.name = String(object.name); - if (object.emailAddress != null) - message.emailAddress = String(object.emailAddress); + var message = new $root.google.cloud.dataform.v1beta1.CommitLogEntry(); + if (object.commitTime != null) { + if (typeof object.commitTime !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.CommitLogEntry.commitTime: object expected"); + message.commitTime = $root.google.protobuf.Timestamp.fromObject(object.commitTime); + } + if (object.commitSha != null) + message.commitSha = String(object.commitSha); + if (object.author != null) { + if (typeof object.author !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.CommitLogEntry.author: object expected"); + message.author = $root.google.cloud.dataform.v1beta1.CommitAuthor.fromObject(object.author); + } + if (object.commitMessage != null) + message.commitMessage = String(object.commitMessage); return message; }; /** - * Creates a plain object from a CommitAuthor message. Also converts values to other types if specified. + * Creates a plain object from a CommitLogEntry message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dataform.v1beta1.CommitAuthor + * @memberof google.cloud.dataform.v1beta1.CommitLogEntry * @static - * @param {google.cloud.dataform.v1beta1.CommitAuthor} message CommitAuthor + * @param {google.cloud.dataform.v1beta1.CommitLogEntry} message CommitLogEntry * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CommitAuthor.toObject = function toObject(message, options) { + CommitLogEntry.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.emailAddress = ""; + object.commitTime = null; + object.commitSha = ""; + object.author = null; + object.commitMessage = ""; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.emailAddress != null && message.hasOwnProperty("emailAddress")) - object.emailAddress = message.emailAddress; + if (message.commitTime != null && message.hasOwnProperty("commitTime")) + object.commitTime = $root.google.protobuf.Timestamp.toObject(message.commitTime, options); + if (message.commitSha != null && message.hasOwnProperty("commitSha")) + object.commitSha = message.commitSha; + if (message.author != null && message.hasOwnProperty("author")) + object.author = $root.google.cloud.dataform.v1beta1.CommitAuthor.toObject(message.author, options); + if (message.commitMessage != null && message.hasOwnProperty("commitMessage")) + object.commitMessage = message.commitMessage; return object; }; /** - * Converts this CommitAuthor to JSON. + * Converts this CommitLogEntry to JSON. * @function toJSON - * @memberof google.cloud.dataform.v1beta1.CommitAuthor + * @memberof google.cloud.dataform.v1beta1.CommitLogEntry * @instance * @returns {Object.} JSON object */ - CommitAuthor.prototype.toJSON = function toJSON() { + CommitLogEntry.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CommitAuthor + * Gets the default type url for CommitLogEntry * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.CommitAuthor + * @memberof google.cloud.dataform.v1beta1.CommitLogEntry * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CommitAuthor.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CommitLogEntry.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.CommitAuthor"; + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.CommitLogEntry"; }; - return CommitAuthor; + return CommitLogEntry; })(); - v1beta1.PullGitCommitsRequest = (function() { + v1beta1.CommitMetadata = (function() { /** - * Properties of a PullGitCommitsRequest. + * Properties of a CommitMetadata. * @memberof google.cloud.dataform.v1beta1 - * @interface IPullGitCommitsRequest - * @property {string|null} [name] PullGitCommitsRequest name - * @property {string|null} [remoteBranch] PullGitCommitsRequest remoteBranch - * @property {google.cloud.dataform.v1beta1.ICommitAuthor|null} [author] PullGitCommitsRequest author + * @interface ICommitMetadata + * @property {google.cloud.dataform.v1beta1.ICommitAuthor|null} [author] CommitMetadata author + * @property {string|null} [commitMessage] CommitMetadata commitMessage */ /** - * Constructs a new PullGitCommitsRequest. + * Constructs a new CommitMetadata. * @memberof google.cloud.dataform.v1beta1 - * @classdesc Represents a PullGitCommitsRequest. - * @implements IPullGitCommitsRequest + * @classdesc Represents a CommitMetadata. + * @implements ICommitMetadata * @constructor - * @param {google.cloud.dataform.v1beta1.IPullGitCommitsRequest=} [properties] Properties to set + * @param {google.cloud.dataform.v1beta1.ICommitMetadata=} [properties] Properties to set */ - function PullGitCommitsRequest(properties) { + function CommitMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26225,103 +28063,89 @@ } /** - * PullGitCommitsRequest name. - * @member {string} name - * @memberof google.cloud.dataform.v1beta1.PullGitCommitsRequest - * @instance - */ - PullGitCommitsRequest.prototype.name = ""; - - /** - * PullGitCommitsRequest remoteBranch. - * @member {string} remoteBranch - * @memberof google.cloud.dataform.v1beta1.PullGitCommitsRequest + * CommitMetadata author. + * @member {google.cloud.dataform.v1beta1.ICommitAuthor|null|undefined} author + * @memberof google.cloud.dataform.v1beta1.CommitMetadata * @instance */ - PullGitCommitsRequest.prototype.remoteBranch = ""; + CommitMetadata.prototype.author = null; /** - * PullGitCommitsRequest author. - * @member {google.cloud.dataform.v1beta1.ICommitAuthor|null|undefined} author - * @memberof google.cloud.dataform.v1beta1.PullGitCommitsRequest + * CommitMetadata commitMessage. + * @member {string} commitMessage + * @memberof google.cloud.dataform.v1beta1.CommitMetadata * @instance */ - PullGitCommitsRequest.prototype.author = null; + CommitMetadata.prototype.commitMessage = ""; /** - * Creates a new PullGitCommitsRequest instance using the specified properties. + * Creates a new CommitMetadata instance using the specified properties. * @function create - * @memberof google.cloud.dataform.v1beta1.PullGitCommitsRequest + * @memberof google.cloud.dataform.v1beta1.CommitMetadata * @static - * @param {google.cloud.dataform.v1beta1.IPullGitCommitsRequest=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.PullGitCommitsRequest} PullGitCommitsRequest instance + * @param {google.cloud.dataform.v1beta1.ICommitMetadata=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.CommitMetadata} CommitMetadata instance */ - PullGitCommitsRequest.create = function create(properties) { - return new PullGitCommitsRequest(properties); + CommitMetadata.create = function create(properties) { + return new CommitMetadata(properties); }; /** - * Encodes the specified PullGitCommitsRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.PullGitCommitsRequest.verify|verify} messages. + * Encodes the specified CommitMetadata message. Does not implicitly {@link google.cloud.dataform.v1beta1.CommitMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.dataform.v1beta1.PullGitCommitsRequest + * @memberof google.cloud.dataform.v1beta1.CommitMetadata * @static - * @param {google.cloud.dataform.v1beta1.IPullGitCommitsRequest} message PullGitCommitsRequest message or plain object to encode + * @param {google.cloud.dataform.v1beta1.ICommitMetadata} message CommitMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PullGitCommitsRequest.encode = function encode(message, writer) { + CommitMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.remoteBranch != null && Object.hasOwnProperty.call(message, "remoteBranch")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.remoteBranch); if (message.author != null && Object.hasOwnProperty.call(message, "author")) - $root.google.cloud.dataform.v1beta1.CommitAuthor.encode(message.author, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + $root.google.cloud.dataform.v1beta1.CommitAuthor.encode(message.author, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.commitMessage != null && Object.hasOwnProperty.call(message, "commitMessage")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.commitMessage); return writer; }; /** - * Encodes the specified PullGitCommitsRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.PullGitCommitsRequest.verify|verify} messages. + * Encodes the specified CommitMetadata message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CommitMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.PullGitCommitsRequest + * @memberof google.cloud.dataform.v1beta1.CommitMetadata * @static - * @param {google.cloud.dataform.v1beta1.IPullGitCommitsRequest} message PullGitCommitsRequest message or plain object to encode + * @param {google.cloud.dataform.v1beta1.ICommitMetadata} message CommitMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PullGitCommitsRequest.encodeDelimited = function encodeDelimited(message, writer) { + CommitMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PullGitCommitsRequest message from the specified reader or buffer. + * Decodes a CommitMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dataform.v1beta1.PullGitCommitsRequest + * @memberof google.cloud.dataform.v1beta1.CommitMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.PullGitCommitsRequest} PullGitCommitsRequest + * @returns {google.cloud.dataform.v1beta1.CommitMetadata} CommitMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PullGitCommitsRequest.decode = function decode(reader, length) { + CommitMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.PullGitCommitsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.CommitMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.author = $root.google.cloud.dataform.v1beta1.CommitAuthor.decode(reader, reader.uint32()); break; } case 2: { - message.remoteBranch = reader.string(); - break; - } - case 3: { - message.author = $root.google.cloud.dataform.v1beta1.CommitAuthor.decode(reader, reader.uint32()); + message.commitMessage = reader.string(); break; } default: @@ -26333,145 +28157,136 @@ }; /** - * Decodes a PullGitCommitsRequest message from the specified reader or buffer, length delimited. + * Decodes a CommitMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.PullGitCommitsRequest + * @memberof google.cloud.dataform.v1beta1.CommitMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.PullGitCommitsRequest} PullGitCommitsRequest + * @returns {google.cloud.dataform.v1beta1.CommitMetadata} CommitMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PullGitCommitsRequest.decodeDelimited = function decodeDelimited(reader) { + CommitMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PullGitCommitsRequest message. + * Verifies a CommitMetadata message. * @function verify - * @memberof google.cloud.dataform.v1beta1.PullGitCommitsRequest + * @memberof google.cloud.dataform.v1beta1.CommitMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PullGitCommitsRequest.verify = function verify(message) { + CommitMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.remoteBranch != null && message.hasOwnProperty("remoteBranch")) - if (!$util.isString(message.remoteBranch)) - return "remoteBranch: string expected"; if (message.author != null && message.hasOwnProperty("author")) { var error = $root.google.cloud.dataform.v1beta1.CommitAuthor.verify(message.author); if (error) return "author." + error; } + if (message.commitMessage != null && message.hasOwnProperty("commitMessage")) + if (!$util.isString(message.commitMessage)) + return "commitMessage: string expected"; return null; }; /** - * Creates a PullGitCommitsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CommitMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dataform.v1beta1.PullGitCommitsRequest + * @memberof google.cloud.dataform.v1beta1.CommitMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.PullGitCommitsRequest} PullGitCommitsRequest + * @returns {google.cloud.dataform.v1beta1.CommitMetadata} CommitMetadata */ - PullGitCommitsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.PullGitCommitsRequest) + CommitMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.CommitMetadata) return object; - var message = new $root.google.cloud.dataform.v1beta1.PullGitCommitsRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.remoteBranch != null) - message.remoteBranch = String(object.remoteBranch); + var message = new $root.google.cloud.dataform.v1beta1.CommitMetadata(); if (object.author != null) { if (typeof object.author !== "object") - throw TypeError(".google.cloud.dataform.v1beta1.PullGitCommitsRequest.author: object expected"); + throw TypeError(".google.cloud.dataform.v1beta1.CommitMetadata.author: object expected"); message.author = $root.google.cloud.dataform.v1beta1.CommitAuthor.fromObject(object.author); } + if (object.commitMessage != null) + message.commitMessage = String(object.commitMessage); return message; }; /** - * Creates a plain object from a PullGitCommitsRequest message. Also converts values to other types if specified. + * Creates a plain object from a CommitMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dataform.v1beta1.PullGitCommitsRequest + * @memberof google.cloud.dataform.v1beta1.CommitMetadata * @static - * @param {google.cloud.dataform.v1beta1.PullGitCommitsRequest} message PullGitCommitsRequest + * @param {google.cloud.dataform.v1beta1.CommitMetadata} message CommitMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PullGitCommitsRequest.toObject = function toObject(message, options) { + CommitMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.remoteBranch = ""; object.author = null; + object.commitMessage = ""; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.remoteBranch != null && message.hasOwnProperty("remoteBranch")) - object.remoteBranch = message.remoteBranch; if (message.author != null && message.hasOwnProperty("author")) object.author = $root.google.cloud.dataform.v1beta1.CommitAuthor.toObject(message.author, options); + if (message.commitMessage != null && message.hasOwnProperty("commitMessage")) + object.commitMessage = message.commitMessage; return object; }; /** - * Converts this PullGitCommitsRequest to JSON. + * Converts this CommitMetadata to JSON. * @function toJSON - * @memberof google.cloud.dataform.v1beta1.PullGitCommitsRequest + * @memberof google.cloud.dataform.v1beta1.CommitMetadata * @instance * @returns {Object.} JSON object */ - PullGitCommitsRequest.prototype.toJSON = function toJSON() { + CommitMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PullGitCommitsRequest + * Gets the default type url for CommitMetadata * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.PullGitCommitsRequest + * @memberof google.cloud.dataform.v1beta1.CommitMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PullGitCommitsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CommitMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.PullGitCommitsRequest"; + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.CommitMetadata"; }; - return PullGitCommitsRequest; + return CommitMetadata; })(); - v1beta1.PushGitCommitsRequest = (function() { + v1beta1.ComputeRepositoryAccessTokenStatusRequest = (function() { /** - * Properties of a PushGitCommitsRequest. + * Properties of a ComputeRepositoryAccessTokenStatusRequest. * @memberof google.cloud.dataform.v1beta1 - * @interface IPushGitCommitsRequest - * @property {string|null} [name] PushGitCommitsRequest name - * @property {string|null} [remoteBranch] PushGitCommitsRequest remoteBranch + * @interface IComputeRepositoryAccessTokenStatusRequest + * @property {string|null} [name] ComputeRepositoryAccessTokenStatusRequest name */ /** - * Constructs a new PushGitCommitsRequest. + * Constructs a new ComputeRepositoryAccessTokenStatusRequest. * @memberof google.cloud.dataform.v1beta1 - * @classdesc Represents a PushGitCommitsRequest. - * @implements IPushGitCommitsRequest + * @classdesc Represents a ComputeRepositoryAccessTokenStatusRequest. + * @implements IComputeRepositoryAccessTokenStatusRequest * @constructor - * @param {google.cloud.dataform.v1beta1.IPushGitCommitsRequest=} [properties] Properties to set + * @param {google.cloud.dataform.v1beta1.IComputeRepositoryAccessTokenStatusRequest=} [properties] Properties to set */ - function PushGitCommitsRequest(properties) { + function ComputeRepositoryAccessTokenStatusRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26479,80 +28294,70 @@ } /** - * PushGitCommitsRequest name. + * ComputeRepositoryAccessTokenStatusRequest name. * @member {string} name - * @memberof google.cloud.dataform.v1beta1.PushGitCommitsRequest - * @instance - */ - PushGitCommitsRequest.prototype.name = ""; - - /** - * PushGitCommitsRequest remoteBranch. - * @member {string} remoteBranch - * @memberof google.cloud.dataform.v1beta1.PushGitCommitsRequest + * @memberof google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest * @instance */ - PushGitCommitsRequest.prototype.remoteBranch = ""; + ComputeRepositoryAccessTokenStatusRequest.prototype.name = ""; /** - * Creates a new PushGitCommitsRequest instance using the specified properties. + * Creates a new ComputeRepositoryAccessTokenStatusRequest instance using the specified properties. * @function create - * @memberof google.cloud.dataform.v1beta1.PushGitCommitsRequest + * @memberof google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest * @static - * @param {google.cloud.dataform.v1beta1.IPushGitCommitsRequest=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.PushGitCommitsRequest} PushGitCommitsRequest instance + * @param {google.cloud.dataform.v1beta1.IComputeRepositoryAccessTokenStatusRequest=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest} ComputeRepositoryAccessTokenStatusRequest instance */ - PushGitCommitsRequest.create = function create(properties) { - return new PushGitCommitsRequest(properties); + ComputeRepositoryAccessTokenStatusRequest.create = function create(properties) { + return new ComputeRepositoryAccessTokenStatusRequest(properties); }; /** - * Encodes the specified PushGitCommitsRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.PushGitCommitsRequest.verify|verify} messages. + * Encodes the specified ComputeRepositoryAccessTokenStatusRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dataform.v1beta1.PushGitCommitsRequest + * @memberof google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest * @static - * @param {google.cloud.dataform.v1beta1.IPushGitCommitsRequest} message PushGitCommitsRequest message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IComputeRepositoryAccessTokenStatusRequest} message ComputeRepositoryAccessTokenStatusRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PushGitCommitsRequest.encode = function encode(message, writer) { + ComputeRepositoryAccessTokenStatusRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.remoteBranch != null && Object.hasOwnProperty.call(message, "remoteBranch")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.remoteBranch); return writer; }; /** - * Encodes the specified PushGitCommitsRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.PushGitCommitsRequest.verify|verify} messages. + * Encodes the specified ComputeRepositoryAccessTokenStatusRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.PushGitCommitsRequest + * @memberof google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest * @static - * @param {google.cloud.dataform.v1beta1.IPushGitCommitsRequest} message PushGitCommitsRequest message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IComputeRepositoryAccessTokenStatusRequest} message ComputeRepositoryAccessTokenStatusRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PushGitCommitsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ComputeRepositoryAccessTokenStatusRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PushGitCommitsRequest message from the specified reader or buffer. + * Decodes a ComputeRepositoryAccessTokenStatusRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dataform.v1beta1.PushGitCommitsRequest + * @memberof google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.PushGitCommitsRequest} PushGitCommitsRequest + * @returns {google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest} ComputeRepositoryAccessTokenStatusRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PushGitCommitsRequest.decode = function decode(reader, length) { + ComputeRepositoryAccessTokenStatusRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.PushGitCommitsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -26560,10 +28365,6 @@ message.name = reader.string(); break; } - case 2: { - message.remoteBranch = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -26573,131 +28374,122 @@ }; /** - * Decodes a PushGitCommitsRequest message from the specified reader or buffer, length delimited. + * Decodes a ComputeRepositoryAccessTokenStatusRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.PushGitCommitsRequest + * @memberof google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.PushGitCommitsRequest} PushGitCommitsRequest + * @returns {google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest} ComputeRepositoryAccessTokenStatusRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PushGitCommitsRequest.decodeDelimited = function decodeDelimited(reader) { + ComputeRepositoryAccessTokenStatusRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PushGitCommitsRequest message. + * Verifies a ComputeRepositoryAccessTokenStatusRequest message. * @function verify - * @memberof google.cloud.dataform.v1beta1.PushGitCommitsRequest + * @memberof google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PushGitCommitsRequest.verify = function verify(message) { + ComputeRepositoryAccessTokenStatusRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.remoteBranch != null && message.hasOwnProperty("remoteBranch")) - if (!$util.isString(message.remoteBranch)) - return "remoteBranch: string expected"; return null; }; /** - * Creates a PushGitCommitsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ComputeRepositoryAccessTokenStatusRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dataform.v1beta1.PushGitCommitsRequest + * @memberof google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.PushGitCommitsRequest} PushGitCommitsRequest + * @returns {google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest} ComputeRepositoryAccessTokenStatusRequest */ - PushGitCommitsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.PushGitCommitsRequest) + ComputeRepositoryAccessTokenStatusRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest) return object; - var message = new $root.google.cloud.dataform.v1beta1.PushGitCommitsRequest(); + var message = new $root.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest(); if (object.name != null) message.name = String(object.name); - if (object.remoteBranch != null) - message.remoteBranch = String(object.remoteBranch); return message; }; /** - * Creates a plain object from a PushGitCommitsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ComputeRepositoryAccessTokenStatusRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dataform.v1beta1.PushGitCommitsRequest + * @memberof google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest * @static - * @param {google.cloud.dataform.v1beta1.PushGitCommitsRequest} message PushGitCommitsRequest + * @param {google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest} message ComputeRepositoryAccessTokenStatusRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PushGitCommitsRequest.toObject = function toObject(message, options) { + ComputeRepositoryAccessTokenStatusRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { + if (options.defaults) object.name = ""; - object.remoteBranch = ""; - } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.remoteBranch != null && message.hasOwnProperty("remoteBranch")) - object.remoteBranch = message.remoteBranch; return object; }; /** - * Converts this PushGitCommitsRequest to JSON. + * Converts this ComputeRepositoryAccessTokenStatusRequest to JSON. * @function toJSON - * @memberof google.cloud.dataform.v1beta1.PushGitCommitsRequest + * @memberof google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest * @instance * @returns {Object.} JSON object */ - PushGitCommitsRequest.prototype.toJSON = function toJSON() { + ComputeRepositoryAccessTokenStatusRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PushGitCommitsRequest + * Gets the default type url for ComputeRepositoryAccessTokenStatusRequest * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.PushGitCommitsRequest + * @memberof google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PushGitCommitsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ComputeRepositoryAccessTokenStatusRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.PushGitCommitsRequest"; + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest"; }; - return PushGitCommitsRequest; + return ComputeRepositoryAccessTokenStatusRequest; })(); - v1beta1.FetchFileGitStatusesRequest = (function() { + v1beta1.ComputeRepositoryAccessTokenStatusResponse = (function() { /** - * Properties of a FetchFileGitStatusesRequest. + * Properties of a ComputeRepositoryAccessTokenStatusResponse. * @memberof google.cloud.dataform.v1beta1 - * @interface IFetchFileGitStatusesRequest - * @property {string|null} [name] FetchFileGitStatusesRequest name + * @interface IComputeRepositoryAccessTokenStatusResponse + * @property {google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus|null} [tokenStatus] ComputeRepositoryAccessTokenStatusResponse tokenStatus */ /** - * Constructs a new FetchFileGitStatusesRequest. + * Constructs a new ComputeRepositoryAccessTokenStatusResponse. * @memberof google.cloud.dataform.v1beta1 - * @classdesc Represents a FetchFileGitStatusesRequest. - * @implements IFetchFileGitStatusesRequest + * @classdesc Represents a ComputeRepositoryAccessTokenStatusResponse. + * @implements IComputeRepositoryAccessTokenStatusResponse * @constructor - * @param {google.cloud.dataform.v1beta1.IFetchFileGitStatusesRequest=} [properties] Properties to set + * @param {google.cloud.dataform.v1beta1.IComputeRepositoryAccessTokenStatusResponse=} [properties] Properties to set */ - function FetchFileGitStatusesRequest(properties) { + function ComputeRepositoryAccessTokenStatusResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26705,75 +28497,75 @@ } /** - * FetchFileGitStatusesRequest name. - * @member {string} name - * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest + * ComputeRepositoryAccessTokenStatusResponse tokenStatus. + * @member {google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus} tokenStatus + * @memberof google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse * @instance */ - FetchFileGitStatusesRequest.prototype.name = ""; + ComputeRepositoryAccessTokenStatusResponse.prototype.tokenStatus = 0; /** - * Creates a new FetchFileGitStatusesRequest instance using the specified properties. + * Creates a new ComputeRepositoryAccessTokenStatusResponse instance using the specified properties. * @function create - * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest + * @memberof google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse * @static - * @param {google.cloud.dataform.v1beta1.IFetchFileGitStatusesRequest=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest} FetchFileGitStatusesRequest instance + * @param {google.cloud.dataform.v1beta1.IComputeRepositoryAccessTokenStatusResponse=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse} ComputeRepositoryAccessTokenStatusResponse instance */ - FetchFileGitStatusesRequest.create = function create(properties) { - return new FetchFileGitStatusesRequest(properties); + ComputeRepositoryAccessTokenStatusResponse.create = function create(properties) { + return new ComputeRepositoryAccessTokenStatusResponse(properties); }; /** - * Encodes the specified FetchFileGitStatusesRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest.verify|verify} messages. + * Encodes the specified ComputeRepositoryAccessTokenStatusResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest + * @memberof google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse * @static - * @param {google.cloud.dataform.v1beta1.IFetchFileGitStatusesRequest} message FetchFileGitStatusesRequest message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IComputeRepositoryAccessTokenStatusResponse} message ComputeRepositoryAccessTokenStatusResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FetchFileGitStatusesRequest.encode = function encode(message, writer) { + ComputeRepositoryAccessTokenStatusResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.tokenStatus != null && Object.hasOwnProperty.call(message, "tokenStatus")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.tokenStatus); return writer; }; /** - * Encodes the specified FetchFileGitStatusesRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest.verify|verify} messages. + * Encodes the specified ComputeRepositoryAccessTokenStatusResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest + * @memberof google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse * @static - * @param {google.cloud.dataform.v1beta1.IFetchFileGitStatusesRequest} message FetchFileGitStatusesRequest message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IComputeRepositoryAccessTokenStatusResponse} message ComputeRepositoryAccessTokenStatusResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FetchFileGitStatusesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ComputeRepositoryAccessTokenStatusResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FetchFileGitStatusesRequest message from the specified reader or buffer. + * Decodes a ComputeRepositoryAccessTokenStatusResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest + * @memberof google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest} FetchFileGitStatusesRequest + * @returns {google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse} ComputeRepositoryAccessTokenStatusResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FetchFileGitStatusesRequest.decode = function decode(reader, length) { + ComputeRepositoryAccessTokenStatusResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.tokenStatus = reader.int32(); break; } default: @@ -26785,123 +28577,169 @@ }; /** - * Decodes a FetchFileGitStatusesRequest message from the specified reader or buffer, length delimited. + * Decodes a ComputeRepositoryAccessTokenStatusResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest + * @memberof google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest} FetchFileGitStatusesRequest + * @returns {google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse} ComputeRepositoryAccessTokenStatusResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FetchFileGitStatusesRequest.decodeDelimited = function decodeDelimited(reader) { + ComputeRepositoryAccessTokenStatusResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FetchFileGitStatusesRequest message. + * Verifies a ComputeRepositoryAccessTokenStatusResponse message. * @function verify - * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest + * @memberof google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FetchFileGitStatusesRequest.verify = function verify(message) { + ComputeRepositoryAccessTokenStatusResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.tokenStatus != null && message.hasOwnProperty("tokenStatus")) + switch (message.tokenStatus) { + default: + return "tokenStatus: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } return null; }; /** - * Creates a FetchFileGitStatusesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ComputeRepositoryAccessTokenStatusResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest + * @memberof google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest} FetchFileGitStatusesRequest + * @returns {google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse} ComputeRepositoryAccessTokenStatusResponse */ - FetchFileGitStatusesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest) + ComputeRepositoryAccessTokenStatusResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse) return object; - var message = new $root.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse(); + switch (object.tokenStatus) { + default: + if (typeof object.tokenStatus === "number") { + message.tokenStatus = object.tokenStatus; + break; + } + break; + case "TOKEN_STATUS_UNSPECIFIED": + case 0: + message.tokenStatus = 0; + break; + case "NOT_FOUND": + case 1: + message.tokenStatus = 1; + break; + case "INVALID": + case 2: + message.tokenStatus = 2; + break; + case "VALID": + case 3: + message.tokenStatus = 3; + break; + } return message; }; /** - * Creates a plain object from a FetchFileGitStatusesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ComputeRepositoryAccessTokenStatusResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest + * @memberof google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse * @static - * @param {google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest} message FetchFileGitStatusesRequest + * @param {google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse} message ComputeRepositoryAccessTokenStatusResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FetchFileGitStatusesRequest.toObject = function toObject(message, options) { + ComputeRepositoryAccessTokenStatusResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.tokenStatus = options.enums === String ? "TOKEN_STATUS_UNSPECIFIED" : 0; + if (message.tokenStatus != null && message.hasOwnProperty("tokenStatus")) + object.tokenStatus = options.enums === String ? $root.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus[message.tokenStatus] === undefined ? message.tokenStatus : $root.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus[message.tokenStatus] : message.tokenStatus; return object; }; /** - * Converts this FetchFileGitStatusesRequest to JSON. + * Converts this ComputeRepositoryAccessTokenStatusResponse to JSON. * @function toJSON - * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest + * @memberof google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse * @instance * @returns {Object.} JSON object */ - FetchFileGitStatusesRequest.prototype.toJSON = function toJSON() { + ComputeRepositoryAccessTokenStatusResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FetchFileGitStatusesRequest + * Gets the default type url for ComputeRepositoryAccessTokenStatusResponse * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest + * @memberof google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FetchFileGitStatusesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ComputeRepositoryAccessTokenStatusResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest"; + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse"; }; - return FetchFileGitStatusesRequest; + /** + * TokenStatus enum. + * @name google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus + * @enum {number} + * @property {number} TOKEN_STATUS_UNSPECIFIED=0 TOKEN_STATUS_UNSPECIFIED value + * @property {number} NOT_FOUND=1 NOT_FOUND value + * @property {number} INVALID=2 INVALID value + * @property {number} VALID=3 VALID value + */ + ComputeRepositoryAccessTokenStatusResponse.TokenStatus = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "TOKEN_STATUS_UNSPECIFIED"] = 0; + values[valuesById[1] = "NOT_FOUND"] = 1; + values[valuesById[2] = "INVALID"] = 2; + values[valuesById[3] = "VALID"] = 3; + return values; + })(); + + return ComputeRepositoryAccessTokenStatusResponse; })(); - v1beta1.FetchFileGitStatusesResponse = (function() { + v1beta1.FetchRemoteBranchesRequest = (function() { /** - * Properties of a FetchFileGitStatusesResponse. + * Properties of a FetchRemoteBranchesRequest. * @memberof google.cloud.dataform.v1beta1 - * @interface IFetchFileGitStatusesResponse - * @property {Array.|null} [uncommittedFileChanges] FetchFileGitStatusesResponse uncommittedFileChanges + * @interface IFetchRemoteBranchesRequest + * @property {string|null} [name] FetchRemoteBranchesRequest name */ /** - * Constructs a new FetchFileGitStatusesResponse. + * Constructs a new FetchRemoteBranchesRequest. * @memberof google.cloud.dataform.v1beta1 - * @classdesc Represents a FetchFileGitStatusesResponse. - * @implements IFetchFileGitStatusesResponse + * @classdesc Represents a FetchRemoteBranchesRequest. + * @implements IFetchRemoteBranchesRequest * @constructor - * @param {google.cloud.dataform.v1beta1.IFetchFileGitStatusesResponse=} [properties] Properties to set + * @param {google.cloud.dataform.v1beta1.IFetchRemoteBranchesRequest=} [properties] Properties to set */ - function FetchFileGitStatusesResponse(properties) { - this.uncommittedFileChanges = []; + function FetchRemoteBranchesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26909,78 +28747,75 @@ } /** - * FetchFileGitStatusesResponse uncommittedFileChanges. - * @member {Array.} uncommittedFileChanges - * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse + * FetchRemoteBranchesRequest name. + * @member {string} name + * @memberof google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest * @instance */ - FetchFileGitStatusesResponse.prototype.uncommittedFileChanges = $util.emptyArray; + FetchRemoteBranchesRequest.prototype.name = ""; /** - * Creates a new FetchFileGitStatusesResponse instance using the specified properties. + * Creates a new FetchRemoteBranchesRequest instance using the specified properties. * @function create - * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse + * @memberof google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest * @static - * @param {google.cloud.dataform.v1beta1.IFetchFileGitStatusesResponse=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse} FetchFileGitStatusesResponse instance + * @param {google.cloud.dataform.v1beta1.IFetchRemoteBranchesRequest=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest} FetchRemoteBranchesRequest instance */ - FetchFileGitStatusesResponse.create = function create(properties) { - return new FetchFileGitStatusesResponse(properties); + FetchRemoteBranchesRequest.create = function create(properties) { + return new FetchRemoteBranchesRequest(properties); }; /** - * Encodes the specified FetchFileGitStatusesResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.verify|verify} messages. + * Encodes the specified FetchRemoteBranchesRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse + * @memberof google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest * @static - * @param {google.cloud.dataform.v1beta1.IFetchFileGitStatusesResponse} message FetchFileGitStatusesResponse message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IFetchRemoteBranchesRequest} message FetchRemoteBranchesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FetchFileGitStatusesResponse.encode = function encode(message, writer) { + FetchRemoteBranchesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.uncommittedFileChanges != null && message.uncommittedFileChanges.length) - for (var i = 0; i < message.uncommittedFileChanges.length; ++i) - $root.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.encode(message.uncommittedFileChanges[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified FetchFileGitStatusesResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.verify|verify} messages. + * Encodes the specified FetchRemoteBranchesRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse + * @memberof google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest * @static - * @param {google.cloud.dataform.v1beta1.IFetchFileGitStatusesResponse} message FetchFileGitStatusesResponse message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IFetchRemoteBranchesRequest} message FetchRemoteBranchesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FetchFileGitStatusesResponse.encodeDelimited = function encodeDelimited(message, writer) { + FetchRemoteBranchesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FetchFileGitStatusesResponse message from the specified reader or buffer. + * Decodes a FetchRemoteBranchesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse + * @memberof google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse} FetchFileGitStatusesResponse + * @returns {google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest} FetchRemoteBranchesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FetchFileGitStatusesResponse.decode = function decode(reader, length) { + FetchRemoteBranchesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.uncommittedFileChanges && message.uncommittedFileChanges.length)) - message.uncommittedFileChanges = []; - message.uncommittedFileChanges.push($root.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.decode(reader, reader.uint32())); + message.name = reader.string(); break; } default: @@ -26992,421 +28827,123 @@ }; /** - * Decodes a FetchFileGitStatusesResponse message from the specified reader or buffer, length delimited. + * Decodes a FetchRemoteBranchesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse + * @memberof google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse} FetchFileGitStatusesResponse + * @returns {google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest} FetchRemoteBranchesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FetchFileGitStatusesResponse.decodeDelimited = function decodeDelimited(reader) { + FetchRemoteBranchesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FetchFileGitStatusesResponse message. + * Verifies a FetchRemoteBranchesRequest message. * @function verify - * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse + * @memberof google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FetchFileGitStatusesResponse.verify = function verify(message) { + FetchRemoteBranchesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.uncommittedFileChanges != null && message.hasOwnProperty("uncommittedFileChanges")) { - if (!Array.isArray(message.uncommittedFileChanges)) - return "uncommittedFileChanges: array expected"; - for (var i = 0; i < message.uncommittedFileChanges.length; ++i) { - var error = $root.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.verify(message.uncommittedFileChanges[i]); - if (error) - return "uncommittedFileChanges." + error; - } - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a FetchFileGitStatusesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a FetchRemoteBranchesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse + * @memberof google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse} FetchFileGitStatusesResponse + * @returns {google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest} FetchRemoteBranchesRequest */ - FetchFileGitStatusesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse) + FetchRemoteBranchesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest) return object; - var message = new $root.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse(); - if (object.uncommittedFileChanges) { - if (!Array.isArray(object.uncommittedFileChanges)) - throw TypeError(".google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.uncommittedFileChanges: array expected"); - message.uncommittedFileChanges = []; - for (var i = 0; i < object.uncommittedFileChanges.length; ++i) { - if (typeof object.uncommittedFileChanges[i] !== "object") - throw TypeError(".google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.uncommittedFileChanges: object expected"); - message.uncommittedFileChanges[i] = $root.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.fromObject(object.uncommittedFileChanges[i]); - } - } + var message = new $root.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a FetchFileGitStatusesResponse message. Also converts values to other types if specified. + * Creates a plain object from a FetchRemoteBranchesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse + * @memberof google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest * @static - * @param {google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse} message FetchFileGitStatusesResponse + * @param {google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest} message FetchRemoteBranchesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FetchFileGitStatusesResponse.toObject = function toObject(message, options) { + FetchRemoteBranchesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.uncommittedFileChanges = []; - if (message.uncommittedFileChanges && message.uncommittedFileChanges.length) { - object.uncommittedFileChanges = []; - for (var j = 0; j < message.uncommittedFileChanges.length; ++j) - object.uncommittedFileChanges[j] = $root.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.toObject(message.uncommittedFileChanges[j], options); - } + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this FetchFileGitStatusesResponse to JSON. + * Converts this FetchRemoteBranchesRequest to JSON. * @function toJSON - * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse + * @memberof google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest * @instance * @returns {Object.} JSON object */ - FetchFileGitStatusesResponse.prototype.toJSON = function toJSON() { + FetchRemoteBranchesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FetchFileGitStatusesResponse + * Gets the default type url for FetchRemoteBranchesRequest * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse + * @memberof google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FetchFileGitStatusesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FetchRemoteBranchesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse"; + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest"; }; - FetchFileGitStatusesResponse.UncommittedFileChange = (function() { - - /** - * Properties of an UncommittedFileChange. - * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse - * @interface IUncommittedFileChange - * @property {string|null} [path] UncommittedFileChange path - * @property {google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.State|null} [state] UncommittedFileChange state - */ - - /** - * Constructs a new UncommittedFileChange. - * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse - * @classdesc Represents an UncommittedFileChange. - * @implements IUncommittedFileChange - * @constructor - * @param {google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.IUncommittedFileChange=} [properties] Properties to set - */ - function UncommittedFileChange(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * UncommittedFileChange path. - * @member {string} path - * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange - * @instance - */ - UncommittedFileChange.prototype.path = ""; - - /** - * UncommittedFileChange state. - * @member {google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.State} state - * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange - * @instance - */ - UncommittedFileChange.prototype.state = 0; - - /** - * Creates a new UncommittedFileChange instance using the specified properties. - * @function create - * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange - * @static - * @param {google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.IUncommittedFileChange=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange} UncommittedFileChange instance - */ - UncommittedFileChange.create = function create(properties) { - return new UncommittedFileChange(properties); - }; - - /** - * Encodes the specified UncommittedFileChange message. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.verify|verify} messages. - * @function encode - * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange - * @static - * @param {google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.IUncommittedFileChange} message UncommittedFileChange message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UncommittedFileChange.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.path != null && Object.hasOwnProperty.call(message, "path")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.path); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state); - return writer; - }; - - /** - * Encodes the specified UncommittedFileChange message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange - * @static - * @param {google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.IUncommittedFileChange} message UncommittedFileChange message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UncommittedFileChange.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an UncommittedFileChange message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange} UncommittedFileChange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UncommittedFileChange.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.path = reader.string(); - break; - } - case 2: { - message.state = reader.int32(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an UncommittedFileChange message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange} UncommittedFileChange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UncommittedFileChange.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an UncommittedFileChange message. - * @function verify - * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UncommittedFileChange.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.path != null && message.hasOwnProperty("path")) - if (!$util.isString(message.path)) - return "path: string expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - return null; - }; - - /** - * Creates an UncommittedFileChange message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange} UncommittedFileChange - */ - UncommittedFileChange.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange) - return object; - var message = new $root.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange(); - if (object.path != null) - message.path = String(object.path); - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "ADDED": - case 1: - message.state = 1; - break; - case "DELETED": - case 2: - message.state = 2; - break; - case "MODIFIED": - case 3: - message.state = 3; - break; - case "HAS_CONFLICTS": - case 4: - message.state = 4; - break; - } - return message; - }; - - /** - * Creates a plain object from an UncommittedFileChange message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange - * @static - * @param {google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange} message UncommittedFileChange - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - UncommittedFileChange.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.path = ""; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - } - if (message.path != null && message.hasOwnProperty("path")) - object.path = message.path; - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.State[message.state] === undefined ? message.state : $root.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.State[message.state] : message.state; - return object; - }; - - /** - * Converts this UncommittedFileChange to JSON. - * @function toJSON - * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange - * @instance - * @returns {Object.} JSON object - */ - UncommittedFileChange.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for UncommittedFileChange - * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - UncommittedFileChange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange"; - }; - - /** - * State enum. - * @name google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} ADDED=1 ADDED value - * @property {number} DELETED=2 DELETED value - * @property {number} MODIFIED=3 MODIFIED value - * @property {number} HAS_CONFLICTS=4 HAS_CONFLICTS value - */ - UncommittedFileChange.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "ADDED"] = 1; - values[valuesById[2] = "DELETED"] = 2; - values[valuesById[3] = "MODIFIED"] = 3; - values[valuesById[4] = "HAS_CONFLICTS"] = 4; - return values; - })(); - - return UncommittedFileChange; - })(); - - return FetchFileGitStatusesResponse; + return FetchRemoteBranchesRequest; })(); - v1beta1.FetchGitAheadBehindRequest = (function() { + v1beta1.FetchRemoteBranchesResponse = (function() { /** - * Properties of a FetchGitAheadBehindRequest. + * Properties of a FetchRemoteBranchesResponse. * @memberof google.cloud.dataform.v1beta1 - * @interface IFetchGitAheadBehindRequest - * @property {string|null} [name] FetchGitAheadBehindRequest name - * @property {string|null} [remoteBranch] FetchGitAheadBehindRequest remoteBranch + * @interface IFetchRemoteBranchesResponse + * @property {Array.|null} [branches] FetchRemoteBranchesResponse branches */ /** - * Constructs a new FetchGitAheadBehindRequest. + * Constructs a new FetchRemoteBranchesResponse. * @memberof google.cloud.dataform.v1beta1 - * @classdesc Represents a FetchGitAheadBehindRequest. - * @implements IFetchGitAheadBehindRequest + * @classdesc Represents a FetchRemoteBranchesResponse. + * @implements IFetchRemoteBranchesResponse * @constructor - * @param {google.cloud.dataform.v1beta1.IFetchGitAheadBehindRequest=} [properties] Properties to set + * @param {google.cloud.dataform.v1beta1.IFetchRemoteBranchesResponse=} [properties] Properties to set */ - function FetchGitAheadBehindRequest(properties) { + function FetchRemoteBranchesResponse(properties) { + this.branches = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -27414,89 +28951,78 @@ } /** - * FetchGitAheadBehindRequest name. - * @member {string} name - * @memberof google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest - * @instance - */ - FetchGitAheadBehindRequest.prototype.name = ""; - - /** - * FetchGitAheadBehindRequest remoteBranch. - * @member {string} remoteBranch - * @memberof google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest + * FetchRemoteBranchesResponse branches. + * @member {Array.} branches + * @memberof google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse * @instance */ - FetchGitAheadBehindRequest.prototype.remoteBranch = ""; + FetchRemoteBranchesResponse.prototype.branches = $util.emptyArray; /** - * Creates a new FetchGitAheadBehindRequest instance using the specified properties. + * Creates a new FetchRemoteBranchesResponse instance using the specified properties. * @function create - * @memberof google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest + * @memberof google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse * @static - * @param {google.cloud.dataform.v1beta1.IFetchGitAheadBehindRequest=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest} FetchGitAheadBehindRequest instance + * @param {google.cloud.dataform.v1beta1.IFetchRemoteBranchesResponse=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse} FetchRemoteBranchesResponse instance */ - FetchGitAheadBehindRequest.create = function create(properties) { - return new FetchGitAheadBehindRequest(properties); + FetchRemoteBranchesResponse.create = function create(properties) { + return new FetchRemoteBranchesResponse(properties); }; /** - * Encodes the specified FetchGitAheadBehindRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest.verify|verify} messages. + * Encodes the specified FetchRemoteBranchesResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest + * @memberof google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse * @static - * @param {google.cloud.dataform.v1beta1.IFetchGitAheadBehindRequest} message FetchGitAheadBehindRequest message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IFetchRemoteBranchesResponse} message FetchRemoteBranchesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FetchGitAheadBehindRequest.encode = function encode(message, writer) { + FetchRemoteBranchesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.remoteBranch != null && Object.hasOwnProperty.call(message, "remoteBranch")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.remoteBranch); + if (message.branches != null && message.branches.length) + for (var i = 0; i < message.branches.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.branches[i]); return writer; }; /** - * Encodes the specified FetchGitAheadBehindRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest.verify|verify} messages. + * Encodes the specified FetchRemoteBranchesResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest + * @memberof google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse * @static - * @param {google.cloud.dataform.v1beta1.IFetchGitAheadBehindRequest} message FetchGitAheadBehindRequest message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IFetchRemoteBranchesResponse} message FetchRemoteBranchesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FetchGitAheadBehindRequest.encodeDelimited = function encodeDelimited(message, writer) { + FetchRemoteBranchesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FetchGitAheadBehindRequest message from the specified reader or buffer. + * Decodes a FetchRemoteBranchesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest + * @memberof google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest} FetchGitAheadBehindRequest + * @returns {google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse} FetchRemoteBranchesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FetchGitAheadBehindRequest.decode = function decode(reader, length) { + FetchRemoteBranchesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); - break; - } - case 2: { - message.remoteBranch = reader.string(); + if (!(message.branches && message.branches.length)) + message.branches = []; + message.branches.push(reader.string()); break; } default: @@ -27508,132 +29034,134 @@ }; /** - * Decodes a FetchGitAheadBehindRequest message from the specified reader or buffer, length delimited. + * Decodes a FetchRemoteBranchesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest + * @memberof google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest} FetchGitAheadBehindRequest + * @returns {google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse} FetchRemoteBranchesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FetchGitAheadBehindRequest.decodeDelimited = function decodeDelimited(reader) { + FetchRemoteBranchesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FetchGitAheadBehindRequest message. + * Verifies a FetchRemoteBranchesResponse message. * @function verify - * @memberof google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest + * @memberof google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FetchGitAheadBehindRequest.verify = function verify(message) { + FetchRemoteBranchesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.remoteBranch != null && message.hasOwnProperty("remoteBranch")) - if (!$util.isString(message.remoteBranch)) - return "remoteBranch: string expected"; + if (message.branches != null && message.hasOwnProperty("branches")) { + if (!Array.isArray(message.branches)) + return "branches: array expected"; + for (var i = 0; i < message.branches.length; ++i) + if (!$util.isString(message.branches[i])) + return "branches: string[] expected"; + } return null; }; /** - * Creates a FetchGitAheadBehindRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FetchRemoteBranchesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest + * @memberof google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest} FetchGitAheadBehindRequest + * @returns {google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse} FetchRemoteBranchesResponse */ - FetchGitAheadBehindRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest) + FetchRemoteBranchesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse) return object; - var message = new $root.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.remoteBranch != null) - message.remoteBranch = String(object.remoteBranch); + var message = new $root.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse(); + if (object.branches) { + if (!Array.isArray(object.branches)) + throw TypeError(".google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse.branches: array expected"); + message.branches = []; + for (var i = 0; i < object.branches.length; ++i) + message.branches[i] = String(object.branches[i]); + } return message; }; /** - * Creates a plain object from a FetchGitAheadBehindRequest message. Also converts values to other types if specified. + * Creates a plain object from a FetchRemoteBranchesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest + * @memberof google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse * @static - * @param {google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest} message FetchGitAheadBehindRequest + * @param {google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse} message FetchRemoteBranchesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FetchGitAheadBehindRequest.toObject = function toObject(message, options) { + FetchRemoteBranchesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.remoteBranch = ""; + if (options.arrays || options.defaults) + object.branches = []; + if (message.branches && message.branches.length) { + object.branches = []; + for (var j = 0; j < message.branches.length; ++j) + object.branches[j] = message.branches[j]; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.remoteBranch != null && message.hasOwnProperty("remoteBranch")) - object.remoteBranch = message.remoteBranch; return object; }; /** - * Converts this FetchGitAheadBehindRequest to JSON. + * Converts this FetchRemoteBranchesResponse to JSON. * @function toJSON - * @memberof google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest + * @memberof google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse * @instance * @returns {Object.} JSON object */ - FetchGitAheadBehindRequest.prototype.toJSON = function toJSON() { + FetchRemoteBranchesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FetchGitAheadBehindRequest + * Gets the default type url for FetchRemoteBranchesResponse * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest + * @memberof google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FetchGitAheadBehindRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FetchRemoteBranchesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest"; + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse"; }; - return FetchGitAheadBehindRequest; + return FetchRemoteBranchesResponse; })(); - v1beta1.FetchGitAheadBehindResponse = (function() { + v1beta1.Workspace = (function() { /** - * Properties of a FetchGitAheadBehindResponse. + * Properties of a Workspace. * @memberof google.cloud.dataform.v1beta1 - * @interface IFetchGitAheadBehindResponse - * @property {number|null} [commitsAhead] FetchGitAheadBehindResponse commitsAhead - * @property {number|null} [commitsBehind] FetchGitAheadBehindResponse commitsBehind + * @interface IWorkspace + * @property {string|null} [name] Workspace name */ /** - * Constructs a new FetchGitAheadBehindResponse. + * Constructs a new Workspace. * @memberof google.cloud.dataform.v1beta1 - * @classdesc Represents a FetchGitAheadBehindResponse. - * @implements IFetchGitAheadBehindResponse + * @classdesc Represents a Workspace. + * @implements IWorkspace * @constructor - * @param {google.cloud.dataform.v1beta1.IFetchGitAheadBehindResponse=} [properties] Properties to set + * @param {google.cloud.dataform.v1beta1.IWorkspace=} [properties] Properties to set */ - function FetchGitAheadBehindResponse(properties) { + function Workspace(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -27641,89 +29169,75 @@ } /** - * FetchGitAheadBehindResponse commitsAhead. - * @member {number} commitsAhead - * @memberof google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse - * @instance - */ - FetchGitAheadBehindResponse.prototype.commitsAhead = 0; - - /** - * FetchGitAheadBehindResponse commitsBehind. - * @member {number} commitsBehind - * @memberof google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse + * Workspace name. + * @member {string} name + * @memberof google.cloud.dataform.v1beta1.Workspace * @instance */ - FetchGitAheadBehindResponse.prototype.commitsBehind = 0; + Workspace.prototype.name = ""; /** - * Creates a new FetchGitAheadBehindResponse instance using the specified properties. + * Creates a new Workspace instance using the specified properties. * @function create - * @memberof google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse + * @memberof google.cloud.dataform.v1beta1.Workspace * @static - * @param {google.cloud.dataform.v1beta1.IFetchGitAheadBehindResponse=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse} FetchGitAheadBehindResponse instance + * @param {google.cloud.dataform.v1beta1.IWorkspace=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.Workspace} Workspace instance */ - FetchGitAheadBehindResponse.create = function create(properties) { - return new FetchGitAheadBehindResponse(properties); + Workspace.create = function create(properties) { + return new Workspace(properties); }; /** - * Encodes the specified FetchGitAheadBehindResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse.verify|verify} messages. + * Encodes the specified Workspace message. Does not implicitly {@link google.cloud.dataform.v1beta1.Workspace.verify|verify} messages. * @function encode - * @memberof google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse + * @memberof google.cloud.dataform.v1beta1.Workspace * @static - * @param {google.cloud.dataform.v1beta1.IFetchGitAheadBehindResponse} message FetchGitAheadBehindResponse message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IWorkspace} message Workspace message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FetchGitAheadBehindResponse.encode = function encode(message, writer) { + Workspace.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.commitsAhead != null && Object.hasOwnProperty.call(message, "commitsAhead")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.commitsAhead); - if (message.commitsBehind != null && Object.hasOwnProperty.call(message, "commitsBehind")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.commitsBehind); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified FetchGitAheadBehindResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse.verify|verify} messages. + * Encodes the specified Workspace message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.Workspace.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse + * @memberof google.cloud.dataform.v1beta1.Workspace * @static - * @param {google.cloud.dataform.v1beta1.IFetchGitAheadBehindResponse} message FetchGitAheadBehindResponse message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IWorkspace} message Workspace message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FetchGitAheadBehindResponse.encodeDelimited = function encodeDelimited(message, writer) { + Workspace.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FetchGitAheadBehindResponse message from the specified reader or buffer. + * Decodes a Workspace message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse + * @memberof google.cloud.dataform.v1beta1.Workspace * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse} FetchGitAheadBehindResponse + * @returns {google.cloud.dataform.v1beta1.Workspace} Workspace * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FetchGitAheadBehindResponse.decode = function decode(reader, length) { + Workspace.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.Workspace(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.commitsAhead = reader.int32(); - break; - } - case 2: { - message.commitsBehind = reader.int32(); + message.name = reader.string(); break; } default: @@ -27735,135 +29249,126 @@ }; /** - * Decodes a FetchGitAheadBehindResponse message from the specified reader or buffer, length delimited. + * Decodes a Workspace message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse + * @memberof google.cloud.dataform.v1beta1.Workspace * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse} FetchGitAheadBehindResponse + * @returns {google.cloud.dataform.v1beta1.Workspace} Workspace * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FetchGitAheadBehindResponse.decodeDelimited = function decodeDelimited(reader) { + Workspace.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FetchGitAheadBehindResponse message. + * Verifies a Workspace message. * @function verify - * @memberof google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse + * @memberof google.cloud.dataform.v1beta1.Workspace * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FetchGitAheadBehindResponse.verify = function verify(message) { + Workspace.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.commitsAhead != null && message.hasOwnProperty("commitsAhead")) - if (!$util.isInteger(message.commitsAhead)) - return "commitsAhead: integer expected"; - if (message.commitsBehind != null && message.hasOwnProperty("commitsBehind")) - if (!$util.isInteger(message.commitsBehind)) - return "commitsBehind: integer expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a FetchGitAheadBehindResponse message from a plain object. Also converts values to their respective internal types. + * Creates a Workspace message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse + * @memberof google.cloud.dataform.v1beta1.Workspace * @static * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse} FetchGitAheadBehindResponse + * @returns {google.cloud.dataform.v1beta1.Workspace} Workspace */ - FetchGitAheadBehindResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse) + Workspace.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.Workspace) return object; - var message = new $root.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse(); - if (object.commitsAhead != null) - message.commitsAhead = object.commitsAhead | 0; - if (object.commitsBehind != null) - message.commitsBehind = object.commitsBehind | 0; + var message = new $root.google.cloud.dataform.v1beta1.Workspace(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a FetchGitAheadBehindResponse message. Also converts values to other types if specified. + * Creates a plain object from a Workspace message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse + * @memberof google.cloud.dataform.v1beta1.Workspace * @static - * @param {google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse} message FetchGitAheadBehindResponse + * @param {google.cloud.dataform.v1beta1.Workspace} message Workspace * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FetchGitAheadBehindResponse.toObject = function toObject(message, options) { + Workspace.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.commitsAhead = 0; - object.commitsBehind = 0; - } - if (message.commitsAhead != null && message.hasOwnProperty("commitsAhead")) - object.commitsAhead = message.commitsAhead; - if (message.commitsBehind != null && message.hasOwnProperty("commitsBehind")) - object.commitsBehind = message.commitsBehind; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this FetchGitAheadBehindResponse to JSON. + * Converts this Workspace to JSON. * @function toJSON - * @memberof google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse + * @memberof google.cloud.dataform.v1beta1.Workspace * @instance * @returns {Object.} JSON object */ - FetchGitAheadBehindResponse.prototype.toJSON = function toJSON() { + Workspace.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FetchGitAheadBehindResponse + * Gets the default type url for Workspace * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse + * @memberof google.cloud.dataform.v1beta1.Workspace * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FetchGitAheadBehindResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Workspace.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse"; + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.Workspace"; }; - return FetchGitAheadBehindResponse; + return Workspace; })(); - v1beta1.CommitWorkspaceChangesRequest = (function() { + v1beta1.ListWorkspacesRequest = (function() { /** - * Properties of a CommitWorkspaceChangesRequest. + * Properties of a ListWorkspacesRequest. * @memberof google.cloud.dataform.v1beta1 - * @interface ICommitWorkspaceChangesRequest - * @property {string|null} [name] CommitWorkspaceChangesRequest name - * @property {google.cloud.dataform.v1beta1.ICommitAuthor|null} [author] CommitWorkspaceChangesRequest author - * @property {string|null} [commitMessage] CommitWorkspaceChangesRequest commitMessage - * @property {Array.|null} [paths] CommitWorkspaceChangesRequest paths + * @interface IListWorkspacesRequest + * @property {string|null} [parent] ListWorkspacesRequest parent + * @property {number|null} [pageSize] ListWorkspacesRequest pageSize + * @property {string|null} [pageToken] ListWorkspacesRequest pageToken + * @property {string|null} [orderBy] ListWorkspacesRequest orderBy + * @property {string|null} [filter] ListWorkspacesRequest filter */ /** - * Constructs a new CommitWorkspaceChangesRequest. + * Constructs a new ListWorkspacesRequest. * @memberof google.cloud.dataform.v1beta1 - * @classdesc Represents a CommitWorkspaceChangesRequest. - * @implements ICommitWorkspaceChangesRequest + * @classdesc Represents a ListWorkspacesRequest. + * @implements IListWorkspacesRequest * @constructor - * @param {google.cloud.dataform.v1beta1.ICommitWorkspaceChangesRequest=} [properties] Properties to set + * @param {google.cloud.dataform.v1beta1.IListWorkspacesRequest=} [properties] Properties to set */ - function CommitWorkspaceChangesRequest(properties) { - this.paths = []; + function ListWorkspacesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -27871,120 +29376,131 @@ } /** - * CommitWorkspaceChangesRequest name. - * @member {string} name - * @memberof google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest + * ListWorkspacesRequest parent. + * @member {string} parent + * @memberof google.cloud.dataform.v1beta1.ListWorkspacesRequest * @instance */ - CommitWorkspaceChangesRequest.prototype.name = ""; + ListWorkspacesRequest.prototype.parent = ""; /** - * CommitWorkspaceChangesRequest author. - * @member {google.cloud.dataform.v1beta1.ICommitAuthor|null|undefined} author - * @memberof google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest + * ListWorkspacesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dataform.v1beta1.ListWorkspacesRequest * @instance */ - CommitWorkspaceChangesRequest.prototype.author = null; + ListWorkspacesRequest.prototype.pageSize = 0; /** - * CommitWorkspaceChangesRequest commitMessage. - * @member {string} commitMessage - * @memberof google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest + * ListWorkspacesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dataform.v1beta1.ListWorkspacesRequest * @instance */ - CommitWorkspaceChangesRequest.prototype.commitMessage = ""; + ListWorkspacesRequest.prototype.pageToken = ""; /** - * CommitWorkspaceChangesRequest paths. - * @member {Array.} paths - * @memberof google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest + * ListWorkspacesRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.dataform.v1beta1.ListWorkspacesRequest * @instance */ - CommitWorkspaceChangesRequest.prototype.paths = $util.emptyArray; + ListWorkspacesRequest.prototype.orderBy = ""; /** - * Creates a new CommitWorkspaceChangesRequest instance using the specified properties. + * ListWorkspacesRequest filter. + * @member {string} filter + * @memberof google.cloud.dataform.v1beta1.ListWorkspacesRequest + * @instance + */ + ListWorkspacesRequest.prototype.filter = ""; + + /** + * Creates a new ListWorkspacesRequest instance using the specified properties. * @function create - * @memberof google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest + * @memberof google.cloud.dataform.v1beta1.ListWorkspacesRequest * @static - * @param {google.cloud.dataform.v1beta1.ICommitWorkspaceChangesRequest=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest} CommitWorkspaceChangesRequest instance + * @param {google.cloud.dataform.v1beta1.IListWorkspacesRequest=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.ListWorkspacesRequest} ListWorkspacesRequest instance */ - CommitWorkspaceChangesRequest.create = function create(properties) { - return new CommitWorkspaceChangesRequest(properties); + ListWorkspacesRequest.create = function create(properties) { + return new ListWorkspacesRequest(properties); }; /** - * Encodes the specified CommitWorkspaceChangesRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest.verify|verify} messages. + * Encodes the specified ListWorkspacesRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.ListWorkspacesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest + * @memberof google.cloud.dataform.v1beta1.ListWorkspacesRequest * @static - * @param {google.cloud.dataform.v1beta1.ICommitWorkspaceChangesRequest} message CommitWorkspaceChangesRequest message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IListWorkspacesRequest} message ListWorkspacesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CommitWorkspaceChangesRequest.encode = function encode(message, writer) { + ListWorkspacesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.commitMessage != null && Object.hasOwnProperty.call(message, "commitMessage")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.commitMessage); - if (message.paths != null && message.paths.length) - for (var i = 0; i < message.paths.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.paths[i]); - if (message.author != null && Object.hasOwnProperty.call(message, "author")) - $root.google.cloud.dataform.v1beta1.CommitAuthor.encode(message.author, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.orderBy); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.filter); return writer; }; /** - * Encodes the specified CommitWorkspaceChangesRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest.verify|verify} messages. + * Encodes the specified ListWorkspacesRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.ListWorkspacesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest + * @memberof google.cloud.dataform.v1beta1.ListWorkspacesRequest * @static - * @param {google.cloud.dataform.v1beta1.ICommitWorkspaceChangesRequest} message CommitWorkspaceChangesRequest message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IListWorkspacesRequest} message ListWorkspacesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CommitWorkspaceChangesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListWorkspacesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CommitWorkspaceChangesRequest message from the specified reader or buffer. + * Decodes a ListWorkspacesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest + * @memberof google.cloud.dataform.v1beta1.ListWorkspacesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest} CommitWorkspaceChangesRequest + * @returns {google.cloud.dataform.v1beta1.ListWorkspacesRequest} ListWorkspacesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CommitWorkspaceChangesRequest.decode = function decode(reader, length) { + ListWorkspacesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.ListWorkspacesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); - break; - } - case 4: { - message.author = $root.google.cloud.dataform.v1beta1.CommitAuthor.decode(reader, reader.uint32()); + message.parent = reader.string(); break; } case 2: { - message.commitMessage = reader.string(); + message.pageSize = reader.int32(); break; } case 3: { - if (!(message.paths && message.paths.length)) - message.paths = []; - message.paths.push(reader.string()); + message.pageToken = reader.string(); + break; + } + case 4: { + message.orderBy = reader.string(); + break; + } + case 5: { + message.filter = reader.string(); break; } default: @@ -27996,168 +29512,159 @@ }; /** - * Decodes a CommitWorkspaceChangesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListWorkspacesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest + * @memberof google.cloud.dataform.v1beta1.ListWorkspacesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest} CommitWorkspaceChangesRequest + * @returns {google.cloud.dataform.v1beta1.ListWorkspacesRequest} ListWorkspacesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CommitWorkspaceChangesRequest.decodeDelimited = function decodeDelimited(reader) { + ListWorkspacesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CommitWorkspaceChangesRequest message. + * Verifies a ListWorkspacesRequest message. * @function verify - * @memberof google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest + * @memberof google.cloud.dataform.v1beta1.ListWorkspacesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CommitWorkspaceChangesRequest.verify = function verify(message) { + ListWorkspacesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.author != null && message.hasOwnProperty("author")) { - var error = $root.google.cloud.dataform.v1beta1.CommitAuthor.verify(message.author); - if (error) - return "author." + error; - } - if (message.commitMessage != null && message.hasOwnProperty("commitMessage")) - if (!$util.isString(message.commitMessage)) - return "commitMessage: string expected"; - if (message.paths != null && message.hasOwnProperty("paths")) { - if (!Array.isArray(message.paths)) - return "paths: array expected"; - for (var i = 0; i < message.paths.length; ++i) - if (!$util.isString(message.paths[i])) - return "paths: string[] expected"; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; return null; }; /** - * Creates a CommitWorkspaceChangesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListWorkspacesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest + * @memberof google.cloud.dataform.v1beta1.ListWorkspacesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest} CommitWorkspaceChangesRequest + * @returns {google.cloud.dataform.v1beta1.ListWorkspacesRequest} ListWorkspacesRequest */ - CommitWorkspaceChangesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest) + ListWorkspacesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.ListWorkspacesRequest) return object; - var message = new $root.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.author != null) { - if (typeof object.author !== "object") - throw TypeError(".google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest.author: object expected"); - message.author = $root.google.cloud.dataform.v1beta1.CommitAuthor.fromObject(object.author); - } - if (object.commitMessage != null) - message.commitMessage = String(object.commitMessage); - if (object.paths) { - if (!Array.isArray(object.paths)) - throw TypeError(".google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest.paths: array expected"); - message.paths = []; - for (var i = 0; i < object.paths.length; ++i) - message.paths[i] = String(object.paths[i]); - } + var message = new $root.google.cloud.dataform.v1beta1.ListWorkspacesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); + if (object.filter != null) + message.filter = String(object.filter); return message; }; /** - * Creates a plain object from a CommitWorkspaceChangesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListWorkspacesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest + * @memberof google.cloud.dataform.v1beta1.ListWorkspacesRequest * @static - * @param {google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest} message CommitWorkspaceChangesRequest + * @param {google.cloud.dataform.v1beta1.ListWorkspacesRequest} message ListWorkspacesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CommitWorkspaceChangesRequest.toObject = function toObject(message, options) { + ListWorkspacesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.paths = []; if (options.defaults) { - object.name = ""; - object.commitMessage = ""; - object.author = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.commitMessage != null && message.hasOwnProperty("commitMessage")) - object.commitMessage = message.commitMessage; - if (message.paths && message.paths.length) { - object.paths = []; - for (var j = 0; j < message.paths.length; ++j) - object.paths[j] = message.paths[j]; + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.orderBy = ""; + object.filter = ""; } - if (message.author != null && message.hasOwnProperty("author")) - object.author = $root.google.cloud.dataform.v1beta1.CommitAuthor.toObject(message.author, options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; return object; }; /** - * Converts this CommitWorkspaceChangesRequest to JSON. + * Converts this ListWorkspacesRequest to JSON. * @function toJSON - * @memberof google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest + * @memberof google.cloud.dataform.v1beta1.ListWorkspacesRequest * @instance * @returns {Object.} JSON object */ - CommitWorkspaceChangesRequest.prototype.toJSON = function toJSON() { + ListWorkspacesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CommitWorkspaceChangesRequest + * Gets the default type url for ListWorkspacesRequest * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest + * @memberof google.cloud.dataform.v1beta1.ListWorkspacesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CommitWorkspaceChangesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListWorkspacesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest"; + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.ListWorkspacesRequest"; }; - return CommitWorkspaceChangesRequest; + return ListWorkspacesRequest; })(); - v1beta1.ResetWorkspaceChangesRequest = (function() { + v1beta1.ListWorkspacesResponse = (function() { /** - * Properties of a ResetWorkspaceChangesRequest. + * Properties of a ListWorkspacesResponse. * @memberof google.cloud.dataform.v1beta1 - * @interface IResetWorkspaceChangesRequest - * @property {string|null} [name] ResetWorkspaceChangesRequest name - * @property {Array.|null} [paths] ResetWorkspaceChangesRequest paths - * @property {boolean|null} [clean] ResetWorkspaceChangesRequest clean + * @interface IListWorkspacesResponse + * @property {Array.|null} [workspaces] ListWorkspacesResponse workspaces + * @property {string|null} [nextPageToken] ListWorkspacesResponse nextPageToken + * @property {Array.|null} [unreachable] ListWorkspacesResponse unreachable */ /** - * Constructs a new ResetWorkspaceChangesRequest. + * Constructs a new ListWorkspacesResponse. * @memberof google.cloud.dataform.v1beta1 - * @classdesc Represents a ResetWorkspaceChangesRequest. - * @implements IResetWorkspaceChangesRequest + * @classdesc Represents a ListWorkspacesResponse. + * @implements IListWorkspacesResponse * @constructor - * @param {google.cloud.dataform.v1beta1.IResetWorkspaceChangesRequest=} [properties] Properties to set + * @param {google.cloud.dataform.v1beta1.IListWorkspacesResponse=} [properties] Properties to set */ - function ResetWorkspaceChangesRequest(properties) { - this.paths = []; + function ListWorkspacesResponse(properties) { + this.workspaces = []; + this.unreachable = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -28165,106 +29672,109 @@ } /** - * ResetWorkspaceChangesRequest name. - * @member {string} name - * @memberof google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest + * ListWorkspacesResponse workspaces. + * @member {Array.} workspaces + * @memberof google.cloud.dataform.v1beta1.ListWorkspacesResponse * @instance */ - ResetWorkspaceChangesRequest.prototype.name = ""; + ListWorkspacesResponse.prototype.workspaces = $util.emptyArray; /** - * ResetWorkspaceChangesRequest paths. - * @member {Array.} paths - * @memberof google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest + * ListWorkspacesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dataform.v1beta1.ListWorkspacesResponse * @instance */ - ResetWorkspaceChangesRequest.prototype.paths = $util.emptyArray; + ListWorkspacesResponse.prototype.nextPageToken = ""; /** - * ResetWorkspaceChangesRequest clean. - * @member {boolean} clean - * @memberof google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest + * ListWorkspacesResponse unreachable. + * @member {Array.} unreachable + * @memberof google.cloud.dataform.v1beta1.ListWorkspacesResponse * @instance */ - ResetWorkspaceChangesRequest.prototype.clean = false; + ListWorkspacesResponse.prototype.unreachable = $util.emptyArray; /** - * Creates a new ResetWorkspaceChangesRequest instance using the specified properties. + * Creates a new ListWorkspacesResponse instance using the specified properties. * @function create - * @memberof google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest + * @memberof google.cloud.dataform.v1beta1.ListWorkspacesResponse * @static - * @param {google.cloud.dataform.v1beta1.IResetWorkspaceChangesRequest=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest} ResetWorkspaceChangesRequest instance + * @param {google.cloud.dataform.v1beta1.IListWorkspacesResponse=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.ListWorkspacesResponse} ListWorkspacesResponse instance */ - ResetWorkspaceChangesRequest.create = function create(properties) { - return new ResetWorkspaceChangesRequest(properties); + ListWorkspacesResponse.create = function create(properties) { + return new ListWorkspacesResponse(properties); }; /** - * Encodes the specified ResetWorkspaceChangesRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest.verify|verify} messages. + * Encodes the specified ListWorkspacesResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.ListWorkspacesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest + * @memberof google.cloud.dataform.v1beta1.ListWorkspacesResponse * @static - * @param {google.cloud.dataform.v1beta1.IResetWorkspaceChangesRequest} message ResetWorkspaceChangesRequest message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IListWorkspacesResponse} message ListWorkspacesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResetWorkspaceChangesRequest.encode = function encode(message, writer) { + ListWorkspacesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.paths != null && message.paths.length) - for (var i = 0; i < message.paths.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.paths[i]); - if (message.clean != null && Object.hasOwnProperty.call(message, "clean")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.clean); + if (message.workspaces != null && message.workspaces.length) + for (var i = 0; i < message.workspaces.length; ++i) + $root.google.cloud.dataform.v1beta1.Workspace.encode(message.workspaces[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.unreachable != null && message.unreachable.length) + for (var i = 0; i < message.unreachable.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); return writer; }; /** - * Encodes the specified ResetWorkspaceChangesRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest.verify|verify} messages. + * Encodes the specified ListWorkspacesResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.ListWorkspacesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest + * @memberof google.cloud.dataform.v1beta1.ListWorkspacesResponse * @static - * @param {google.cloud.dataform.v1beta1.IResetWorkspaceChangesRequest} message ResetWorkspaceChangesRequest message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IListWorkspacesResponse} message ListWorkspacesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResetWorkspaceChangesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListWorkspacesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ResetWorkspaceChangesRequest message from the specified reader or buffer. + * Decodes a ListWorkspacesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest + * @memberof google.cloud.dataform.v1beta1.ListWorkspacesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest} ResetWorkspaceChangesRequest + * @returns {google.cloud.dataform.v1beta1.ListWorkspacesResponse} ListWorkspacesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResetWorkspaceChangesRequest.decode = function decode(reader, length) { + ListWorkspacesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.ListWorkspacesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + if (!(message.workspaces && message.workspaces.length)) + message.workspaces = []; + message.workspaces.push($root.google.cloud.dataform.v1beta1.Workspace.decode(reader, reader.uint32())); break; } case 2: { - if (!(message.paths && message.paths.length)) - message.paths = []; - message.paths.push(reader.string()); + message.nextPageToken = reader.string(); break; } case 3: { - message.clean = reader.bool(); + if (!(message.unreachable && message.unreachable.length)) + message.unreachable = []; + message.unreachable.push(reader.string()); break; } default: @@ -28276,153 +29786,169 @@ }; /** - * Decodes a ResetWorkspaceChangesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListWorkspacesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest + * @memberof google.cloud.dataform.v1beta1.ListWorkspacesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest} ResetWorkspaceChangesRequest + * @returns {google.cloud.dataform.v1beta1.ListWorkspacesResponse} ListWorkspacesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResetWorkspaceChangesRequest.decodeDelimited = function decodeDelimited(reader) { + ListWorkspacesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ResetWorkspaceChangesRequest message. + * Verifies a ListWorkspacesResponse message. * @function verify - * @memberof google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest + * @memberof google.cloud.dataform.v1beta1.ListWorkspacesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ResetWorkspaceChangesRequest.verify = function verify(message) { + ListWorkspacesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.paths != null && message.hasOwnProperty("paths")) { - if (!Array.isArray(message.paths)) - return "paths: array expected"; - for (var i = 0; i < message.paths.length; ++i) - if (!$util.isString(message.paths[i])) - return "paths: string[] expected"; + if (message.workspaces != null && message.hasOwnProperty("workspaces")) { + if (!Array.isArray(message.workspaces)) + return "workspaces: array expected"; + for (var i = 0; i < message.workspaces.length; ++i) { + var error = $root.google.cloud.dataform.v1beta1.Workspace.verify(message.workspaces[i]); + if (error) + return "workspaces." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + if (message.unreachable != null && message.hasOwnProperty("unreachable")) { + if (!Array.isArray(message.unreachable)) + return "unreachable: array expected"; + for (var i = 0; i < message.unreachable.length; ++i) + if (!$util.isString(message.unreachable[i])) + return "unreachable: string[] expected"; } - if (message.clean != null && message.hasOwnProperty("clean")) - if (typeof message.clean !== "boolean") - return "clean: boolean expected"; return null; }; /** - * Creates a ResetWorkspaceChangesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListWorkspacesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest + * @memberof google.cloud.dataform.v1beta1.ListWorkspacesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest} ResetWorkspaceChangesRequest + * @returns {google.cloud.dataform.v1beta1.ListWorkspacesResponse} ListWorkspacesResponse */ - ResetWorkspaceChangesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest) + ListWorkspacesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.ListWorkspacesResponse) return object; - var message = new $root.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.paths) { - if (!Array.isArray(object.paths)) - throw TypeError(".google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest.paths: array expected"); - message.paths = []; - for (var i = 0; i < object.paths.length; ++i) - message.paths[i] = String(object.paths[i]); + var message = new $root.google.cloud.dataform.v1beta1.ListWorkspacesResponse(); + if (object.workspaces) { + if (!Array.isArray(object.workspaces)) + throw TypeError(".google.cloud.dataform.v1beta1.ListWorkspacesResponse.workspaces: array expected"); + message.workspaces = []; + for (var i = 0; i < object.workspaces.length; ++i) { + if (typeof object.workspaces[i] !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.ListWorkspacesResponse.workspaces: object expected"); + message.workspaces[i] = $root.google.cloud.dataform.v1beta1.Workspace.fromObject(object.workspaces[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.unreachable) { + if (!Array.isArray(object.unreachable)) + throw TypeError(".google.cloud.dataform.v1beta1.ListWorkspacesResponse.unreachable: array expected"); + message.unreachable = []; + for (var i = 0; i < object.unreachable.length; ++i) + message.unreachable[i] = String(object.unreachable[i]); } - if (object.clean != null) - message.clean = Boolean(object.clean); return message; }; /** - * Creates a plain object from a ResetWorkspaceChangesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListWorkspacesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest + * @memberof google.cloud.dataform.v1beta1.ListWorkspacesResponse * @static - * @param {google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest} message ResetWorkspaceChangesRequest + * @param {google.cloud.dataform.v1beta1.ListWorkspacesResponse} message ListWorkspacesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ResetWorkspaceChangesRequest.toObject = function toObject(message, options) { + ListWorkspacesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.paths = []; - if (options.defaults) { - object.name = ""; - object.clean = false; + if (options.arrays || options.defaults) { + object.workspaces = []; + object.unreachable = []; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.paths && message.paths.length) { - object.paths = []; - for (var j = 0; j < message.paths.length; ++j) - object.paths[j] = message.paths[j]; + if (options.defaults) + object.nextPageToken = ""; + if (message.workspaces && message.workspaces.length) { + object.workspaces = []; + for (var j = 0; j < message.workspaces.length; ++j) + object.workspaces[j] = $root.google.cloud.dataform.v1beta1.Workspace.toObject(message.workspaces[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + if (message.unreachable && message.unreachable.length) { + object.unreachable = []; + for (var j = 0; j < message.unreachable.length; ++j) + object.unreachable[j] = message.unreachable[j]; } - if (message.clean != null && message.hasOwnProperty("clean")) - object.clean = message.clean; return object; }; /** - * Converts this ResetWorkspaceChangesRequest to JSON. + * Converts this ListWorkspacesResponse to JSON. * @function toJSON - * @memberof google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest + * @memberof google.cloud.dataform.v1beta1.ListWorkspacesResponse * @instance * @returns {Object.} JSON object */ - ResetWorkspaceChangesRequest.prototype.toJSON = function toJSON() { + ListWorkspacesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ResetWorkspaceChangesRequest + * Gets the default type url for ListWorkspacesResponse * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest + * @memberof google.cloud.dataform.v1beta1.ListWorkspacesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ResetWorkspaceChangesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListWorkspacesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest"; + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.ListWorkspacesResponse"; }; - return ResetWorkspaceChangesRequest; + return ListWorkspacesResponse; })(); - v1beta1.FetchFileDiffRequest = (function() { + v1beta1.GetWorkspaceRequest = (function() { /** - * Properties of a FetchFileDiffRequest. + * Properties of a GetWorkspaceRequest. * @memberof google.cloud.dataform.v1beta1 - * @interface IFetchFileDiffRequest - * @property {string|null} [workspace] FetchFileDiffRequest workspace - * @property {string|null} [path] FetchFileDiffRequest path + * @interface IGetWorkspaceRequest + * @property {string|null} [name] GetWorkspaceRequest name */ /** - * Constructs a new FetchFileDiffRequest. + * Constructs a new GetWorkspaceRequest. * @memberof google.cloud.dataform.v1beta1 - * @classdesc Represents a FetchFileDiffRequest. - * @implements IFetchFileDiffRequest + * @classdesc Represents a GetWorkspaceRequest. + * @implements IGetWorkspaceRequest * @constructor - * @param {google.cloud.dataform.v1beta1.IFetchFileDiffRequest=} [properties] Properties to set + * @param {google.cloud.dataform.v1beta1.IGetWorkspaceRequest=} [properties] Properties to set */ - function FetchFileDiffRequest(properties) { + function GetWorkspaceRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -28430,89 +29956,75 @@ } /** - * FetchFileDiffRequest workspace. - * @member {string} workspace - * @memberof google.cloud.dataform.v1beta1.FetchFileDiffRequest - * @instance - */ - FetchFileDiffRequest.prototype.workspace = ""; - - /** - * FetchFileDiffRequest path. - * @member {string} path - * @memberof google.cloud.dataform.v1beta1.FetchFileDiffRequest + * GetWorkspaceRequest name. + * @member {string} name + * @memberof google.cloud.dataform.v1beta1.GetWorkspaceRequest * @instance */ - FetchFileDiffRequest.prototype.path = ""; + GetWorkspaceRequest.prototype.name = ""; /** - * Creates a new FetchFileDiffRequest instance using the specified properties. + * Creates a new GetWorkspaceRequest instance using the specified properties. * @function create - * @memberof google.cloud.dataform.v1beta1.FetchFileDiffRequest + * @memberof google.cloud.dataform.v1beta1.GetWorkspaceRequest * @static - * @param {google.cloud.dataform.v1beta1.IFetchFileDiffRequest=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.FetchFileDiffRequest} FetchFileDiffRequest instance + * @param {google.cloud.dataform.v1beta1.IGetWorkspaceRequest=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.GetWorkspaceRequest} GetWorkspaceRequest instance */ - FetchFileDiffRequest.create = function create(properties) { - return new FetchFileDiffRequest(properties); + GetWorkspaceRequest.create = function create(properties) { + return new GetWorkspaceRequest(properties); }; /** - * Encodes the specified FetchFileDiffRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchFileDiffRequest.verify|verify} messages. + * Encodes the specified GetWorkspaceRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.GetWorkspaceRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dataform.v1beta1.FetchFileDiffRequest + * @memberof google.cloud.dataform.v1beta1.GetWorkspaceRequest * @static - * @param {google.cloud.dataform.v1beta1.IFetchFileDiffRequest} message FetchFileDiffRequest message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IGetWorkspaceRequest} message GetWorkspaceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FetchFileDiffRequest.encode = function encode(message, writer) { + GetWorkspaceRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.workspace != null && Object.hasOwnProperty.call(message, "workspace")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.workspace); - if (message.path != null && Object.hasOwnProperty.call(message, "path")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified FetchFileDiffRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchFileDiffRequest.verify|verify} messages. + * Encodes the specified GetWorkspaceRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.GetWorkspaceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.FetchFileDiffRequest + * @memberof google.cloud.dataform.v1beta1.GetWorkspaceRequest * @static - * @param {google.cloud.dataform.v1beta1.IFetchFileDiffRequest} message FetchFileDiffRequest message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IGetWorkspaceRequest} message GetWorkspaceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FetchFileDiffRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetWorkspaceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FetchFileDiffRequest message from the specified reader or buffer. + * Decodes a GetWorkspaceRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dataform.v1beta1.FetchFileDiffRequest + * @memberof google.cloud.dataform.v1beta1.GetWorkspaceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.FetchFileDiffRequest} FetchFileDiffRequest + * @returns {google.cloud.dataform.v1beta1.GetWorkspaceRequest} GetWorkspaceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FetchFileDiffRequest.decode = function decode(reader, length) { + GetWorkspaceRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.FetchFileDiffRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.GetWorkspaceRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.workspace = reader.string(); - break; - } - case 2: { - message.path = reader.string(); + message.name = reader.string(); break; } default: @@ -28524,131 +30036,124 @@ }; /** - * Decodes a FetchFileDiffRequest message from the specified reader or buffer, length delimited. + * Decodes a GetWorkspaceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.FetchFileDiffRequest + * @memberof google.cloud.dataform.v1beta1.GetWorkspaceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.FetchFileDiffRequest} FetchFileDiffRequest + * @returns {google.cloud.dataform.v1beta1.GetWorkspaceRequest} GetWorkspaceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FetchFileDiffRequest.decodeDelimited = function decodeDelimited(reader) { + GetWorkspaceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FetchFileDiffRequest message. + * Verifies a GetWorkspaceRequest message. * @function verify - * @memberof google.cloud.dataform.v1beta1.FetchFileDiffRequest + * @memberof google.cloud.dataform.v1beta1.GetWorkspaceRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FetchFileDiffRequest.verify = function verify(message) { + GetWorkspaceRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.workspace != null && message.hasOwnProperty("workspace")) - if (!$util.isString(message.workspace)) - return "workspace: string expected"; - if (message.path != null && message.hasOwnProperty("path")) - if (!$util.isString(message.path)) - return "path: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a FetchFileDiffRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetWorkspaceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dataform.v1beta1.FetchFileDiffRequest + * @memberof google.cloud.dataform.v1beta1.GetWorkspaceRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.FetchFileDiffRequest} FetchFileDiffRequest + * @returns {google.cloud.dataform.v1beta1.GetWorkspaceRequest} GetWorkspaceRequest */ - FetchFileDiffRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.FetchFileDiffRequest) + GetWorkspaceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.GetWorkspaceRequest) return object; - var message = new $root.google.cloud.dataform.v1beta1.FetchFileDiffRequest(); - if (object.workspace != null) - message.workspace = String(object.workspace); - if (object.path != null) - message.path = String(object.path); + var message = new $root.google.cloud.dataform.v1beta1.GetWorkspaceRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a FetchFileDiffRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetWorkspaceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dataform.v1beta1.FetchFileDiffRequest + * @memberof google.cloud.dataform.v1beta1.GetWorkspaceRequest * @static - * @param {google.cloud.dataform.v1beta1.FetchFileDiffRequest} message FetchFileDiffRequest + * @param {google.cloud.dataform.v1beta1.GetWorkspaceRequest} message GetWorkspaceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FetchFileDiffRequest.toObject = function toObject(message, options) { + GetWorkspaceRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.workspace = ""; - object.path = ""; - } - if (message.workspace != null && message.hasOwnProperty("workspace")) - object.workspace = message.workspace; - if (message.path != null && message.hasOwnProperty("path")) - object.path = message.path; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this FetchFileDiffRequest to JSON. + * Converts this GetWorkspaceRequest to JSON. * @function toJSON - * @memberof google.cloud.dataform.v1beta1.FetchFileDiffRequest + * @memberof google.cloud.dataform.v1beta1.GetWorkspaceRequest * @instance * @returns {Object.} JSON object */ - FetchFileDiffRequest.prototype.toJSON = function toJSON() { + GetWorkspaceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FetchFileDiffRequest + * Gets the default type url for GetWorkspaceRequest * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.FetchFileDiffRequest + * @memberof google.cloud.dataform.v1beta1.GetWorkspaceRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FetchFileDiffRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetWorkspaceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.FetchFileDiffRequest"; + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.GetWorkspaceRequest"; }; - return FetchFileDiffRequest; + return GetWorkspaceRequest; })(); - v1beta1.FetchFileDiffResponse = (function() { + v1beta1.CreateWorkspaceRequest = (function() { /** - * Properties of a FetchFileDiffResponse. + * Properties of a CreateWorkspaceRequest. * @memberof google.cloud.dataform.v1beta1 - * @interface IFetchFileDiffResponse - * @property {string|null} [formattedDiff] FetchFileDiffResponse formattedDiff + * @interface ICreateWorkspaceRequest + * @property {string|null} [parent] CreateWorkspaceRequest parent + * @property {google.cloud.dataform.v1beta1.IWorkspace|null} [workspace] CreateWorkspaceRequest workspace + * @property {string|null} [workspaceId] CreateWorkspaceRequest workspaceId */ /** - * Constructs a new FetchFileDiffResponse. + * Constructs a new CreateWorkspaceRequest. * @memberof google.cloud.dataform.v1beta1 - * @classdesc Represents a FetchFileDiffResponse. - * @implements IFetchFileDiffResponse + * @classdesc Represents a CreateWorkspaceRequest. + * @implements ICreateWorkspaceRequest * @constructor - * @param {google.cloud.dataform.v1beta1.IFetchFileDiffResponse=} [properties] Properties to set + * @param {google.cloud.dataform.v1beta1.ICreateWorkspaceRequest=} [properties] Properties to set */ - function FetchFileDiffResponse(properties) { + function CreateWorkspaceRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -28656,75 +30161,103 @@ } /** - * FetchFileDiffResponse formattedDiff. - * @member {string} formattedDiff - * @memberof google.cloud.dataform.v1beta1.FetchFileDiffResponse + * CreateWorkspaceRequest parent. + * @member {string} parent + * @memberof google.cloud.dataform.v1beta1.CreateWorkspaceRequest * @instance */ - FetchFileDiffResponse.prototype.formattedDiff = ""; + CreateWorkspaceRequest.prototype.parent = ""; /** - * Creates a new FetchFileDiffResponse instance using the specified properties. + * CreateWorkspaceRequest workspace. + * @member {google.cloud.dataform.v1beta1.IWorkspace|null|undefined} workspace + * @memberof google.cloud.dataform.v1beta1.CreateWorkspaceRequest + * @instance + */ + CreateWorkspaceRequest.prototype.workspace = null; + + /** + * CreateWorkspaceRequest workspaceId. + * @member {string} workspaceId + * @memberof google.cloud.dataform.v1beta1.CreateWorkspaceRequest + * @instance + */ + CreateWorkspaceRequest.prototype.workspaceId = ""; + + /** + * Creates a new CreateWorkspaceRequest instance using the specified properties. * @function create - * @memberof google.cloud.dataform.v1beta1.FetchFileDiffResponse + * @memberof google.cloud.dataform.v1beta1.CreateWorkspaceRequest * @static - * @param {google.cloud.dataform.v1beta1.IFetchFileDiffResponse=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.FetchFileDiffResponse} FetchFileDiffResponse instance + * @param {google.cloud.dataform.v1beta1.ICreateWorkspaceRequest=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.CreateWorkspaceRequest} CreateWorkspaceRequest instance */ - FetchFileDiffResponse.create = function create(properties) { - return new FetchFileDiffResponse(properties); + CreateWorkspaceRequest.create = function create(properties) { + return new CreateWorkspaceRequest(properties); }; /** - * Encodes the specified FetchFileDiffResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchFileDiffResponse.verify|verify} messages. + * Encodes the specified CreateWorkspaceRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.CreateWorkspaceRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dataform.v1beta1.FetchFileDiffResponse + * @memberof google.cloud.dataform.v1beta1.CreateWorkspaceRequest * @static - * @param {google.cloud.dataform.v1beta1.IFetchFileDiffResponse} message FetchFileDiffResponse message or plain object to encode + * @param {google.cloud.dataform.v1beta1.ICreateWorkspaceRequest} message CreateWorkspaceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FetchFileDiffResponse.encode = function encode(message, writer) { + CreateWorkspaceRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.formattedDiff != null && Object.hasOwnProperty.call(message, "formattedDiff")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.formattedDiff); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.workspace != null && Object.hasOwnProperty.call(message, "workspace")) + $root.google.cloud.dataform.v1beta1.Workspace.encode(message.workspace, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.workspaceId != null && Object.hasOwnProperty.call(message, "workspaceId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.workspaceId); return writer; }; /** - * Encodes the specified FetchFileDiffResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchFileDiffResponse.verify|verify} messages. + * Encodes the specified CreateWorkspaceRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CreateWorkspaceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.FetchFileDiffResponse + * @memberof google.cloud.dataform.v1beta1.CreateWorkspaceRequest * @static - * @param {google.cloud.dataform.v1beta1.IFetchFileDiffResponse} message FetchFileDiffResponse message or plain object to encode + * @param {google.cloud.dataform.v1beta1.ICreateWorkspaceRequest} message CreateWorkspaceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FetchFileDiffResponse.encodeDelimited = function encodeDelimited(message, writer) { + CreateWorkspaceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FetchFileDiffResponse message from the specified reader or buffer. + * Decodes a CreateWorkspaceRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dataform.v1beta1.FetchFileDiffResponse + * @memberof google.cloud.dataform.v1beta1.CreateWorkspaceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.FetchFileDiffResponse} FetchFileDiffResponse + * @returns {google.cloud.dataform.v1beta1.CreateWorkspaceRequest} CreateWorkspaceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FetchFileDiffResponse.decode = function decode(reader, length) { + CreateWorkspaceRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.FetchFileDiffResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.CreateWorkspaceRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.formattedDiff = reader.string(); + message.parent = reader.string(); + break; + } + case 2: { + message.workspace = $root.google.cloud.dataform.v1beta1.Workspace.decode(reader, reader.uint32()); + break; + } + case 3: { + message.workspaceId = reader.string(); break; } default: @@ -28736,125 +30269,144 @@ }; /** - * Decodes a FetchFileDiffResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateWorkspaceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.FetchFileDiffResponse + * @memberof google.cloud.dataform.v1beta1.CreateWorkspaceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.FetchFileDiffResponse} FetchFileDiffResponse + * @returns {google.cloud.dataform.v1beta1.CreateWorkspaceRequest} CreateWorkspaceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FetchFileDiffResponse.decodeDelimited = function decodeDelimited(reader) { + CreateWorkspaceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FetchFileDiffResponse message. + * Verifies a CreateWorkspaceRequest message. * @function verify - * @memberof google.cloud.dataform.v1beta1.FetchFileDiffResponse + * @memberof google.cloud.dataform.v1beta1.CreateWorkspaceRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FetchFileDiffResponse.verify = function verify(message) { + CreateWorkspaceRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.formattedDiff != null && message.hasOwnProperty("formattedDiff")) - if (!$util.isString(message.formattedDiff)) - return "formattedDiff: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.workspace != null && message.hasOwnProperty("workspace")) { + var error = $root.google.cloud.dataform.v1beta1.Workspace.verify(message.workspace); + if (error) + return "workspace." + error; + } + if (message.workspaceId != null && message.hasOwnProperty("workspaceId")) + if (!$util.isString(message.workspaceId)) + return "workspaceId: string expected"; return null; }; /** - * Creates a FetchFileDiffResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateWorkspaceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dataform.v1beta1.FetchFileDiffResponse + * @memberof google.cloud.dataform.v1beta1.CreateWorkspaceRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.FetchFileDiffResponse} FetchFileDiffResponse + * @returns {google.cloud.dataform.v1beta1.CreateWorkspaceRequest} CreateWorkspaceRequest */ - FetchFileDiffResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.FetchFileDiffResponse) + CreateWorkspaceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.CreateWorkspaceRequest) return object; - var message = new $root.google.cloud.dataform.v1beta1.FetchFileDiffResponse(); - if (object.formattedDiff != null) - message.formattedDiff = String(object.formattedDiff); + var message = new $root.google.cloud.dataform.v1beta1.CreateWorkspaceRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.workspace != null) { + if (typeof object.workspace !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.CreateWorkspaceRequest.workspace: object expected"); + message.workspace = $root.google.cloud.dataform.v1beta1.Workspace.fromObject(object.workspace); + } + if (object.workspaceId != null) + message.workspaceId = String(object.workspaceId); return message; }; /** - * Creates a plain object from a FetchFileDiffResponse message. Also converts values to other types if specified. + * Creates a plain object from a CreateWorkspaceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dataform.v1beta1.FetchFileDiffResponse + * @memberof google.cloud.dataform.v1beta1.CreateWorkspaceRequest * @static - * @param {google.cloud.dataform.v1beta1.FetchFileDiffResponse} message FetchFileDiffResponse + * @param {google.cloud.dataform.v1beta1.CreateWorkspaceRequest} message CreateWorkspaceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FetchFileDiffResponse.toObject = function toObject(message, options) { + CreateWorkspaceRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.formattedDiff = ""; - if (message.formattedDiff != null && message.hasOwnProperty("formattedDiff")) - object.formattedDiff = message.formattedDiff; + if (options.defaults) { + object.parent = ""; + object.workspace = null; + object.workspaceId = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.workspace != null && message.hasOwnProperty("workspace")) + object.workspace = $root.google.cloud.dataform.v1beta1.Workspace.toObject(message.workspace, options); + if (message.workspaceId != null && message.hasOwnProperty("workspaceId")) + object.workspaceId = message.workspaceId; return object; }; /** - * Converts this FetchFileDiffResponse to JSON. + * Converts this CreateWorkspaceRequest to JSON. * @function toJSON - * @memberof google.cloud.dataform.v1beta1.FetchFileDiffResponse + * @memberof google.cloud.dataform.v1beta1.CreateWorkspaceRequest * @instance * @returns {Object.} JSON object */ - FetchFileDiffResponse.prototype.toJSON = function toJSON() { + CreateWorkspaceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FetchFileDiffResponse + * Gets the default type url for CreateWorkspaceRequest * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.FetchFileDiffResponse + * @memberof google.cloud.dataform.v1beta1.CreateWorkspaceRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FetchFileDiffResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateWorkspaceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.FetchFileDiffResponse"; + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.CreateWorkspaceRequest"; }; - return FetchFileDiffResponse; + return CreateWorkspaceRequest; })(); - v1beta1.QueryDirectoryContentsRequest = (function() { + v1beta1.DeleteWorkspaceRequest = (function() { /** - * Properties of a QueryDirectoryContentsRequest. + * Properties of a DeleteWorkspaceRequest. * @memberof google.cloud.dataform.v1beta1 - * @interface IQueryDirectoryContentsRequest - * @property {string|null} [workspace] QueryDirectoryContentsRequest workspace - * @property {string|null} [path] QueryDirectoryContentsRequest path - * @property {number|null} [pageSize] QueryDirectoryContentsRequest pageSize - * @property {string|null} [pageToken] QueryDirectoryContentsRequest pageToken + * @interface IDeleteWorkspaceRequest + * @property {string|null} [name] DeleteWorkspaceRequest name */ /** - * Constructs a new QueryDirectoryContentsRequest. + * Constructs a new DeleteWorkspaceRequest. * @memberof google.cloud.dataform.v1beta1 - * @classdesc Represents a QueryDirectoryContentsRequest. - * @implements IQueryDirectoryContentsRequest + * @classdesc Represents a DeleteWorkspaceRequest. + * @implements IDeleteWorkspaceRequest * @constructor - * @param {google.cloud.dataform.v1beta1.IQueryDirectoryContentsRequest=} [properties] Properties to set + * @param {google.cloud.dataform.v1beta1.IDeleteWorkspaceRequest=} [properties] Properties to set */ - function QueryDirectoryContentsRequest(properties) { + function DeleteWorkspaceRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -28862,117 +30414,75 @@ } /** - * QueryDirectoryContentsRequest workspace. - * @member {string} workspace - * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest - * @instance - */ - QueryDirectoryContentsRequest.prototype.workspace = ""; - - /** - * QueryDirectoryContentsRequest path. - * @member {string} path - * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest - * @instance - */ - QueryDirectoryContentsRequest.prototype.path = ""; - - /** - * QueryDirectoryContentsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest - * @instance - */ - QueryDirectoryContentsRequest.prototype.pageSize = 0; - - /** - * QueryDirectoryContentsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest + * DeleteWorkspaceRequest name. + * @member {string} name + * @memberof google.cloud.dataform.v1beta1.DeleteWorkspaceRequest * @instance */ - QueryDirectoryContentsRequest.prototype.pageToken = ""; + DeleteWorkspaceRequest.prototype.name = ""; /** - * Creates a new QueryDirectoryContentsRequest instance using the specified properties. + * Creates a new DeleteWorkspaceRequest instance using the specified properties. * @function create - * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest + * @memberof google.cloud.dataform.v1beta1.DeleteWorkspaceRequest * @static - * @param {google.cloud.dataform.v1beta1.IQueryDirectoryContentsRequest=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest} QueryDirectoryContentsRequest instance + * @param {google.cloud.dataform.v1beta1.IDeleteWorkspaceRequest=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.DeleteWorkspaceRequest} DeleteWorkspaceRequest instance */ - QueryDirectoryContentsRequest.create = function create(properties) { - return new QueryDirectoryContentsRequest(properties); + DeleteWorkspaceRequest.create = function create(properties) { + return new DeleteWorkspaceRequest(properties); }; /** - * Encodes the specified QueryDirectoryContentsRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest.verify|verify} messages. + * Encodes the specified DeleteWorkspaceRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.DeleteWorkspaceRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest + * @memberof google.cloud.dataform.v1beta1.DeleteWorkspaceRequest * @static - * @param {google.cloud.dataform.v1beta1.IQueryDirectoryContentsRequest} message QueryDirectoryContentsRequest message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IDeleteWorkspaceRequest} message DeleteWorkspaceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryDirectoryContentsRequest.encode = function encode(message, writer) { + DeleteWorkspaceRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.workspace != null && Object.hasOwnProperty.call(message, "workspace")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.workspace); - if (message.path != null && Object.hasOwnProperty.call(message, "path")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified QueryDirectoryContentsRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest.verify|verify} messages. + * Encodes the specified DeleteWorkspaceRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.DeleteWorkspaceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest + * @memberof google.cloud.dataform.v1beta1.DeleteWorkspaceRequest * @static - * @param {google.cloud.dataform.v1beta1.IQueryDirectoryContentsRequest} message QueryDirectoryContentsRequest message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IDeleteWorkspaceRequest} message DeleteWorkspaceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryDirectoryContentsRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteWorkspaceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryDirectoryContentsRequest message from the specified reader or buffer. + * Decodes a DeleteWorkspaceRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest + * @memberof google.cloud.dataform.v1beta1.DeleteWorkspaceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest} QueryDirectoryContentsRequest + * @returns {google.cloud.dataform.v1beta1.DeleteWorkspaceRequest} DeleteWorkspaceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryDirectoryContentsRequest.decode = function decode(reader, length) { + DeleteWorkspaceRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.workspace = reader.string(); - break; - } - case 2: { - message.path = reader.string(); - break; - } - case 3: { - message.pageSize = reader.int32(); - break; - } - case 4: { - message.pageToken = reader.string(); + message.name = reader.string(); break; } default: @@ -28984,149 +30494,123 @@ }; /** - * Decodes a QueryDirectoryContentsRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteWorkspaceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest + * @memberof google.cloud.dataform.v1beta1.DeleteWorkspaceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest} QueryDirectoryContentsRequest + * @returns {google.cloud.dataform.v1beta1.DeleteWorkspaceRequest} DeleteWorkspaceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryDirectoryContentsRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteWorkspaceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryDirectoryContentsRequest message. + * Verifies a DeleteWorkspaceRequest message. * @function verify - * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest + * @memberof google.cloud.dataform.v1beta1.DeleteWorkspaceRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryDirectoryContentsRequest.verify = function verify(message) { + DeleteWorkspaceRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.workspace != null && message.hasOwnProperty("workspace")) - if (!$util.isString(message.workspace)) - return "workspace: string expected"; - if (message.path != null && message.hasOwnProperty("path")) - if (!$util.isString(message.path)) - return "path: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a QueryDirectoryContentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteWorkspaceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest + * @memberof google.cloud.dataform.v1beta1.DeleteWorkspaceRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest} QueryDirectoryContentsRequest + * @returns {google.cloud.dataform.v1beta1.DeleteWorkspaceRequest} DeleteWorkspaceRequest */ - QueryDirectoryContentsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest) + DeleteWorkspaceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest) return object; - var message = new $root.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest(); - if (object.workspace != null) - message.workspace = String(object.workspace); - if (object.path != null) - message.path = String(object.path); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + var message = new $root.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a QueryDirectoryContentsRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteWorkspaceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest + * @memberof google.cloud.dataform.v1beta1.DeleteWorkspaceRequest * @static - * @param {google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest} message QueryDirectoryContentsRequest + * @param {google.cloud.dataform.v1beta1.DeleteWorkspaceRequest} message DeleteWorkspaceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryDirectoryContentsRequest.toObject = function toObject(message, options) { + DeleteWorkspaceRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.workspace = ""; - object.path = ""; - object.pageSize = 0; - object.pageToken = ""; - } - if (message.workspace != null && message.hasOwnProperty("workspace")) - object.workspace = message.workspace; - if (message.path != null && message.hasOwnProperty("path")) - object.path = message.path; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this QueryDirectoryContentsRequest to JSON. + * Converts this DeleteWorkspaceRequest to JSON. * @function toJSON - * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest + * @memberof google.cloud.dataform.v1beta1.DeleteWorkspaceRequest * @instance * @returns {Object.} JSON object */ - QueryDirectoryContentsRequest.prototype.toJSON = function toJSON() { + DeleteWorkspaceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for QueryDirectoryContentsRequest + * Gets the default type url for DeleteWorkspaceRequest * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest + * @memberof google.cloud.dataform.v1beta1.DeleteWorkspaceRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - QueryDirectoryContentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteWorkspaceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest"; + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.DeleteWorkspaceRequest"; }; - return QueryDirectoryContentsRequest; + return DeleteWorkspaceRequest; })(); - v1beta1.QueryDirectoryContentsResponse = (function() { + v1beta1.CommitAuthor = (function() { /** - * Properties of a QueryDirectoryContentsResponse. + * Properties of a CommitAuthor. * @memberof google.cloud.dataform.v1beta1 - * @interface IQueryDirectoryContentsResponse - * @property {Array.|null} [directoryEntries] QueryDirectoryContentsResponse directoryEntries - * @property {string|null} [nextPageToken] QueryDirectoryContentsResponse nextPageToken + * @interface ICommitAuthor + * @property {string|null} [name] CommitAuthor name + * @property {string|null} [emailAddress] CommitAuthor emailAddress */ /** - * Constructs a new QueryDirectoryContentsResponse. + * Constructs a new CommitAuthor. * @memberof google.cloud.dataform.v1beta1 - * @classdesc Represents a QueryDirectoryContentsResponse. - * @implements IQueryDirectoryContentsResponse + * @classdesc Represents a CommitAuthor. + * @implements ICommitAuthor * @constructor - * @param {google.cloud.dataform.v1beta1.IQueryDirectoryContentsResponse=} [properties] Properties to set + * @param {google.cloud.dataform.v1beta1.ICommitAuthor=} [properties] Properties to set */ - function QueryDirectoryContentsResponse(properties) { - this.directoryEntries = []; + function CommitAuthor(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -29134,92 +30618,89 @@ } /** - * QueryDirectoryContentsResponse directoryEntries. - * @member {Array.} directoryEntries - * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse + * CommitAuthor name. + * @member {string} name + * @memberof google.cloud.dataform.v1beta1.CommitAuthor * @instance */ - QueryDirectoryContentsResponse.prototype.directoryEntries = $util.emptyArray; + CommitAuthor.prototype.name = ""; /** - * QueryDirectoryContentsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse + * CommitAuthor emailAddress. + * @member {string} emailAddress + * @memberof google.cloud.dataform.v1beta1.CommitAuthor * @instance */ - QueryDirectoryContentsResponse.prototype.nextPageToken = ""; + CommitAuthor.prototype.emailAddress = ""; /** - * Creates a new QueryDirectoryContentsResponse instance using the specified properties. + * Creates a new CommitAuthor instance using the specified properties. * @function create - * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse + * @memberof google.cloud.dataform.v1beta1.CommitAuthor * @static - * @param {google.cloud.dataform.v1beta1.IQueryDirectoryContentsResponse=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse} QueryDirectoryContentsResponse instance + * @param {google.cloud.dataform.v1beta1.ICommitAuthor=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.CommitAuthor} CommitAuthor instance */ - QueryDirectoryContentsResponse.create = function create(properties) { - return new QueryDirectoryContentsResponse(properties); + CommitAuthor.create = function create(properties) { + return new CommitAuthor(properties); }; /** - * Encodes the specified QueryDirectoryContentsResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.verify|verify} messages. + * Encodes the specified CommitAuthor message. Does not implicitly {@link google.cloud.dataform.v1beta1.CommitAuthor.verify|verify} messages. * @function encode - * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse + * @memberof google.cloud.dataform.v1beta1.CommitAuthor * @static - * @param {google.cloud.dataform.v1beta1.IQueryDirectoryContentsResponse} message QueryDirectoryContentsResponse message or plain object to encode + * @param {google.cloud.dataform.v1beta1.ICommitAuthor} message CommitAuthor message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryDirectoryContentsResponse.encode = function encode(message, writer) { + CommitAuthor.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.directoryEntries != null && message.directoryEntries.length) - for (var i = 0; i < message.directoryEntries.length; ++i) - $root.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry.encode(message.directoryEntries[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.emailAddress != null && Object.hasOwnProperty.call(message, "emailAddress")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.emailAddress); return writer; }; /** - * Encodes the specified QueryDirectoryContentsResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.verify|verify} messages. + * Encodes the specified CommitAuthor message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CommitAuthor.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse + * @memberof google.cloud.dataform.v1beta1.CommitAuthor * @static - * @param {google.cloud.dataform.v1beta1.IQueryDirectoryContentsResponse} message QueryDirectoryContentsResponse message or plain object to encode + * @param {google.cloud.dataform.v1beta1.ICommitAuthor} message CommitAuthor message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryDirectoryContentsResponse.encodeDelimited = function encodeDelimited(message, writer) { + CommitAuthor.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryDirectoryContentsResponse message from the specified reader or buffer. + * Decodes a CommitAuthor message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse + * @memberof google.cloud.dataform.v1beta1.CommitAuthor * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse} QueryDirectoryContentsResponse + * @returns {google.cloud.dataform.v1beta1.CommitAuthor} CommitAuthor * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryDirectoryContentsResponse.decode = function decode(reader, length) { + CommitAuthor.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.CommitAuthor(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.directoryEntries && message.directoryEntries.length)) - message.directoryEntries = []; - message.directoryEntries.push($root.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry.decode(reader, reader.uint32())); + message.name = reader.string(); break; } case 2: { - message.nextPageToken = reader.string(); + message.emailAddress = reader.string(); break; } default: @@ -29231,489 +30712,237 @@ }; /** - * Decodes a QueryDirectoryContentsResponse message from the specified reader or buffer, length delimited. + * Decodes a CommitAuthor message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse + * @memberof google.cloud.dataform.v1beta1.CommitAuthor * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse} QueryDirectoryContentsResponse + * @returns {google.cloud.dataform.v1beta1.CommitAuthor} CommitAuthor * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryDirectoryContentsResponse.decodeDelimited = function decodeDelimited(reader) { + CommitAuthor.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryDirectoryContentsResponse message. + * Verifies a CommitAuthor message. * @function verify - * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse + * @memberof google.cloud.dataform.v1beta1.CommitAuthor * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryDirectoryContentsResponse.verify = function verify(message) { + CommitAuthor.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.directoryEntries != null && message.hasOwnProperty("directoryEntries")) { - if (!Array.isArray(message.directoryEntries)) - return "directoryEntries: array expected"; - for (var i = 0; i < message.directoryEntries.length; ++i) { - var error = $root.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry.verify(message.directoryEntries[i]); - if (error) - return "directoryEntries." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.emailAddress != null && message.hasOwnProperty("emailAddress")) + if (!$util.isString(message.emailAddress)) + return "emailAddress: string expected"; return null; }; /** - * Creates a QueryDirectoryContentsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CommitAuthor message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse + * @memberof google.cloud.dataform.v1beta1.CommitAuthor * @static * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse} QueryDirectoryContentsResponse + * @returns {google.cloud.dataform.v1beta1.CommitAuthor} CommitAuthor */ - QueryDirectoryContentsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse) + CommitAuthor.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.CommitAuthor) return object; - var message = new $root.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse(); - if (object.directoryEntries) { - if (!Array.isArray(object.directoryEntries)) - throw TypeError(".google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.directoryEntries: array expected"); - message.directoryEntries = []; - for (var i = 0; i < object.directoryEntries.length; ++i) { - if (typeof object.directoryEntries[i] !== "object") - throw TypeError(".google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.directoryEntries: object expected"); - message.directoryEntries[i] = $root.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry.fromObject(object.directoryEntries[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.cloud.dataform.v1beta1.CommitAuthor(); + if (object.name != null) + message.name = String(object.name); + if (object.emailAddress != null) + message.emailAddress = String(object.emailAddress); return message; }; /** - * Creates a plain object from a QueryDirectoryContentsResponse message. Also converts values to other types if specified. + * Creates a plain object from a CommitAuthor message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse + * @memberof google.cloud.dataform.v1beta1.CommitAuthor * @static - * @param {google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse} message QueryDirectoryContentsResponse + * @param {google.cloud.dataform.v1beta1.CommitAuthor} message CommitAuthor * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryDirectoryContentsResponse.toObject = function toObject(message, options) { + CommitAuthor.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.directoryEntries = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.directoryEntries && message.directoryEntries.length) { - object.directoryEntries = []; - for (var j = 0; j < message.directoryEntries.length; ++j) - object.directoryEntries[j] = $root.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry.toObject(message.directoryEntries[j], options); + if (options.defaults) { + object.name = ""; + object.emailAddress = ""; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.emailAddress != null && message.hasOwnProperty("emailAddress")) + object.emailAddress = message.emailAddress; return object; }; /** - * Converts this QueryDirectoryContentsResponse to JSON. + * Converts this CommitAuthor to JSON. * @function toJSON - * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse + * @memberof google.cloud.dataform.v1beta1.CommitAuthor * @instance * @returns {Object.} JSON object */ - QueryDirectoryContentsResponse.prototype.toJSON = function toJSON() { + CommitAuthor.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for QueryDirectoryContentsResponse + * Gets the default type url for CommitAuthor * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse + * @memberof google.cloud.dataform.v1beta1.CommitAuthor * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - QueryDirectoryContentsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CommitAuthor.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse"; + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.CommitAuthor"; }; - QueryDirectoryContentsResponse.DirectoryEntry = (function() { + return CommitAuthor; + })(); - /** - * Properties of a DirectoryEntry. - * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse - * @interface IDirectoryEntry - * @property {string|null} [file] DirectoryEntry file - * @property {string|null} [directory] DirectoryEntry directory - */ + v1beta1.PullGitCommitsRequest = (function() { - /** - * Constructs a new DirectoryEntry. - * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse - * @classdesc Represents a DirectoryEntry. - * @implements IDirectoryEntry - * @constructor - * @param {google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.IDirectoryEntry=} [properties] Properties to set - */ - function DirectoryEntry(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a PullGitCommitsRequest. + * @memberof google.cloud.dataform.v1beta1 + * @interface IPullGitCommitsRequest + * @property {string|null} [name] PullGitCommitsRequest name + * @property {string|null} [remoteBranch] PullGitCommitsRequest remoteBranch + * @property {google.cloud.dataform.v1beta1.ICommitAuthor|null} [author] PullGitCommitsRequest author + */ - /** - * DirectoryEntry file. - * @member {string|null|undefined} file - * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry - * @instance - */ - DirectoryEntry.prototype.file = null; + /** + * Constructs a new PullGitCommitsRequest. + * @memberof google.cloud.dataform.v1beta1 + * @classdesc Represents a PullGitCommitsRequest. + * @implements IPullGitCommitsRequest + * @constructor + * @param {google.cloud.dataform.v1beta1.IPullGitCommitsRequest=} [properties] Properties to set + */ + function PullGitCommitsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * DirectoryEntry directory. - * @member {string|null|undefined} directory - * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry - * @instance - */ - DirectoryEntry.prototype.directory = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * DirectoryEntry entry. - * @member {"file"|"directory"|undefined} entry - * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry - * @instance - */ - Object.defineProperty(DirectoryEntry.prototype, "entry", { - get: $util.oneOfGetter($oneOfFields = ["file", "directory"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new DirectoryEntry instance using the specified properties. - * @function create - * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry - * @static - * @param {google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.IDirectoryEntry=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry} DirectoryEntry instance - */ - DirectoryEntry.create = function create(properties) { - return new DirectoryEntry(properties); - }; - - /** - * Encodes the specified DirectoryEntry message. Does not implicitly {@link google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry.verify|verify} messages. - * @function encode - * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry - * @static - * @param {google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.IDirectoryEntry} message DirectoryEntry message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DirectoryEntry.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.file != null && Object.hasOwnProperty.call(message, "file")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.file); - if (message.directory != null && Object.hasOwnProperty.call(message, "directory")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.directory); - return writer; - }; - - /** - * Encodes the specified DirectoryEntry message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry - * @static - * @param {google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.IDirectoryEntry} message DirectoryEntry message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DirectoryEntry.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a DirectoryEntry message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry} DirectoryEntry - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DirectoryEntry.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.file = reader.string(); - break; - } - case 2: { - message.directory = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a DirectoryEntry message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry} DirectoryEntry - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DirectoryEntry.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DirectoryEntry message. - * @function verify - * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DirectoryEntry.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.file != null && message.hasOwnProperty("file")) { - properties.entry = 1; - if (!$util.isString(message.file)) - return "file: string expected"; - } - if (message.directory != null && message.hasOwnProperty("directory")) { - if (properties.entry === 1) - return "entry: multiple values"; - properties.entry = 1; - if (!$util.isString(message.directory)) - return "directory: string expected"; - } - return null; - }; - - /** - * Creates a DirectoryEntry message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry} DirectoryEntry - */ - DirectoryEntry.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry) - return object; - var message = new $root.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry(); - if (object.file != null) - message.file = String(object.file); - if (object.directory != null) - message.directory = String(object.directory); - return message; - }; - - /** - * Creates a plain object from a DirectoryEntry message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry - * @static - * @param {google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry} message DirectoryEntry - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DirectoryEntry.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.file != null && message.hasOwnProperty("file")) { - object.file = message.file; - if (options.oneofs) - object.entry = "file"; - } - if (message.directory != null && message.hasOwnProperty("directory")) { - object.directory = message.directory; - if (options.oneofs) - object.entry = "directory"; - } - return object; - }; - - /** - * Converts this DirectoryEntry to JSON. - * @function toJSON - * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry - * @instance - * @returns {Object.} JSON object - */ - DirectoryEntry.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for DirectoryEntry - * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - DirectoryEntry.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry"; - }; - - return DirectoryEntry; - })(); - - return QueryDirectoryContentsResponse; - })(); - - v1beta1.MakeDirectoryRequest = (function() { - - /** - * Properties of a MakeDirectoryRequest. - * @memberof google.cloud.dataform.v1beta1 - * @interface IMakeDirectoryRequest - * @property {string|null} [workspace] MakeDirectoryRequest workspace - * @property {string|null} [path] MakeDirectoryRequest path - */ - - /** - * Constructs a new MakeDirectoryRequest. - * @memberof google.cloud.dataform.v1beta1 - * @classdesc Represents a MakeDirectoryRequest. - * @implements IMakeDirectoryRequest - * @constructor - * @param {google.cloud.dataform.v1beta1.IMakeDirectoryRequest=} [properties] Properties to set - */ - function MakeDirectoryRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * PullGitCommitsRequest name. + * @member {string} name + * @memberof google.cloud.dataform.v1beta1.PullGitCommitsRequest + * @instance + */ + PullGitCommitsRequest.prototype.name = ""; /** - * MakeDirectoryRequest workspace. - * @member {string} workspace - * @memberof google.cloud.dataform.v1beta1.MakeDirectoryRequest + * PullGitCommitsRequest remoteBranch. + * @member {string} remoteBranch + * @memberof google.cloud.dataform.v1beta1.PullGitCommitsRequest * @instance */ - MakeDirectoryRequest.prototype.workspace = ""; + PullGitCommitsRequest.prototype.remoteBranch = ""; /** - * MakeDirectoryRequest path. - * @member {string} path - * @memberof google.cloud.dataform.v1beta1.MakeDirectoryRequest + * PullGitCommitsRequest author. + * @member {google.cloud.dataform.v1beta1.ICommitAuthor|null|undefined} author + * @memberof google.cloud.dataform.v1beta1.PullGitCommitsRequest * @instance */ - MakeDirectoryRequest.prototype.path = ""; + PullGitCommitsRequest.prototype.author = null; /** - * Creates a new MakeDirectoryRequest instance using the specified properties. + * Creates a new PullGitCommitsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dataform.v1beta1.MakeDirectoryRequest + * @memberof google.cloud.dataform.v1beta1.PullGitCommitsRequest * @static - * @param {google.cloud.dataform.v1beta1.IMakeDirectoryRequest=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.MakeDirectoryRequest} MakeDirectoryRequest instance + * @param {google.cloud.dataform.v1beta1.IPullGitCommitsRequest=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.PullGitCommitsRequest} PullGitCommitsRequest instance */ - MakeDirectoryRequest.create = function create(properties) { - return new MakeDirectoryRequest(properties); + PullGitCommitsRequest.create = function create(properties) { + return new PullGitCommitsRequest(properties); }; /** - * Encodes the specified MakeDirectoryRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.MakeDirectoryRequest.verify|verify} messages. + * Encodes the specified PullGitCommitsRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.PullGitCommitsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dataform.v1beta1.MakeDirectoryRequest + * @memberof google.cloud.dataform.v1beta1.PullGitCommitsRequest * @static - * @param {google.cloud.dataform.v1beta1.IMakeDirectoryRequest} message MakeDirectoryRequest message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IPullGitCommitsRequest} message PullGitCommitsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MakeDirectoryRequest.encode = function encode(message, writer) { + PullGitCommitsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.workspace != null && Object.hasOwnProperty.call(message, "workspace")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.workspace); - if (message.path != null && Object.hasOwnProperty.call(message, "path")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.remoteBranch != null && Object.hasOwnProperty.call(message, "remoteBranch")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.remoteBranch); + if (message.author != null && Object.hasOwnProperty.call(message, "author")) + $root.google.cloud.dataform.v1beta1.CommitAuthor.encode(message.author, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified MakeDirectoryRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.MakeDirectoryRequest.verify|verify} messages. + * Encodes the specified PullGitCommitsRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.PullGitCommitsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.MakeDirectoryRequest + * @memberof google.cloud.dataform.v1beta1.PullGitCommitsRequest * @static - * @param {google.cloud.dataform.v1beta1.IMakeDirectoryRequest} message MakeDirectoryRequest message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IPullGitCommitsRequest} message PullGitCommitsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MakeDirectoryRequest.encodeDelimited = function encodeDelimited(message, writer) { + PullGitCommitsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MakeDirectoryRequest message from the specified reader or buffer. + * Decodes a PullGitCommitsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dataform.v1beta1.MakeDirectoryRequest + * @memberof google.cloud.dataform.v1beta1.PullGitCommitsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.MakeDirectoryRequest} MakeDirectoryRequest + * @returns {google.cloud.dataform.v1beta1.PullGitCommitsRequest} PullGitCommitsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MakeDirectoryRequest.decode = function decode(reader, length) { + PullGitCommitsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.MakeDirectoryRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.PullGitCommitsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.workspace = reader.string(); + message.name = reader.string(); break; } case 2: { - message.path = reader.string(); + message.remoteBranch = reader.string(); + break; + } + case 3: { + message.author = $root.google.cloud.dataform.v1beta1.CommitAuthor.decode(reader, reader.uint32()); break; } default: @@ -29725,130 +30954,145 @@ }; /** - * Decodes a MakeDirectoryRequest message from the specified reader or buffer, length delimited. + * Decodes a PullGitCommitsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.MakeDirectoryRequest + * @memberof google.cloud.dataform.v1beta1.PullGitCommitsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.MakeDirectoryRequest} MakeDirectoryRequest + * @returns {google.cloud.dataform.v1beta1.PullGitCommitsRequest} PullGitCommitsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MakeDirectoryRequest.decodeDelimited = function decodeDelimited(reader) { + PullGitCommitsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MakeDirectoryRequest message. + * Verifies a PullGitCommitsRequest message. * @function verify - * @memberof google.cloud.dataform.v1beta1.MakeDirectoryRequest + * @memberof google.cloud.dataform.v1beta1.PullGitCommitsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MakeDirectoryRequest.verify = function verify(message) { + PullGitCommitsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.workspace != null && message.hasOwnProperty("workspace")) - if (!$util.isString(message.workspace)) - return "workspace: string expected"; - if (message.path != null && message.hasOwnProperty("path")) - if (!$util.isString(message.path)) - return "path: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.remoteBranch != null && message.hasOwnProperty("remoteBranch")) + if (!$util.isString(message.remoteBranch)) + return "remoteBranch: string expected"; + if (message.author != null && message.hasOwnProperty("author")) { + var error = $root.google.cloud.dataform.v1beta1.CommitAuthor.verify(message.author); + if (error) + return "author." + error; + } return null; }; /** - * Creates a MakeDirectoryRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PullGitCommitsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dataform.v1beta1.MakeDirectoryRequest + * @memberof google.cloud.dataform.v1beta1.PullGitCommitsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.MakeDirectoryRequest} MakeDirectoryRequest + * @returns {google.cloud.dataform.v1beta1.PullGitCommitsRequest} PullGitCommitsRequest */ - MakeDirectoryRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.MakeDirectoryRequest) + PullGitCommitsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.PullGitCommitsRequest) return object; - var message = new $root.google.cloud.dataform.v1beta1.MakeDirectoryRequest(); - if (object.workspace != null) - message.workspace = String(object.workspace); - if (object.path != null) - message.path = String(object.path); + var message = new $root.google.cloud.dataform.v1beta1.PullGitCommitsRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.remoteBranch != null) + message.remoteBranch = String(object.remoteBranch); + if (object.author != null) { + if (typeof object.author !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.PullGitCommitsRequest.author: object expected"); + message.author = $root.google.cloud.dataform.v1beta1.CommitAuthor.fromObject(object.author); + } return message; }; /** - * Creates a plain object from a MakeDirectoryRequest message. Also converts values to other types if specified. + * Creates a plain object from a PullGitCommitsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dataform.v1beta1.MakeDirectoryRequest + * @memberof google.cloud.dataform.v1beta1.PullGitCommitsRequest * @static - * @param {google.cloud.dataform.v1beta1.MakeDirectoryRequest} message MakeDirectoryRequest + * @param {google.cloud.dataform.v1beta1.PullGitCommitsRequest} message PullGitCommitsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MakeDirectoryRequest.toObject = function toObject(message, options) { + PullGitCommitsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.workspace = ""; - object.path = ""; + object.name = ""; + object.remoteBranch = ""; + object.author = null; } - if (message.workspace != null && message.hasOwnProperty("workspace")) - object.workspace = message.workspace; - if (message.path != null && message.hasOwnProperty("path")) - object.path = message.path; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.remoteBranch != null && message.hasOwnProperty("remoteBranch")) + object.remoteBranch = message.remoteBranch; + if (message.author != null && message.hasOwnProperty("author")) + object.author = $root.google.cloud.dataform.v1beta1.CommitAuthor.toObject(message.author, options); return object; }; /** - * Converts this MakeDirectoryRequest to JSON. + * Converts this PullGitCommitsRequest to JSON. * @function toJSON - * @memberof google.cloud.dataform.v1beta1.MakeDirectoryRequest + * @memberof google.cloud.dataform.v1beta1.PullGitCommitsRequest * @instance * @returns {Object.} JSON object */ - MakeDirectoryRequest.prototype.toJSON = function toJSON() { + PullGitCommitsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MakeDirectoryRequest + * Gets the default type url for PullGitCommitsRequest * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.MakeDirectoryRequest + * @memberof google.cloud.dataform.v1beta1.PullGitCommitsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MakeDirectoryRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PullGitCommitsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.MakeDirectoryRequest"; + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.PullGitCommitsRequest"; }; - return MakeDirectoryRequest; + return PullGitCommitsRequest; })(); - v1beta1.MakeDirectoryResponse = (function() { + v1beta1.PushGitCommitsRequest = (function() { /** - * Properties of a MakeDirectoryResponse. + * Properties of a PushGitCommitsRequest. * @memberof google.cloud.dataform.v1beta1 - * @interface IMakeDirectoryResponse + * @interface IPushGitCommitsRequest + * @property {string|null} [name] PushGitCommitsRequest name + * @property {string|null} [remoteBranch] PushGitCommitsRequest remoteBranch */ /** - * Constructs a new MakeDirectoryResponse. + * Constructs a new PushGitCommitsRequest. * @memberof google.cloud.dataform.v1beta1 - * @classdesc Represents a MakeDirectoryResponse. - * @implements IMakeDirectoryResponse + * @classdesc Represents a PushGitCommitsRequest. + * @implements IPushGitCommitsRequest * @constructor - * @param {google.cloud.dataform.v1beta1.IMakeDirectoryResponse=} [properties] Properties to set + * @param {google.cloud.dataform.v1beta1.IPushGitCommitsRequest=} [properties] Properties to set */ - function MakeDirectoryResponse(properties) { + function PushGitCommitsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -29856,63 +31100,91 @@ } /** - * Creates a new MakeDirectoryResponse instance using the specified properties. + * PushGitCommitsRequest name. + * @member {string} name + * @memberof google.cloud.dataform.v1beta1.PushGitCommitsRequest + * @instance + */ + PushGitCommitsRequest.prototype.name = ""; + + /** + * PushGitCommitsRequest remoteBranch. + * @member {string} remoteBranch + * @memberof google.cloud.dataform.v1beta1.PushGitCommitsRequest + * @instance + */ + PushGitCommitsRequest.prototype.remoteBranch = ""; + + /** + * Creates a new PushGitCommitsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dataform.v1beta1.MakeDirectoryResponse + * @memberof google.cloud.dataform.v1beta1.PushGitCommitsRequest * @static - * @param {google.cloud.dataform.v1beta1.IMakeDirectoryResponse=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.MakeDirectoryResponse} MakeDirectoryResponse instance + * @param {google.cloud.dataform.v1beta1.IPushGitCommitsRequest=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.PushGitCommitsRequest} PushGitCommitsRequest instance */ - MakeDirectoryResponse.create = function create(properties) { - return new MakeDirectoryResponse(properties); + PushGitCommitsRequest.create = function create(properties) { + return new PushGitCommitsRequest(properties); }; /** - * Encodes the specified MakeDirectoryResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.MakeDirectoryResponse.verify|verify} messages. + * Encodes the specified PushGitCommitsRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.PushGitCommitsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dataform.v1beta1.MakeDirectoryResponse + * @memberof google.cloud.dataform.v1beta1.PushGitCommitsRequest * @static - * @param {google.cloud.dataform.v1beta1.IMakeDirectoryResponse} message MakeDirectoryResponse message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IPushGitCommitsRequest} message PushGitCommitsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MakeDirectoryResponse.encode = function encode(message, writer) { + PushGitCommitsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.remoteBranch != null && Object.hasOwnProperty.call(message, "remoteBranch")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.remoteBranch); return writer; }; /** - * Encodes the specified MakeDirectoryResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.MakeDirectoryResponse.verify|verify} messages. + * Encodes the specified PushGitCommitsRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.PushGitCommitsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.MakeDirectoryResponse + * @memberof google.cloud.dataform.v1beta1.PushGitCommitsRequest * @static - * @param {google.cloud.dataform.v1beta1.IMakeDirectoryResponse} message MakeDirectoryResponse message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IPushGitCommitsRequest} message PushGitCommitsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MakeDirectoryResponse.encodeDelimited = function encodeDelimited(message, writer) { + PushGitCommitsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MakeDirectoryResponse message from the specified reader or buffer. + * Decodes a PushGitCommitsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dataform.v1beta1.MakeDirectoryResponse + * @memberof google.cloud.dataform.v1beta1.PushGitCommitsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.MakeDirectoryResponse} MakeDirectoryResponse + * @returns {google.cloud.dataform.v1beta1.PushGitCommitsRequest} PushGitCommitsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MakeDirectoryResponse.decode = function decode(reader, length) { + PushGitCommitsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.MakeDirectoryResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.PushGitCommitsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.remoteBranch = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -29922,110 +31194,131 @@ }; /** - * Decodes a MakeDirectoryResponse message from the specified reader or buffer, length delimited. + * Decodes a PushGitCommitsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.MakeDirectoryResponse + * @memberof google.cloud.dataform.v1beta1.PushGitCommitsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.MakeDirectoryResponse} MakeDirectoryResponse + * @returns {google.cloud.dataform.v1beta1.PushGitCommitsRequest} PushGitCommitsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MakeDirectoryResponse.decodeDelimited = function decodeDelimited(reader) { + PushGitCommitsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MakeDirectoryResponse message. + * Verifies a PushGitCommitsRequest message. * @function verify - * @memberof google.cloud.dataform.v1beta1.MakeDirectoryResponse + * @memberof google.cloud.dataform.v1beta1.PushGitCommitsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MakeDirectoryResponse.verify = function verify(message) { + PushGitCommitsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.remoteBranch != null && message.hasOwnProperty("remoteBranch")) + if (!$util.isString(message.remoteBranch)) + return "remoteBranch: string expected"; return null; }; /** - * Creates a MakeDirectoryResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PushGitCommitsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dataform.v1beta1.MakeDirectoryResponse + * @memberof google.cloud.dataform.v1beta1.PushGitCommitsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.MakeDirectoryResponse} MakeDirectoryResponse + * @returns {google.cloud.dataform.v1beta1.PushGitCommitsRequest} PushGitCommitsRequest */ - MakeDirectoryResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.MakeDirectoryResponse) + PushGitCommitsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.PushGitCommitsRequest) return object; - return new $root.google.cloud.dataform.v1beta1.MakeDirectoryResponse(); + var message = new $root.google.cloud.dataform.v1beta1.PushGitCommitsRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.remoteBranch != null) + message.remoteBranch = String(object.remoteBranch); + return message; }; /** - * Creates a plain object from a MakeDirectoryResponse message. Also converts values to other types if specified. + * Creates a plain object from a PushGitCommitsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dataform.v1beta1.MakeDirectoryResponse + * @memberof google.cloud.dataform.v1beta1.PushGitCommitsRequest * @static - * @param {google.cloud.dataform.v1beta1.MakeDirectoryResponse} message MakeDirectoryResponse + * @param {google.cloud.dataform.v1beta1.PushGitCommitsRequest} message PushGitCommitsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MakeDirectoryResponse.toObject = function toObject() { - return {}; - }; - - /** - * Converts this MakeDirectoryResponse to JSON. + PushGitCommitsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.remoteBranch = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.remoteBranch != null && message.hasOwnProperty("remoteBranch")) + object.remoteBranch = message.remoteBranch; + return object; + }; + + /** + * Converts this PushGitCommitsRequest to JSON. * @function toJSON - * @memberof google.cloud.dataform.v1beta1.MakeDirectoryResponse + * @memberof google.cloud.dataform.v1beta1.PushGitCommitsRequest * @instance * @returns {Object.} JSON object */ - MakeDirectoryResponse.prototype.toJSON = function toJSON() { + PushGitCommitsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MakeDirectoryResponse + * Gets the default type url for PushGitCommitsRequest * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.MakeDirectoryResponse + * @memberof google.cloud.dataform.v1beta1.PushGitCommitsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MakeDirectoryResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PushGitCommitsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.MakeDirectoryResponse"; + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.PushGitCommitsRequest"; }; - return MakeDirectoryResponse; + return PushGitCommitsRequest; })(); - v1beta1.RemoveDirectoryRequest = (function() { + v1beta1.FetchFileGitStatusesRequest = (function() { /** - * Properties of a RemoveDirectoryRequest. + * Properties of a FetchFileGitStatusesRequest. * @memberof google.cloud.dataform.v1beta1 - * @interface IRemoveDirectoryRequest - * @property {string|null} [workspace] RemoveDirectoryRequest workspace - * @property {string|null} [path] RemoveDirectoryRequest path + * @interface IFetchFileGitStatusesRequest + * @property {string|null} [name] FetchFileGitStatusesRequest name */ /** - * Constructs a new RemoveDirectoryRequest. + * Constructs a new FetchFileGitStatusesRequest. * @memberof google.cloud.dataform.v1beta1 - * @classdesc Represents a RemoveDirectoryRequest. - * @implements IRemoveDirectoryRequest + * @classdesc Represents a FetchFileGitStatusesRequest. + * @implements IFetchFileGitStatusesRequest * @constructor - * @param {google.cloud.dataform.v1beta1.IRemoveDirectoryRequest=} [properties] Properties to set + * @param {google.cloud.dataform.v1beta1.IFetchFileGitStatusesRequest=} [properties] Properties to set */ - function RemoveDirectoryRequest(properties) { + function FetchFileGitStatusesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -30033,89 +31326,75 @@ } /** - * RemoveDirectoryRequest workspace. - * @member {string} workspace - * @memberof google.cloud.dataform.v1beta1.RemoveDirectoryRequest - * @instance - */ - RemoveDirectoryRequest.prototype.workspace = ""; - - /** - * RemoveDirectoryRequest path. - * @member {string} path - * @memberof google.cloud.dataform.v1beta1.RemoveDirectoryRequest + * FetchFileGitStatusesRequest name. + * @member {string} name + * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest * @instance */ - RemoveDirectoryRequest.prototype.path = ""; + FetchFileGitStatusesRequest.prototype.name = ""; /** - * Creates a new RemoveDirectoryRequest instance using the specified properties. + * Creates a new FetchFileGitStatusesRequest instance using the specified properties. * @function create - * @memberof google.cloud.dataform.v1beta1.RemoveDirectoryRequest + * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest * @static - * @param {google.cloud.dataform.v1beta1.IRemoveDirectoryRequest=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.RemoveDirectoryRequest} RemoveDirectoryRequest instance + * @param {google.cloud.dataform.v1beta1.IFetchFileGitStatusesRequest=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest} FetchFileGitStatusesRequest instance */ - RemoveDirectoryRequest.create = function create(properties) { - return new RemoveDirectoryRequest(properties); + FetchFileGitStatusesRequest.create = function create(properties) { + return new FetchFileGitStatusesRequest(properties); }; /** - * Encodes the specified RemoveDirectoryRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.RemoveDirectoryRequest.verify|verify} messages. + * Encodes the specified FetchFileGitStatusesRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dataform.v1beta1.RemoveDirectoryRequest + * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest * @static - * @param {google.cloud.dataform.v1beta1.IRemoveDirectoryRequest} message RemoveDirectoryRequest message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IFetchFileGitStatusesRequest} message FetchFileGitStatusesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RemoveDirectoryRequest.encode = function encode(message, writer) { + FetchFileGitStatusesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.workspace != null && Object.hasOwnProperty.call(message, "workspace")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.workspace); - if (message.path != null && Object.hasOwnProperty.call(message, "path")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified RemoveDirectoryRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.RemoveDirectoryRequest.verify|verify} messages. + * Encodes the specified FetchFileGitStatusesRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.RemoveDirectoryRequest + * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest * @static - * @param {google.cloud.dataform.v1beta1.IRemoveDirectoryRequest} message RemoveDirectoryRequest message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IFetchFileGitStatusesRequest} message FetchFileGitStatusesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RemoveDirectoryRequest.encodeDelimited = function encodeDelimited(message, writer) { + FetchFileGitStatusesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RemoveDirectoryRequest message from the specified reader or buffer. + * Decodes a FetchFileGitStatusesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dataform.v1beta1.RemoveDirectoryRequest + * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.RemoveDirectoryRequest} RemoveDirectoryRequest + * @returns {google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest} FetchFileGitStatusesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RemoveDirectoryRequest.decode = function decode(reader, length) { + FetchFileGitStatusesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.RemoveDirectoryRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.workspace = reader.string(); - break; - } - case 2: { - message.path = reader.string(); + message.name = reader.string(); break; } default: @@ -30127,133 +31406,123 @@ }; /** - * Decodes a RemoveDirectoryRequest message from the specified reader or buffer, length delimited. + * Decodes a FetchFileGitStatusesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.RemoveDirectoryRequest + * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.RemoveDirectoryRequest} RemoveDirectoryRequest + * @returns {google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest} FetchFileGitStatusesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RemoveDirectoryRequest.decodeDelimited = function decodeDelimited(reader) { + FetchFileGitStatusesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RemoveDirectoryRequest message. + * Verifies a FetchFileGitStatusesRequest message. * @function verify - * @memberof google.cloud.dataform.v1beta1.RemoveDirectoryRequest + * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RemoveDirectoryRequest.verify = function verify(message) { + FetchFileGitStatusesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.workspace != null && message.hasOwnProperty("workspace")) - if (!$util.isString(message.workspace)) - return "workspace: string expected"; - if (message.path != null && message.hasOwnProperty("path")) - if (!$util.isString(message.path)) - return "path: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a RemoveDirectoryRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FetchFileGitStatusesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dataform.v1beta1.RemoveDirectoryRequest + * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.RemoveDirectoryRequest} RemoveDirectoryRequest + * @returns {google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest} FetchFileGitStatusesRequest */ - RemoveDirectoryRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.RemoveDirectoryRequest) + FetchFileGitStatusesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest) return object; - var message = new $root.google.cloud.dataform.v1beta1.RemoveDirectoryRequest(); - if (object.workspace != null) - message.workspace = String(object.workspace); - if (object.path != null) - message.path = String(object.path); + var message = new $root.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a RemoveDirectoryRequest message. Also converts values to other types if specified. + * Creates a plain object from a FetchFileGitStatusesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dataform.v1beta1.RemoveDirectoryRequest + * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest * @static - * @param {google.cloud.dataform.v1beta1.RemoveDirectoryRequest} message RemoveDirectoryRequest + * @param {google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest} message FetchFileGitStatusesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RemoveDirectoryRequest.toObject = function toObject(message, options) { + FetchFileGitStatusesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.workspace = ""; - object.path = ""; - } - if (message.workspace != null && message.hasOwnProperty("workspace")) - object.workspace = message.workspace; - if (message.path != null && message.hasOwnProperty("path")) - object.path = message.path; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this RemoveDirectoryRequest to JSON. + * Converts this FetchFileGitStatusesRequest to JSON. * @function toJSON - * @memberof google.cloud.dataform.v1beta1.RemoveDirectoryRequest + * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest * @instance * @returns {Object.} JSON object */ - RemoveDirectoryRequest.prototype.toJSON = function toJSON() { + FetchFileGitStatusesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RemoveDirectoryRequest + * Gets the default type url for FetchFileGitStatusesRequest * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.RemoveDirectoryRequest + * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RemoveDirectoryRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FetchFileGitStatusesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.RemoveDirectoryRequest"; + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest"; }; - return RemoveDirectoryRequest; + return FetchFileGitStatusesRequest; })(); - v1beta1.MoveDirectoryRequest = (function() { + v1beta1.FetchFileGitStatusesResponse = (function() { /** - * Properties of a MoveDirectoryRequest. + * Properties of a FetchFileGitStatusesResponse. * @memberof google.cloud.dataform.v1beta1 - * @interface IMoveDirectoryRequest - * @property {string|null} [workspace] MoveDirectoryRequest workspace - * @property {string|null} [path] MoveDirectoryRequest path - * @property {string|null} [newPath] MoveDirectoryRequest newPath + * @interface IFetchFileGitStatusesResponse + * @property {Array.|null} [uncommittedFileChanges] FetchFileGitStatusesResponse uncommittedFileChanges */ /** - * Constructs a new MoveDirectoryRequest. + * Constructs a new FetchFileGitStatusesResponse. * @memberof google.cloud.dataform.v1beta1 - * @classdesc Represents a MoveDirectoryRequest. - * @implements IMoveDirectoryRequest + * @classdesc Represents a FetchFileGitStatusesResponse. + * @implements IFetchFileGitStatusesResponse * @constructor - * @param {google.cloud.dataform.v1beta1.IMoveDirectoryRequest=} [properties] Properties to set + * @param {google.cloud.dataform.v1beta1.IFetchFileGitStatusesResponse=} [properties] Properties to set */ - function MoveDirectoryRequest(properties) { + function FetchFileGitStatusesResponse(properties) { + this.uncommittedFileChanges = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -30261,103 +31530,78 @@ } /** - * MoveDirectoryRequest workspace. - * @member {string} workspace - * @memberof google.cloud.dataform.v1beta1.MoveDirectoryRequest - * @instance - */ - MoveDirectoryRequest.prototype.workspace = ""; - - /** - * MoveDirectoryRequest path. - * @member {string} path - * @memberof google.cloud.dataform.v1beta1.MoveDirectoryRequest - * @instance - */ - MoveDirectoryRequest.prototype.path = ""; - - /** - * MoveDirectoryRequest newPath. - * @member {string} newPath - * @memberof google.cloud.dataform.v1beta1.MoveDirectoryRequest + * FetchFileGitStatusesResponse uncommittedFileChanges. + * @member {Array.} uncommittedFileChanges + * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse * @instance */ - MoveDirectoryRequest.prototype.newPath = ""; + FetchFileGitStatusesResponse.prototype.uncommittedFileChanges = $util.emptyArray; /** - * Creates a new MoveDirectoryRequest instance using the specified properties. + * Creates a new FetchFileGitStatusesResponse instance using the specified properties. * @function create - * @memberof google.cloud.dataform.v1beta1.MoveDirectoryRequest + * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse * @static - * @param {google.cloud.dataform.v1beta1.IMoveDirectoryRequest=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.MoveDirectoryRequest} MoveDirectoryRequest instance + * @param {google.cloud.dataform.v1beta1.IFetchFileGitStatusesResponse=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse} FetchFileGitStatusesResponse instance */ - MoveDirectoryRequest.create = function create(properties) { - return new MoveDirectoryRequest(properties); + FetchFileGitStatusesResponse.create = function create(properties) { + return new FetchFileGitStatusesResponse(properties); }; /** - * Encodes the specified MoveDirectoryRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.MoveDirectoryRequest.verify|verify} messages. + * Encodes the specified FetchFileGitStatusesResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dataform.v1beta1.MoveDirectoryRequest + * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse * @static - * @param {google.cloud.dataform.v1beta1.IMoveDirectoryRequest} message MoveDirectoryRequest message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IFetchFileGitStatusesResponse} message FetchFileGitStatusesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MoveDirectoryRequest.encode = function encode(message, writer) { + FetchFileGitStatusesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.workspace != null && Object.hasOwnProperty.call(message, "workspace")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.workspace); - if (message.path != null && Object.hasOwnProperty.call(message, "path")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); - if (message.newPath != null && Object.hasOwnProperty.call(message, "newPath")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.newPath); + if (message.uncommittedFileChanges != null && message.uncommittedFileChanges.length) + for (var i = 0; i < message.uncommittedFileChanges.length; ++i) + $root.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.encode(message.uncommittedFileChanges[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified MoveDirectoryRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.MoveDirectoryRequest.verify|verify} messages. + * Encodes the specified FetchFileGitStatusesResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.MoveDirectoryRequest + * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse * @static - * @param {google.cloud.dataform.v1beta1.IMoveDirectoryRequest} message MoveDirectoryRequest message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IFetchFileGitStatusesResponse} message FetchFileGitStatusesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MoveDirectoryRequest.encodeDelimited = function encodeDelimited(message, writer) { + FetchFileGitStatusesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MoveDirectoryRequest message from the specified reader or buffer. + * Decodes a FetchFileGitStatusesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dataform.v1beta1.MoveDirectoryRequest + * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.MoveDirectoryRequest} MoveDirectoryRequest + * @returns {google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse} FetchFileGitStatusesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MoveDirectoryRequest.decode = function decode(reader, length) { + FetchFileGitStatusesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.MoveDirectoryRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.workspace = reader.string(); - break; - } - case 2: { - message.path = reader.string(); - break; - } - case 3: { - message.newPath = reader.string(); + if (!(message.uncommittedFileChanges && message.uncommittedFileChanges.length)) + message.uncommittedFileChanges = []; + message.uncommittedFileChanges.push($root.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.decode(reader, reader.uint32())); break; } default: @@ -30369,315 +31613,421 @@ }; /** - * Decodes a MoveDirectoryRequest message from the specified reader or buffer, length delimited. + * Decodes a FetchFileGitStatusesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.MoveDirectoryRequest + * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.MoveDirectoryRequest} MoveDirectoryRequest + * @returns {google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse} FetchFileGitStatusesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MoveDirectoryRequest.decodeDelimited = function decodeDelimited(reader) { + FetchFileGitStatusesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MoveDirectoryRequest message. + * Verifies a FetchFileGitStatusesResponse message. * @function verify - * @memberof google.cloud.dataform.v1beta1.MoveDirectoryRequest + * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MoveDirectoryRequest.verify = function verify(message) { + FetchFileGitStatusesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.workspace != null && message.hasOwnProperty("workspace")) - if (!$util.isString(message.workspace)) - return "workspace: string expected"; - if (message.path != null && message.hasOwnProperty("path")) - if (!$util.isString(message.path)) - return "path: string expected"; - if (message.newPath != null && message.hasOwnProperty("newPath")) - if (!$util.isString(message.newPath)) - return "newPath: string expected"; + if (message.uncommittedFileChanges != null && message.hasOwnProperty("uncommittedFileChanges")) { + if (!Array.isArray(message.uncommittedFileChanges)) + return "uncommittedFileChanges: array expected"; + for (var i = 0; i < message.uncommittedFileChanges.length; ++i) { + var error = $root.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.verify(message.uncommittedFileChanges[i]); + if (error) + return "uncommittedFileChanges." + error; + } + } return null; }; /** - * Creates a MoveDirectoryRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FetchFileGitStatusesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dataform.v1beta1.MoveDirectoryRequest + * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.MoveDirectoryRequest} MoveDirectoryRequest + * @returns {google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse} FetchFileGitStatusesResponse */ - MoveDirectoryRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.MoveDirectoryRequest) + FetchFileGitStatusesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse) return object; - var message = new $root.google.cloud.dataform.v1beta1.MoveDirectoryRequest(); - if (object.workspace != null) - message.workspace = String(object.workspace); - if (object.path != null) - message.path = String(object.path); - if (object.newPath != null) - message.newPath = String(object.newPath); + var message = new $root.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse(); + if (object.uncommittedFileChanges) { + if (!Array.isArray(object.uncommittedFileChanges)) + throw TypeError(".google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.uncommittedFileChanges: array expected"); + message.uncommittedFileChanges = []; + for (var i = 0; i < object.uncommittedFileChanges.length; ++i) { + if (typeof object.uncommittedFileChanges[i] !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.uncommittedFileChanges: object expected"); + message.uncommittedFileChanges[i] = $root.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.fromObject(object.uncommittedFileChanges[i]); + } + } return message; }; /** - * Creates a plain object from a MoveDirectoryRequest message. Also converts values to other types if specified. + * Creates a plain object from a FetchFileGitStatusesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dataform.v1beta1.MoveDirectoryRequest + * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse * @static - * @param {google.cloud.dataform.v1beta1.MoveDirectoryRequest} message MoveDirectoryRequest + * @param {google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse} message FetchFileGitStatusesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MoveDirectoryRequest.toObject = function toObject(message, options) { + FetchFileGitStatusesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.workspace = ""; - object.path = ""; - object.newPath = ""; + if (options.arrays || options.defaults) + object.uncommittedFileChanges = []; + if (message.uncommittedFileChanges && message.uncommittedFileChanges.length) { + object.uncommittedFileChanges = []; + for (var j = 0; j < message.uncommittedFileChanges.length; ++j) + object.uncommittedFileChanges[j] = $root.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.toObject(message.uncommittedFileChanges[j], options); } - if (message.workspace != null && message.hasOwnProperty("workspace")) - object.workspace = message.workspace; - if (message.path != null && message.hasOwnProperty("path")) - object.path = message.path; - if (message.newPath != null && message.hasOwnProperty("newPath")) - object.newPath = message.newPath; return object; }; /** - * Converts this MoveDirectoryRequest to JSON. + * Converts this FetchFileGitStatusesResponse to JSON. * @function toJSON - * @memberof google.cloud.dataform.v1beta1.MoveDirectoryRequest + * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse * @instance * @returns {Object.} JSON object */ - MoveDirectoryRequest.prototype.toJSON = function toJSON() { + FetchFileGitStatusesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MoveDirectoryRequest + * Gets the default type url for FetchFileGitStatusesResponse * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.MoveDirectoryRequest + * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MoveDirectoryRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FetchFileGitStatusesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.MoveDirectoryRequest"; + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse"; }; - return MoveDirectoryRequest; - })(); - - v1beta1.MoveDirectoryResponse = (function() { + FetchFileGitStatusesResponse.UncommittedFileChange = (function() { - /** - * Properties of a MoveDirectoryResponse. - * @memberof google.cloud.dataform.v1beta1 - * @interface IMoveDirectoryResponse - */ + /** + * Properties of an UncommittedFileChange. + * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse + * @interface IUncommittedFileChange + * @property {string|null} [path] UncommittedFileChange path + * @property {google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.State|null} [state] UncommittedFileChange state + */ - /** - * Constructs a new MoveDirectoryResponse. - * @memberof google.cloud.dataform.v1beta1 - * @classdesc Represents a MoveDirectoryResponse. - * @implements IMoveDirectoryResponse - * @constructor - * @param {google.cloud.dataform.v1beta1.IMoveDirectoryResponse=} [properties] Properties to set - */ - function MoveDirectoryResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Constructs a new UncommittedFileChange. + * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse + * @classdesc Represents an UncommittedFileChange. + * @implements IUncommittedFileChange + * @constructor + * @param {google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.IUncommittedFileChange=} [properties] Properties to set + */ + function UncommittedFileChange(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Creates a new MoveDirectoryResponse instance using the specified properties. - * @function create - * @memberof google.cloud.dataform.v1beta1.MoveDirectoryResponse - * @static - * @param {google.cloud.dataform.v1beta1.IMoveDirectoryResponse=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.MoveDirectoryResponse} MoveDirectoryResponse instance - */ - MoveDirectoryResponse.create = function create(properties) { - return new MoveDirectoryResponse(properties); - }; + /** + * UncommittedFileChange path. + * @member {string} path + * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange + * @instance + */ + UncommittedFileChange.prototype.path = ""; - /** - * Encodes the specified MoveDirectoryResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.MoveDirectoryResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.dataform.v1beta1.MoveDirectoryResponse - * @static - * @param {google.cloud.dataform.v1beta1.IMoveDirectoryResponse} message MoveDirectoryResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MoveDirectoryResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; + /** + * UncommittedFileChange state. + * @member {google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.State} state + * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange + * @instance + */ + UncommittedFileChange.prototype.state = 0; - /** - * Encodes the specified MoveDirectoryResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.MoveDirectoryResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.MoveDirectoryResponse - * @static - * @param {google.cloud.dataform.v1beta1.IMoveDirectoryResponse} message MoveDirectoryResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MoveDirectoryResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new UncommittedFileChange instance using the specified properties. + * @function create + * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange + * @static + * @param {google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.IUncommittedFileChange=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange} UncommittedFileChange instance + */ + UncommittedFileChange.create = function create(properties) { + return new UncommittedFileChange(properties); + }; - /** - * Decodes a MoveDirectoryResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dataform.v1beta1.MoveDirectoryResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.MoveDirectoryResponse} MoveDirectoryResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MoveDirectoryResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.MoveDirectoryResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; + /** + * Encodes the specified UncommittedFileChange message. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.verify|verify} messages. + * @function encode + * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange + * @static + * @param {google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.IUncommittedFileChange} message UncommittedFileChange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UncommittedFileChange.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.path); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state); + return writer; + }; + + /** + * Encodes the specified UncommittedFileChange message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange + * @static + * @param {google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.IUncommittedFileChange} message UncommittedFileChange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UncommittedFileChange.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UncommittedFileChange message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange} UncommittedFileChange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UncommittedFileChange.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.path = reader.string(); + break; + } + case 2: { + message.state = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + return message; + }; - /** - * Decodes a MoveDirectoryResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.MoveDirectoryResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.MoveDirectoryResponse} MoveDirectoryResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MoveDirectoryResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes an UncommittedFileChange message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange} UncommittedFileChange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UncommittedFileChange.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a MoveDirectoryResponse message. - * @function verify - * @memberof google.cloud.dataform.v1beta1.MoveDirectoryResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MoveDirectoryResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; + /** + * Verifies an UncommittedFileChange message. + * @function verify + * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UncommittedFileChange.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.path != null && message.hasOwnProperty("path")) + if (!$util.isString(message.path)) + return "path: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + return null; + }; - /** - * Creates a MoveDirectoryResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dataform.v1beta1.MoveDirectoryResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.MoveDirectoryResponse} MoveDirectoryResponse - */ - MoveDirectoryResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.MoveDirectoryResponse) + /** + * Creates an UncommittedFileChange message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange} UncommittedFileChange + */ + UncommittedFileChange.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange) + return object; + var message = new $root.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange(); + if (object.path != null) + message.path = String(object.path); + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "ADDED": + case 1: + message.state = 1; + break; + case "DELETED": + case 2: + message.state = 2; + break; + case "MODIFIED": + case 3: + message.state = 3; + break; + case "HAS_CONFLICTS": + case 4: + message.state = 4; + break; + } + return message; + }; + + /** + * Creates a plain object from an UncommittedFileChange message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange + * @static + * @param {google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange} message UncommittedFileChange + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UncommittedFileChange.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.path = ""; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + } + if (message.path != null && message.hasOwnProperty("path")) + object.path = message.path; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.State[message.state] === undefined ? message.state : $root.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.State[message.state] : message.state; return object; - return new $root.google.cloud.dataform.v1beta1.MoveDirectoryResponse(); - }; + }; - /** - * Creates a plain object from a MoveDirectoryResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dataform.v1beta1.MoveDirectoryResponse - * @static - * @param {google.cloud.dataform.v1beta1.MoveDirectoryResponse} message MoveDirectoryResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MoveDirectoryResponse.toObject = function toObject() { - return {}; - }; + /** + * Converts this UncommittedFileChange to JSON. + * @function toJSON + * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange + * @instance + * @returns {Object.} JSON object + */ + UncommittedFileChange.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this MoveDirectoryResponse to JSON. - * @function toJSON - * @memberof google.cloud.dataform.v1beta1.MoveDirectoryResponse - * @instance - * @returns {Object.} JSON object - */ - MoveDirectoryResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for UncommittedFileChange + * @function getTypeUrl + * @memberof google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UncommittedFileChange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange"; + }; - /** - * Gets the default type url for MoveDirectoryResponse - * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.MoveDirectoryResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - MoveDirectoryResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.MoveDirectoryResponse"; - }; + /** + * State enum. + * @name google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} ADDED=1 ADDED value + * @property {number} DELETED=2 DELETED value + * @property {number} MODIFIED=3 MODIFIED value + * @property {number} HAS_CONFLICTS=4 HAS_CONFLICTS value + */ + UncommittedFileChange.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "ADDED"] = 1; + values[valuesById[2] = "DELETED"] = 2; + values[valuesById[3] = "MODIFIED"] = 3; + values[valuesById[4] = "HAS_CONFLICTS"] = 4; + return values; + })(); - return MoveDirectoryResponse; + return UncommittedFileChange; + })(); + + return FetchFileGitStatusesResponse; })(); - v1beta1.ReadFileRequest = (function() { + v1beta1.FetchGitAheadBehindRequest = (function() { /** - * Properties of a ReadFileRequest. + * Properties of a FetchGitAheadBehindRequest. * @memberof google.cloud.dataform.v1beta1 - * @interface IReadFileRequest - * @property {string|null} [workspace] ReadFileRequest workspace - * @property {string|null} [path] ReadFileRequest path + * @interface IFetchGitAheadBehindRequest + * @property {string|null} [name] FetchGitAheadBehindRequest name + * @property {string|null} [remoteBranch] FetchGitAheadBehindRequest remoteBranch */ /** - * Constructs a new ReadFileRequest. + * Constructs a new FetchGitAheadBehindRequest. * @memberof google.cloud.dataform.v1beta1 - * @classdesc Represents a ReadFileRequest. - * @implements IReadFileRequest + * @classdesc Represents a FetchGitAheadBehindRequest. + * @implements IFetchGitAheadBehindRequest * @constructor - * @param {google.cloud.dataform.v1beta1.IReadFileRequest=} [properties] Properties to set + * @param {google.cloud.dataform.v1beta1.IFetchGitAheadBehindRequest=} [properties] Properties to set */ - function ReadFileRequest(properties) { + function FetchGitAheadBehindRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -30685,89 +32035,89 @@ } /** - * ReadFileRequest workspace. - * @member {string} workspace - * @memberof google.cloud.dataform.v1beta1.ReadFileRequest + * FetchGitAheadBehindRequest name. + * @member {string} name + * @memberof google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest * @instance */ - ReadFileRequest.prototype.workspace = ""; + FetchGitAheadBehindRequest.prototype.name = ""; /** - * ReadFileRequest path. - * @member {string} path - * @memberof google.cloud.dataform.v1beta1.ReadFileRequest + * FetchGitAheadBehindRequest remoteBranch. + * @member {string} remoteBranch + * @memberof google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest * @instance */ - ReadFileRequest.prototype.path = ""; + FetchGitAheadBehindRequest.prototype.remoteBranch = ""; /** - * Creates a new ReadFileRequest instance using the specified properties. + * Creates a new FetchGitAheadBehindRequest instance using the specified properties. * @function create - * @memberof google.cloud.dataform.v1beta1.ReadFileRequest + * @memberof google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest * @static - * @param {google.cloud.dataform.v1beta1.IReadFileRequest=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.ReadFileRequest} ReadFileRequest instance + * @param {google.cloud.dataform.v1beta1.IFetchGitAheadBehindRequest=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest} FetchGitAheadBehindRequest instance */ - ReadFileRequest.create = function create(properties) { - return new ReadFileRequest(properties); + FetchGitAheadBehindRequest.create = function create(properties) { + return new FetchGitAheadBehindRequest(properties); }; /** - * Encodes the specified ReadFileRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.ReadFileRequest.verify|verify} messages. + * Encodes the specified FetchGitAheadBehindRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dataform.v1beta1.ReadFileRequest + * @memberof google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest * @static - * @param {google.cloud.dataform.v1beta1.IReadFileRequest} message ReadFileRequest message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IFetchGitAheadBehindRequest} message FetchGitAheadBehindRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadFileRequest.encode = function encode(message, writer) { + FetchGitAheadBehindRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.workspace != null && Object.hasOwnProperty.call(message, "workspace")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.workspace); - if (message.path != null && Object.hasOwnProperty.call(message, "path")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.remoteBranch != null && Object.hasOwnProperty.call(message, "remoteBranch")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.remoteBranch); return writer; }; /** - * Encodes the specified ReadFileRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.ReadFileRequest.verify|verify} messages. + * Encodes the specified FetchGitAheadBehindRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.ReadFileRequest + * @memberof google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest * @static - * @param {google.cloud.dataform.v1beta1.IReadFileRequest} message ReadFileRequest message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IFetchGitAheadBehindRequest} message FetchGitAheadBehindRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadFileRequest.encodeDelimited = function encodeDelimited(message, writer) { + FetchGitAheadBehindRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadFileRequest message from the specified reader or buffer. + * Decodes a FetchGitAheadBehindRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dataform.v1beta1.ReadFileRequest + * @memberof google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.ReadFileRequest} ReadFileRequest + * @returns {google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest} FetchGitAheadBehindRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadFileRequest.decode = function decode(reader, length) { + FetchGitAheadBehindRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.ReadFileRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.workspace = reader.string(); + message.name = reader.string(); break; } case 2: { - message.path = reader.string(); + message.remoteBranch = reader.string(); break; } default: @@ -30779,131 +32129,132 @@ }; /** - * Decodes a ReadFileRequest message from the specified reader or buffer, length delimited. + * Decodes a FetchGitAheadBehindRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.ReadFileRequest + * @memberof google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.ReadFileRequest} ReadFileRequest + * @returns {google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest} FetchGitAheadBehindRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadFileRequest.decodeDelimited = function decodeDelimited(reader) { + FetchGitAheadBehindRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReadFileRequest message. + * Verifies a FetchGitAheadBehindRequest message. * @function verify - * @memberof google.cloud.dataform.v1beta1.ReadFileRequest + * @memberof google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReadFileRequest.verify = function verify(message) { + FetchGitAheadBehindRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.workspace != null && message.hasOwnProperty("workspace")) - if (!$util.isString(message.workspace)) - return "workspace: string expected"; - if (message.path != null && message.hasOwnProperty("path")) - if (!$util.isString(message.path)) - return "path: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.remoteBranch != null && message.hasOwnProperty("remoteBranch")) + if (!$util.isString(message.remoteBranch)) + return "remoteBranch: string expected"; return null; }; /** - * Creates a ReadFileRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FetchGitAheadBehindRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dataform.v1beta1.ReadFileRequest + * @memberof google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.ReadFileRequest} ReadFileRequest + * @returns {google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest} FetchGitAheadBehindRequest */ - ReadFileRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.ReadFileRequest) + FetchGitAheadBehindRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest) return object; - var message = new $root.google.cloud.dataform.v1beta1.ReadFileRequest(); - if (object.workspace != null) - message.workspace = String(object.workspace); - if (object.path != null) - message.path = String(object.path); + var message = new $root.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.remoteBranch != null) + message.remoteBranch = String(object.remoteBranch); return message; }; /** - * Creates a plain object from a ReadFileRequest message. Also converts values to other types if specified. + * Creates a plain object from a FetchGitAheadBehindRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dataform.v1beta1.ReadFileRequest + * @memberof google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest * @static - * @param {google.cloud.dataform.v1beta1.ReadFileRequest} message ReadFileRequest + * @param {google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest} message FetchGitAheadBehindRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadFileRequest.toObject = function toObject(message, options) { + FetchGitAheadBehindRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.workspace = ""; - object.path = ""; + object.name = ""; + object.remoteBranch = ""; } - if (message.workspace != null && message.hasOwnProperty("workspace")) - object.workspace = message.workspace; - if (message.path != null && message.hasOwnProperty("path")) - object.path = message.path; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.remoteBranch != null && message.hasOwnProperty("remoteBranch")) + object.remoteBranch = message.remoteBranch; return object; }; /** - * Converts this ReadFileRequest to JSON. + * Converts this FetchGitAheadBehindRequest to JSON. * @function toJSON - * @memberof google.cloud.dataform.v1beta1.ReadFileRequest + * @memberof google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest * @instance * @returns {Object.} JSON object */ - ReadFileRequest.prototype.toJSON = function toJSON() { + FetchGitAheadBehindRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReadFileRequest + * Gets the default type url for FetchGitAheadBehindRequest * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.ReadFileRequest + * @memberof google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReadFileRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FetchGitAheadBehindRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.ReadFileRequest"; + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest"; }; - return ReadFileRequest; + return FetchGitAheadBehindRequest; })(); - v1beta1.ReadFileResponse = (function() { + v1beta1.FetchGitAheadBehindResponse = (function() { /** - * Properties of a ReadFileResponse. + * Properties of a FetchGitAheadBehindResponse. * @memberof google.cloud.dataform.v1beta1 - * @interface IReadFileResponse - * @property {Uint8Array|null} [fileContents] ReadFileResponse fileContents + * @interface IFetchGitAheadBehindResponse + * @property {number|null} [commitsAhead] FetchGitAheadBehindResponse commitsAhead + * @property {number|null} [commitsBehind] FetchGitAheadBehindResponse commitsBehind */ /** - * Constructs a new ReadFileResponse. + * Constructs a new FetchGitAheadBehindResponse. * @memberof google.cloud.dataform.v1beta1 - * @classdesc Represents a ReadFileResponse. - * @implements IReadFileResponse + * @classdesc Represents a FetchGitAheadBehindResponse. + * @implements IFetchGitAheadBehindResponse * @constructor - * @param {google.cloud.dataform.v1beta1.IReadFileResponse=} [properties] Properties to set + * @param {google.cloud.dataform.v1beta1.IFetchGitAheadBehindResponse=} [properties] Properties to set */ - function ReadFileResponse(properties) { + function FetchGitAheadBehindResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -30911,75 +32262,89 @@ } /** - * ReadFileResponse fileContents. - * @member {Uint8Array} fileContents - * @memberof google.cloud.dataform.v1beta1.ReadFileResponse + * FetchGitAheadBehindResponse commitsAhead. + * @member {number} commitsAhead + * @memberof google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse * @instance */ - ReadFileResponse.prototype.fileContents = $util.newBuffer([]); + FetchGitAheadBehindResponse.prototype.commitsAhead = 0; /** - * Creates a new ReadFileResponse instance using the specified properties. - * @function create - * @memberof google.cloud.dataform.v1beta1.ReadFileResponse - * @static - * @param {google.cloud.dataform.v1beta1.IReadFileResponse=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.ReadFileResponse} ReadFileResponse instance + * FetchGitAheadBehindResponse commitsBehind. + * @member {number} commitsBehind + * @memberof google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse + * @instance */ - ReadFileResponse.create = function create(properties) { - return new ReadFileResponse(properties); + FetchGitAheadBehindResponse.prototype.commitsBehind = 0; + + /** + * Creates a new FetchGitAheadBehindResponse instance using the specified properties. + * @function create + * @memberof google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse + * @static + * @param {google.cloud.dataform.v1beta1.IFetchGitAheadBehindResponse=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse} FetchGitAheadBehindResponse instance + */ + FetchGitAheadBehindResponse.create = function create(properties) { + return new FetchGitAheadBehindResponse(properties); }; /** - * Encodes the specified ReadFileResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.ReadFileResponse.verify|verify} messages. + * Encodes the specified FetchGitAheadBehindResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dataform.v1beta1.ReadFileResponse + * @memberof google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse * @static - * @param {google.cloud.dataform.v1beta1.IReadFileResponse} message ReadFileResponse message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IFetchGitAheadBehindResponse} message FetchGitAheadBehindResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadFileResponse.encode = function encode(message, writer) { + FetchGitAheadBehindResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.fileContents != null && Object.hasOwnProperty.call(message, "fileContents")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.fileContents); + if (message.commitsAhead != null && Object.hasOwnProperty.call(message, "commitsAhead")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.commitsAhead); + if (message.commitsBehind != null && Object.hasOwnProperty.call(message, "commitsBehind")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.commitsBehind); return writer; }; /** - * Encodes the specified ReadFileResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.ReadFileResponse.verify|verify} messages. + * Encodes the specified FetchGitAheadBehindResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.ReadFileResponse + * @memberof google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse * @static - * @param {google.cloud.dataform.v1beta1.IReadFileResponse} message ReadFileResponse message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IFetchGitAheadBehindResponse} message FetchGitAheadBehindResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadFileResponse.encodeDelimited = function encodeDelimited(message, writer) { + FetchGitAheadBehindResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadFileResponse message from the specified reader or buffer. + * Decodes a FetchGitAheadBehindResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dataform.v1beta1.ReadFileResponse + * @memberof google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.ReadFileResponse} ReadFileResponse + * @returns {google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse} FetchGitAheadBehindResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadFileResponse.decode = function decode(reader, length) { + FetchGitAheadBehindResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.ReadFileResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.fileContents = reader.bytes(); + message.commitsAhead = reader.int32(); + break; + } + case 2: { + message.commitsBehind = reader.int32(); break; } default: @@ -30991,132 +32356,135 @@ }; /** - * Decodes a ReadFileResponse message from the specified reader or buffer, length delimited. + * Decodes a FetchGitAheadBehindResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.ReadFileResponse + * @memberof google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.ReadFileResponse} ReadFileResponse + * @returns {google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse} FetchGitAheadBehindResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadFileResponse.decodeDelimited = function decodeDelimited(reader) { + FetchGitAheadBehindResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReadFileResponse message. + * Verifies a FetchGitAheadBehindResponse message. * @function verify - * @memberof google.cloud.dataform.v1beta1.ReadFileResponse + * @memberof google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReadFileResponse.verify = function verify(message) { + FetchGitAheadBehindResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.fileContents != null && message.hasOwnProperty("fileContents")) - if (!(message.fileContents && typeof message.fileContents.length === "number" || $util.isString(message.fileContents))) - return "fileContents: buffer expected"; + if (message.commitsAhead != null && message.hasOwnProperty("commitsAhead")) + if (!$util.isInteger(message.commitsAhead)) + return "commitsAhead: integer expected"; + if (message.commitsBehind != null && message.hasOwnProperty("commitsBehind")) + if (!$util.isInteger(message.commitsBehind)) + return "commitsBehind: integer expected"; return null; }; /** - * Creates a ReadFileResponse message from a plain object. Also converts values to their respective internal types. + * Creates a FetchGitAheadBehindResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dataform.v1beta1.ReadFileResponse + * @memberof google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.ReadFileResponse} ReadFileResponse + * @returns {google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse} FetchGitAheadBehindResponse */ - ReadFileResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.ReadFileResponse) + FetchGitAheadBehindResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse) return object; - var message = new $root.google.cloud.dataform.v1beta1.ReadFileResponse(); - if (object.fileContents != null) - if (typeof object.fileContents === "string") - $util.base64.decode(object.fileContents, message.fileContents = $util.newBuffer($util.base64.length(object.fileContents)), 0); - else if (object.fileContents.length >= 0) - message.fileContents = object.fileContents; + var message = new $root.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse(); + if (object.commitsAhead != null) + message.commitsAhead = object.commitsAhead | 0; + if (object.commitsBehind != null) + message.commitsBehind = object.commitsBehind | 0; return message; }; /** - * Creates a plain object from a ReadFileResponse message. Also converts values to other types if specified. + * Creates a plain object from a FetchGitAheadBehindResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dataform.v1beta1.ReadFileResponse + * @memberof google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse * @static - * @param {google.cloud.dataform.v1beta1.ReadFileResponse} message ReadFileResponse + * @param {google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse} message FetchGitAheadBehindResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadFileResponse.toObject = function toObject(message, options) { + FetchGitAheadBehindResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - if (options.bytes === String) - object.fileContents = ""; - else { - object.fileContents = []; - if (options.bytes !== Array) - object.fileContents = $util.newBuffer(object.fileContents); - } - if (message.fileContents != null && message.hasOwnProperty("fileContents")) - object.fileContents = options.bytes === String ? $util.base64.encode(message.fileContents, 0, message.fileContents.length) : options.bytes === Array ? Array.prototype.slice.call(message.fileContents) : message.fileContents; + if (options.defaults) { + object.commitsAhead = 0; + object.commitsBehind = 0; + } + if (message.commitsAhead != null && message.hasOwnProperty("commitsAhead")) + object.commitsAhead = message.commitsAhead; + if (message.commitsBehind != null && message.hasOwnProperty("commitsBehind")) + object.commitsBehind = message.commitsBehind; return object; }; /** - * Converts this ReadFileResponse to JSON. + * Converts this FetchGitAheadBehindResponse to JSON. * @function toJSON - * @memberof google.cloud.dataform.v1beta1.ReadFileResponse + * @memberof google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse * @instance * @returns {Object.} JSON object */ - ReadFileResponse.prototype.toJSON = function toJSON() { + FetchGitAheadBehindResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReadFileResponse + * Gets the default type url for FetchGitAheadBehindResponse * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.ReadFileResponse + * @memberof google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReadFileResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FetchGitAheadBehindResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.ReadFileResponse"; + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse"; }; - return ReadFileResponse; + return FetchGitAheadBehindResponse; })(); - v1beta1.RemoveFileRequest = (function() { + v1beta1.CommitWorkspaceChangesRequest = (function() { /** - * Properties of a RemoveFileRequest. + * Properties of a CommitWorkspaceChangesRequest. * @memberof google.cloud.dataform.v1beta1 - * @interface IRemoveFileRequest - * @property {string|null} [workspace] RemoveFileRequest workspace - * @property {string|null} [path] RemoveFileRequest path + * @interface ICommitWorkspaceChangesRequest + * @property {string|null} [name] CommitWorkspaceChangesRequest name + * @property {google.cloud.dataform.v1beta1.ICommitAuthor|null} [author] CommitWorkspaceChangesRequest author + * @property {string|null} [commitMessage] CommitWorkspaceChangesRequest commitMessage + * @property {Array.|null} [paths] CommitWorkspaceChangesRequest paths */ /** - * Constructs a new RemoveFileRequest. + * Constructs a new CommitWorkspaceChangesRequest. * @memberof google.cloud.dataform.v1beta1 - * @classdesc Represents a RemoveFileRequest. - * @implements IRemoveFileRequest + * @classdesc Represents a CommitWorkspaceChangesRequest. + * @implements ICommitWorkspaceChangesRequest * @constructor - * @param {google.cloud.dataform.v1beta1.IRemoveFileRequest=} [properties] Properties to set + * @param {google.cloud.dataform.v1beta1.ICommitWorkspaceChangesRequest=} [properties] Properties to set */ - function RemoveFileRequest(properties) { + function CommitWorkspaceChangesRequest(properties) { + this.paths = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -31124,89 +32492,120 @@ } /** - * RemoveFileRequest workspace. - * @member {string} workspace - * @memberof google.cloud.dataform.v1beta1.RemoveFileRequest + * CommitWorkspaceChangesRequest name. + * @member {string} name + * @memberof google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest * @instance */ - RemoveFileRequest.prototype.workspace = ""; + CommitWorkspaceChangesRequest.prototype.name = ""; /** - * RemoveFileRequest path. - * @member {string} path - * @memberof google.cloud.dataform.v1beta1.RemoveFileRequest + * CommitWorkspaceChangesRequest author. + * @member {google.cloud.dataform.v1beta1.ICommitAuthor|null|undefined} author + * @memberof google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest * @instance */ - RemoveFileRequest.prototype.path = ""; + CommitWorkspaceChangesRequest.prototype.author = null; /** - * Creates a new RemoveFileRequest instance using the specified properties. + * CommitWorkspaceChangesRequest commitMessage. + * @member {string} commitMessage + * @memberof google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest + * @instance + */ + CommitWorkspaceChangesRequest.prototype.commitMessage = ""; + + /** + * CommitWorkspaceChangesRequest paths. + * @member {Array.} paths + * @memberof google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest + * @instance + */ + CommitWorkspaceChangesRequest.prototype.paths = $util.emptyArray; + + /** + * Creates a new CommitWorkspaceChangesRequest instance using the specified properties. * @function create - * @memberof google.cloud.dataform.v1beta1.RemoveFileRequest + * @memberof google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest * @static - * @param {google.cloud.dataform.v1beta1.IRemoveFileRequest=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.RemoveFileRequest} RemoveFileRequest instance + * @param {google.cloud.dataform.v1beta1.ICommitWorkspaceChangesRequest=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest} CommitWorkspaceChangesRequest instance */ - RemoveFileRequest.create = function create(properties) { - return new RemoveFileRequest(properties); + CommitWorkspaceChangesRequest.create = function create(properties) { + return new CommitWorkspaceChangesRequest(properties); }; /** - * Encodes the specified RemoveFileRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.RemoveFileRequest.verify|verify} messages. + * Encodes the specified CommitWorkspaceChangesRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dataform.v1beta1.RemoveFileRequest + * @memberof google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest * @static - * @param {google.cloud.dataform.v1beta1.IRemoveFileRequest} message RemoveFileRequest message or plain object to encode + * @param {google.cloud.dataform.v1beta1.ICommitWorkspaceChangesRequest} message CommitWorkspaceChangesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RemoveFileRequest.encode = function encode(message, writer) { + CommitWorkspaceChangesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.workspace != null && Object.hasOwnProperty.call(message, "workspace")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.workspace); - if (message.path != null && Object.hasOwnProperty.call(message, "path")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.commitMessage != null && Object.hasOwnProperty.call(message, "commitMessage")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.commitMessage); + if (message.paths != null && message.paths.length) + for (var i = 0; i < message.paths.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.paths[i]); + if (message.author != null && Object.hasOwnProperty.call(message, "author")) + $root.google.cloud.dataform.v1beta1.CommitAuthor.encode(message.author, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified RemoveFileRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.RemoveFileRequest.verify|verify} messages. + * Encodes the specified CommitWorkspaceChangesRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.RemoveFileRequest + * @memberof google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest * @static - * @param {google.cloud.dataform.v1beta1.IRemoveFileRequest} message RemoveFileRequest message or plain object to encode + * @param {google.cloud.dataform.v1beta1.ICommitWorkspaceChangesRequest} message CommitWorkspaceChangesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RemoveFileRequest.encodeDelimited = function encodeDelimited(message, writer) { + CommitWorkspaceChangesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RemoveFileRequest message from the specified reader or buffer. + * Decodes a CommitWorkspaceChangesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dataform.v1beta1.RemoveFileRequest + * @memberof google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.RemoveFileRequest} RemoveFileRequest + * @returns {google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest} CommitWorkspaceChangesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RemoveFileRequest.decode = function decode(reader, length) { + CommitWorkspaceChangesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.RemoveFileRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.workspace = reader.string(); + message.name = reader.string(); + break; + } + case 4: { + message.author = $root.google.cloud.dataform.v1beta1.CommitAuthor.decode(reader, reader.uint32()); break; } case 2: { - message.path = reader.string(); + message.commitMessage = reader.string(); + break; + } + case 3: { + if (!(message.paths && message.paths.length)) + message.paths = []; + message.paths.push(reader.string()); break; } default: @@ -31218,133 +32617,168 @@ }; /** - * Decodes a RemoveFileRequest message from the specified reader or buffer, length delimited. + * Decodes a CommitWorkspaceChangesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.RemoveFileRequest + * @memberof google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.RemoveFileRequest} RemoveFileRequest + * @returns {google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest} CommitWorkspaceChangesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RemoveFileRequest.decodeDelimited = function decodeDelimited(reader) { + CommitWorkspaceChangesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RemoveFileRequest message. + * Verifies a CommitWorkspaceChangesRequest message. * @function verify - * @memberof google.cloud.dataform.v1beta1.RemoveFileRequest + * @memberof google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RemoveFileRequest.verify = function verify(message) { + CommitWorkspaceChangesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.workspace != null && message.hasOwnProperty("workspace")) - if (!$util.isString(message.workspace)) - return "workspace: string expected"; - if (message.path != null && message.hasOwnProperty("path")) - if (!$util.isString(message.path)) - return "path: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.author != null && message.hasOwnProperty("author")) { + var error = $root.google.cloud.dataform.v1beta1.CommitAuthor.verify(message.author); + if (error) + return "author." + error; + } + if (message.commitMessage != null && message.hasOwnProperty("commitMessage")) + if (!$util.isString(message.commitMessage)) + return "commitMessage: string expected"; + if (message.paths != null && message.hasOwnProperty("paths")) { + if (!Array.isArray(message.paths)) + return "paths: array expected"; + for (var i = 0; i < message.paths.length; ++i) + if (!$util.isString(message.paths[i])) + return "paths: string[] expected"; + } return null; }; /** - * Creates a RemoveFileRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CommitWorkspaceChangesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dataform.v1beta1.RemoveFileRequest + * @memberof google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.RemoveFileRequest} RemoveFileRequest + * @returns {google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest} CommitWorkspaceChangesRequest */ - RemoveFileRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.RemoveFileRequest) + CommitWorkspaceChangesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest) return object; - var message = new $root.google.cloud.dataform.v1beta1.RemoveFileRequest(); - if (object.workspace != null) - message.workspace = String(object.workspace); - if (object.path != null) - message.path = String(object.path); + var message = new $root.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.author != null) { + if (typeof object.author !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest.author: object expected"); + message.author = $root.google.cloud.dataform.v1beta1.CommitAuthor.fromObject(object.author); + } + if (object.commitMessage != null) + message.commitMessage = String(object.commitMessage); + if (object.paths) { + if (!Array.isArray(object.paths)) + throw TypeError(".google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest.paths: array expected"); + message.paths = []; + for (var i = 0; i < object.paths.length; ++i) + message.paths[i] = String(object.paths[i]); + } return message; }; /** - * Creates a plain object from a RemoveFileRequest message. Also converts values to other types if specified. + * Creates a plain object from a CommitWorkspaceChangesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dataform.v1beta1.RemoveFileRequest + * @memberof google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest * @static - * @param {google.cloud.dataform.v1beta1.RemoveFileRequest} message RemoveFileRequest + * @param {google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest} message CommitWorkspaceChangesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RemoveFileRequest.toObject = function toObject(message, options) { + CommitWorkspaceChangesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.paths = []; if (options.defaults) { - object.workspace = ""; - object.path = ""; + object.name = ""; + object.commitMessage = ""; + object.author = null; } - if (message.workspace != null && message.hasOwnProperty("workspace")) - object.workspace = message.workspace; - if (message.path != null && message.hasOwnProperty("path")) - object.path = message.path; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.commitMessage != null && message.hasOwnProperty("commitMessage")) + object.commitMessage = message.commitMessage; + if (message.paths && message.paths.length) { + object.paths = []; + for (var j = 0; j < message.paths.length; ++j) + object.paths[j] = message.paths[j]; + } + if (message.author != null && message.hasOwnProperty("author")) + object.author = $root.google.cloud.dataform.v1beta1.CommitAuthor.toObject(message.author, options); return object; }; /** - * Converts this RemoveFileRequest to JSON. + * Converts this CommitWorkspaceChangesRequest to JSON. * @function toJSON - * @memberof google.cloud.dataform.v1beta1.RemoveFileRequest + * @memberof google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest * @instance * @returns {Object.} JSON object */ - RemoveFileRequest.prototype.toJSON = function toJSON() { + CommitWorkspaceChangesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RemoveFileRequest + * Gets the default type url for CommitWorkspaceChangesRequest * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.RemoveFileRequest + * @memberof google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RemoveFileRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CommitWorkspaceChangesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.RemoveFileRequest"; + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest"; }; - return RemoveFileRequest; + return CommitWorkspaceChangesRequest; })(); - v1beta1.MoveFileRequest = (function() { + v1beta1.ResetWorkspaceChangesRequest = (function() { /** - * Properties of a MoveFileRequest. + * Properties of a ResetWorkspaceChangesRequest. * @memberof google.cloud.dataform.v1beta1 - * @interface IMoveFileRequest - * @property {string|null} [workspace] MoveFileRequest workspace - * @property {string|null} [path] MoveFileRequest path - * @property {string|null} [newPath] MoveFileRequest newPath + * @interface IResetWorkspaceChangesRequest + * @property {string|null} [name] ResetWorkspaceChangesRequest name + * @property {Array.|null} [paths] ResetWorkspaceChangesRequest paths + * @property {boolean|null} [clean] ResetWorkspaceChangesRequest clean */ /** - * Constructs a new MoveFileRequest. + * Constructs a new ResetWorkspaceChangesRequest. * @memberof google.cloud.dataform.v1beta1 - * @classdesc Represents a MoveFileRequest. - * @implements IMoveFileRequest + * @classdesc Represents a ResetWorkspaceChangesRequest. + * @implements IResetWorkspaceChangesRequest * @constructor - * @param {google.cloud.dataform.v1beta1.IMoveFileRequest=} [properties] Properties to set + * @param {google.cloud.dataform.v1beta1.IResetWorkspaceChangesRequest=} [properties] Properties to set */ - function MoveFileRequest(properties) { + function ResetWorkspaceChangesRequest(properties) { + this.paths = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -31352,103 +32786,106 @@ } /** - * MoveFileRequest workspace. - * @member {string} workspace - * @memberof google.cloud.dataform.v1beta1.MoveFileRequest + * ResetWorkspaceChangesRequest name. + * @member {string} name + * @memberof google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest * @instance */ - MoveFileRequest.prototype.workspace = ""; + ResetWorkspaceChangesRequest.prototype.name = ""; /** - * MoveFileRequest path. - * @member {string} path - * @memberof google.cloud.dataform.v1beta1.MoveFileRequest + * ResetWorkspaceChangesRequest paths. + * @member {Array.} paths + * @memberof google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest * @instance */ - MoveFileRequest.prototype.path = ""; + ResetWorkspaceChangesRequest.prototype.paths = $util.emptyArray; /** - * MoveFileRequest newPath. - * @member {string} newPath - * @memberof google.cloud.dataform.v1beta1.MoveFileRequest + * ResetWorkspaceChangesRequest clean. + * @member {boolean} clean + * @memberof google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest * @instance */ - MoveFileRequest.prototype.newPath = ""; + ResetWorkspaceChangesRequest.prototype.clean = false; /** - * Creates a new MoveFileRequest instance using the specified properties. + * Creates a new ResetWorkspaceChangesRequest instance using the specified properties. * @function create - * @memberof google.cloud.dataform.v1beta1.MoveFileRequest + * @memberof google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest * @static - * @param {google.cloud.dataform.v1beta1.IMoveFileRequest=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.MoveFileRequest} MoveFileRequest instance + * @param {google.cloud.dataform.v1beta1.IResetWorkspaceChangesRequest=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest} ResetWorkspaceChangesRequest instance */ - MoveFileRequest.create = function create(properties) { - return new MoveFileRequest(properties); + ResetWorkspaceChangesRequest.create = function create(properties) { + return new ResetWorkspaceChangesRequest(properties); }; /** - * Encodes the specified MoveFileRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.MoveFileRequest.verify|verify} messages. + * Encodes the specified ResetWorkspaceChangesRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dataform.v1beta1.MoveFileRequest + * @memberof google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest * @static - * @param {google.cloud.dataform.v1beta1.IMoveFileRequest} message MoveFileRequest message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IResetWorkspaceChangesRequest} message ResetWorkspaceChangesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MoveFileRequest.encode = function encode(message, writer) { + ResetWorkspaceChangesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.workspace != null && Object.hasOwnProperty.call(message, "workspace")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.workspace); - if (message.path != null && Object.hasOwnProperty.call(message, "path")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); - if (message.newPath != null && Object.hasOwnProperty.call(message, "newPath")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.newPath); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.paths != null && message.paths.length) + for (var i = 0; i < message.paths.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.paths[i]); + if (message.clean != null && Object.hasOwnProperty.call(message, "clean")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.clean); return writer; }; /** - * Encodes the specified MoveFileRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.MoveFileRequest.verify|verify} messages. + * Encodes the specified ResetWorkspaceChangesRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.MoveFileRequest + * @memberof google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest * @static - * @param {google.cloud.dataform.v1beta1.IMoveFileRequest} message MoveFileRequest message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IResetWorkspaceChangesRequest} message ResetWorkspaceChangesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MoveFileRequest.encodeDelimited = function encodeDelimited(message, writer) { + ResetWorkspaceChangesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MoveFileRequest message from the specified reader or buffer. + * Decodes a ResetWorkspaceChangesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dataform.v1beta1.MoveFileRequest + * @memberof google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.MoveFileRequest} MoveFileRequest + * @returns {google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest} ResetWorkspaceChangesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MoveFileRequest.decode = function decode(reader, length) { + ResetWorkspaceChangesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.MoveFileRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.workspace = reader.string(); + message.name = reader.string(); break; } case 2: { - message.path = reader.string(); + if (!(message.paths && message.paths.length)) + message.paths = []; + message.paths.push(reader.string()); break; } case 3: { - message.newPath = reader.string(); + message.clean = reader.bool(); break; } default: @@ -31460,138 +32897,153 @@ }; /** - * Decodes a MoveFileRequest message from the specified reader or buffer, length delimited. + * Decodes a ResetWorkspaceChangesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.MoveFileRequest + * @memberof google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.MoveFileRequest} MoveFileRequest + * @returns {google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest} ResetWorkspaceChangesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MoveFileRequest.decodeDelimited = function decodeDelimited(reader) { + ResetWorkspaceChangesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MoveFileRequest message. + * Verifies a ResetWorkspaceChangesRequest message. * @function verify - * @memberof google.cloud.dataform.v1beta1.MoveFileRequest + * @memberof google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MoveFileRequest.verify = function verify(message) { + ResetWorkspaceChangesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.workspace != null && message.hasOwnProperty("workspace")) - if (!$util.isString(message.workspace)) - return "workspace: string expected"; - if (message.path != null && message.hasOwnProperty("path")) - if (!$util.isString(message.path)) - return "path: string expected"; - if (message.newPath != null && message.hasOwnProperty("newPath")) - if (!$util.isString(message.newPath)) - return "newPath: string expected"; - return null; - }; - - /** - * Creates a MoveFileRequest message from a plain object. Also converts values to their respective internal types. + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.paths != null && message.hasOwnProperty("paths")) { + if (!Array.isArray(message.paths)) + return "paths: array expected"; + for (var i = 0; i < message.paths.length; ++i) + if (!$util.isString(message.paths[i])) + return "paths: string[] expected"; + } + if (message.clean != null && message.hasOwnProperty("clean")) + if (typeof message.clean !== "boolean") + return "clean: boolean expected"; + return null; + }; + + /** + * Creates a ResetWorkspaceChangesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dataform.v1beta1.MoveFileRequest + * @memberof google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.MoveFileRequest} MoveFileRequest + * @returns {google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest} ResetWorkspaceChangesRequest */ - MoveFileRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.MoveFileRequest) + ResetWorkspaceChangesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest) return object; - var message = new $root.google.cloud.dataform.v1beta1.MoveFileRequest(); - if (object.workspace != null) - message.workspace = String(object.workspace); - if (object.path != null) - message.path = String(object.path); - if (object.newPath != null) - message.newPath = String(object.newPath); + var message = new $root.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.paths) { + if (!Array.isArray(object.paths)) + throw TypeError(".google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest.paths: array expected"); + message.paths = []; + for (var i = 0; i < object.paths.length; ++i) + message.paths[i] = String(object.paths[i]); + } + if (object.clean != null) + message.clean = Boolean(object.clean); return message; }; /** - * Creates a plain object from a MoveFileRequest message. Also converts values to other types if specified. + * Creates a plain object from a ResetWorkspaceChangesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dataform.v1beta1.MoveFileRequest + * @memberof google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest * @static - * @param {google.cloud.dataform.v1beta1.MoveFileRequest} message MoveFileRequest + * @param {google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest} message ResetWorkspaceChangesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MoveFileRequest.toObject = function toObject(message, options) { + ResetWorkspaceChangesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.paths = []; if (options.defaults) { - object.workspace = ""; - object.path = ""; - object.newPath = ""; + object.name = ""; + object.clean = false; } - if (message.workspace != null && message.hasOwnProperty("workspace")) - object.workspace = message.workspace; - if (message.path != null && message.hasOwnProperty("path")) - object.path = message.path; - if (message.newPath != null && message.hasOwnProperty("newPath")) - object.newPath = message.newPath; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.paths && message.paths.length) { + object.paths = []; + for (var j = 0; j < message.paths.length; ++j) + object.paths[j] = message.paths[j]; + } + if (message.clean != null && message.hasOwnProperty("clean")) + object.clean = message.clean; return object; }; /** - * Converts this MoveFileRequest to JSON. + * Converts this ResetWorkspaceChangesRequest to JSON. * @function toJSON - * @memberof google.cloud.dataform.v1beta1.MoveFileRequest + * @memberof google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest * @instance * @returns {Object.} JSON object */ - MoveFileRequest.prototype.toJSON = function toJSON() { + ResetWorkspaceChangesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MoveFileRequest + * Gets the default type url for ResetWorkspaceChangesRequest * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.MoveFileRequest + * @memberof google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MoveFileRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ResetWorkspaceChangesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.MoveFileRequest"; + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest"; }; - return MoveFileRequest; + return ResetWorkspaceChangesRequest; })(); - v1beta1.MoveFileResponse = (function() { + v1beta1.FetchFileDiffRequest = (function() { /** - * Properties of a MoveFileResponse. + * Properties of a FetchFileDiffRequest. * @memberof google.cloud.dataform.v1beta1 - * @interface IMoveFileResponse + * @interface IFetchFileDiffRequest + * @property {string|null} [workspace] FetchFileDiffRequest workspace + * @property {string|null} [path] FetchFileDiffRequest path */ /** - * Constructs a new MoveFileResponse. + * Constructs a new FetchFileDiffRequest. * @memberof google.cloud.dataform.v1beta1 - * @classdesc Represents a MoveFileResponse. - * @implements IMoveFileResponse + * @classdesc Represents a FetchFileDiffRequest. + * @implements IFetchFileDiffRequest * @constructor - * @param {google.cloud.dataform.v1beta1.IMoveFileResponse=} [properties] Properties to set + * @param {google.cloud.dataform.v1beta1.IFetchFileDiffRequest=} [properties] Properties to set */ - function MoveFileResponse(properties) { + function FetchFileDiffRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -31599,63 +33051,91 @@ } /** - * Creates a new MoveFileResponse instance using the specified properties. + * FetchFileDiffRequest workspace. + * @member {string} workspace + * @memberof google.cloud.dataform.v1beta1.FetchFileDiffRequest + * @instance + */ + FetchFileDiffRequest.prototype.workspace = ""; + + /** + * FetchFileDiffRequest path. + * @member {string} path + * @memberof google.cloud.dataform.v1beta1.FetchFileDiffRequest + * @instance + */ + FetchFileDiffRequest.prototype.path = ""; + + /** + * Creates a new FetchFileDiffRequest instance using the specified properties. * @function create - * @memberof google.cloud.dataform.v1beta1.MoveFileResponse + * @memberof google.cloud.dataform.v1beta1.FetchFileDiffRequest * @static - * @param {google.cloud.dataform.v1beta1.IMoveFileResponse=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.MoveFileResponse} MoveFileResponse instance + * @param {google.cloud.dataform.v1beta1.IFetchFileDiffRequest=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.FetchFileDiffRequest} FetchFileDiffRequest instance */ - MoveFileResponse.create = function create(properties) { - return new MoveFileResponse(properties); + FetchFileDiffRequest.create = function create(properties) { + return new FetchFileDiffRequest(properties); }; /** - * Encodes the specified MoveFileResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.MoveFileResponse.verify|verify} messages. + * Encodes the specified FetchFileDiffRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchFileDiffRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dataform.v1beta1.MoveFileResponse + * @memberof google.cloud.dataform.v1beta1.FetchFileDiffRequest * @static - * @param {google.cloud.dataform.v1beta1.IMoveFileResponse} message MoveFileResponse message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IFetchFileDiffRequest} message FetchFileDiffRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MoveFileResponse.encode = function encode(message, writer) { + FetchFileDiffRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.workspace != null && Object.hasOwnProperty.call(message, "workspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.workspace); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); return writer; }; /** - * Encodes the specified MoveFileResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.MoveFileResponse.verify|verify} messages. + * Encodes the specified FetchFileDiffRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchFileDiffRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.MoveFileResponse + * @memberof google.cloud.dataform.v1beta1.FetchFileDiffRequest * @static - * @param {google.cloud.dataform.v1beta1.IMoveFileResponse} message MoveFileResponse message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IFetchFileDiffRequest} message FetchFileDiffRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MoveFileResponse.encodeDelimited = function encodeDelimited(message, writer) { + FetchFileDiffRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MoveFileResponse message from the specified reader or buffer. + * Decodes a FetchFileDiffRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dataform.v1beta1.MoveFileResponse + * @memberof google.cloud.dataform.v1beta1.FetchFileDiffRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.MoveFileResponse} MoveFileResponse + * @returns {google.cloud.dataform.v1beta1.FetchFileDiffRequest} FetchFileDiffRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MoveFileResponse.decode = function decode(reader, length) { + FetchFileDiffRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.MoveFileResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.FetchFileDiffRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.workspace = reader.string(); + break; + } + case 2: { + message.path = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -31665,111 +33145,131 @@ }; /** - * Decodes a MoveFileResponse message from the specified reader or buffer, length delimited. + * Decodes a FetchFileDiffRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.MoveFileResponse + * @memberof google.cloud.dataform.v1beta1.FetchFileDiffRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.MoveFileResponse} MoveFileResponse + * @returns {google.cloud.dataform.v1beta1.FetchFileDiffRequest} FetchFileDiffRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MoveFileResponse.decodeDelimited = function decodeDelimited(reader) { + FetchFileDiffRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MoveFileResponse message. + * Verifies a FetchFileDiffRequest message. * @function verify - * @memberof google.cloud.dataform.v1beta1.MoveFileResponse + * @memberof google.cloud.dataform.v1beta1.FetchFileDiffRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MoveFileResponse.verify = function verify(message) { + FetchFileDiffRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.workspace != null && message.hasOwnProperty("workspace")) + if (!$util.isString(message.workspace)) + return "workspace: string expected"; + if (message.path != null && message.hasOwnProperty("path")) + if (!$util.isString(message.path)) + return "path: string expected"; return null; }; /** - * Creates a MoveFileResponse message from a plain object. Also converts values to their respective internal types. + * Creates a FetchFileDiffRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dataform.v1beta1.MoveFileResponse + * @memberof google.cloud.dataform.v1beta1.FetchFileDiffRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.MoveFileResponse} MoveFileResponse + * @returns {google.cloud.dataform.v1beta1.FetchFileDiffRequest} FetchFileDiffRequest */ - MoveFileResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.MoveFileResponse) + FetchFileDiffRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.FetchFileDiffRequest) return object; - return new $root.google.cloud.dataform.v1beta1.MoveFileResponse(); + var message = new $root.google.cloud.dataform.v1beta1.FetchFileDiffRequest(); + if (object.workspace != null) + message.workspace = String(object.workspace); + if (object.path != null) + message.path = String(object.path); + return message; }; /** - * Creates a plain object from a MoveFileResponse message. Also converts values to other types if specified. + * Creates a plain object from a FetchFileDiffRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dataform.v1beta1.MoveFileResponse + * @memberof google.cloud.dataform.v1beta1.FetchFileDiffRequest * @static - * @param {google.cloud.dataform.v1beta1.MoveFileResponse} message MoveFileResponse + * @param {google.cloud.dataform.v1beta1.FetchFileDiffRequest} message FetchFileDiffRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MoveFileResponse.toObject = function toObject() { - return {}; + FetchFileDiffRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.workspace = ""; + object.path = ""; + } + if (message.workspace != null && message.hasOwnProperty("workspace")) + object.workspace = message.workspace; + if (message.path != null && message.hasOwnProperty("path")) + object.path = message.path; + return object; }; /** - * Converts this MoveFileResponse to JSON. + * Converts this FetchFileDiffRequest to JSON. * @function toJSON - * @memberof google.cloud.dataform.v1beta1.MoveFileResponse + * @memberof google.cloud.dataform.v1beta1.FetchFileDiffRequest * @instance * @returns {Object.} JSON object */ - MoveFileResponse.prototype.toJSON = function toJSON() { + FetchFileDiffRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MoveFileResponse + * Gets the default type url for FetchFileDiffRequest * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.MoveFileResponse + * @memberof google.cloud.dataform.v1beta1.FetchFileDiffRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MoveFileResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FetchFileDiffRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.MoveFileResponse"; + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.FetchFileDiffRequest"; }; - return MoveFileResponse; + return FetchFileDiffRequest; })(); - v1beta1.WriteFileRequest = (function() { + v1beta1.FetchFileDiffResponse = (function() { /** - * Properties of a WriteFileRequest. + * Properties of a FetchFileDiffResponse. * @memberof google.cloud.dataform.v1beta1 - * @interface IWriteFileRequest - * @property {string|null} [workspace] WriteFileRequest workspace - * @property {string|null} [path] WriteFileRequest path - * @property {Uint8Array|null} [contents] WriteFileRequest contents + * @interface IFetchFileDiffResponse + * @property {string|null} [formattedDiff] FetchFileDiffResponse formattedDiff */ /** - * Constructs a new WriteFileRequest. + * Constructs a new FetchFileDiffResponse. * @memberof google.cloud.dataform.v1beta1 - * @classdesc Represents a WriteFileRequest. - * @implements IWriteFileRequest + * @classdesc Represents a FetchFileDiffResponse. + * @implements IFetchFileDiffResponse * @constructor - * @param {google.cloud.dataform.v1beta1.IWriteFileRequest=} [properties] Properties to set + * @param {google.cloud.dataform.v1beta1.IFetchFileDiffResponse=} [properties] Properties to set */ - function WriteFileRequest(properties) { + function FetchFileDiffResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -31777,103 +33277,75 @@ } /** - * WriteFileRequest workspace. - * @member {string} workspace - * @memberof google.cloud.dataform.v1beta1.WriteFileRequest - * @instance - */ - WriteFileRequest.prototype.workspace = ""; - - /** - * WriteFileRequest path. - * @member {string} path - * @memberof google.cloud.dataform.v1beta1.WriteFileRequest - * @instance - */ - WriteFileRequest.prototype.path = ""; - - /** - * WriteFileRequest contents. - * @member {Uint8Array} contents - * @memberof google.cloud.dataform.v1beta1.WriteFileRequest + * FetchFileDiffResponse formattedDiff. + * @member {string} formattedDiff + * @memberof google.cloud.dataform.v1beta1.FetchFileDiffResponse * @instance */ - WriteFileRequest.prototype.contents = $util.newBuffer([]); + FetchFileDiffResponse.prototype.formattedDiff = ""; /** - * Creates a new WriteFileRequest instance using the specified properties. + * Creates a new FetchFileDiffResponse instance using the specified properties. * @function create - * @memberof google.cloud.dataform.v1beta1.WriteFileRequest + * @memberof google.cloud.dataform.v1beta1.FetchFileDiffResponse * @static - * @param {google.cloud.dataform.v1beta1.IWriteFileRequest=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.WriteFileRequest} WriteFileRequest instance + * @param {google.cloud.dataform.v1beta1.IFetchFileDiffResponse=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.FetchFileDiffResponse} FetchFileDiffResponse instance */ - WriteFileRequest.create = function create(properties) { - return new WriteFileRequest(properties); + FetchFileDiffResponse.create = function create(properties) { + return new FetchFileDiffResponse(properties); }; /** - * Encodes the specified WriteFileRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.WriteFileRequest.verify|verify} messages. + * Encodes the specified FetchFileDiffResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchFileDiffResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dataform.v1beta1.WriteFileRequest + * @memberof google.cloud.dataform.v1beta1.FetchFileDiffResponse * @static - * @param {google.cloud.dataform.v1beta1.IWriteFileRequest} message WriteFileRequest message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IFetchFileDiffResponse} message FetchFileDiffResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WriteFileRequest.encode = function encode(message, writer) { + FetchFileDiffResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.workspace != null && Object.hasOwnProperty.call(message, "workspace")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.workspace); - if (message.path != null && Object.hasOwnProperty.call(message, "path")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); - if (message.contents != null && Object.hasOwnProperty.call(message, "contents")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.contents); + if (message.formattedDiff != null && Object.hasOwnProperty.call(message, "formattedDiff")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.formattedDiff); return writer; }; /** - * Encodes the specified WriteFileRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.WriteFileRequest.verify|verify} messages. + * Encodes the specified FetchFileDiffResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.FetchFileDiffResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.WriteFileRequest + * @memberof google.cloud.dataform.v1beta1.FetchFileDiffResponse * @static - * @param {google.cloud.dataform.v1beta1.IWriteFileRequest} message WriteFileRequest message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IFetchFileDiffResponse} message FetchFileDiffResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WriteFileRequest.encodeDelimited = function encodeDelimited(message, writer) { + FetchFileDiffResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a WriteFileRequest message from the specified reader or buffer. + * Decodes a FetchFileDiffResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dataform.v1beta1.WriteFileRequest + * @memberof google.cloud.dataform.v1beta1.FetchFileDiffResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.WriteFileRequest} WriteFileRequest + * @returns {google.cloud.dataform.v1beta1.FetchFileDiffResponse} FetchFileDiffResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WriteFileRequest.decode = function decode(reader, length) { + FetchFileDiffResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.WriteFileRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.FetchFileDiffResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.workspace = reader.string(); - break; - } - case 2: { - message.path = reader.string(); - break; - } - case 3: { - message.contents = reader.bytes(); + message.formattedDiff = reader.string(); break; } default: @@ -31885,147 +33357,125 @@ }; /** - * Decodes a WriteFileRequest message from the specified reader or buffer, length delimited. + * Decodes a FetchFileDiffResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.WriteFileRequest + * @memberof google.cloud.dataform.v1beta1.FetchFileDiffResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.WriteFileRequest} WriteFileRequest + * @returns {google.cloud.dataform.v1beta1.FetchFileDiffResponse} FetchFileDiffResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WriteFileRequest.decodeDelimited = function decodeDelimited(reader) { + FetchFileDiffResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a WriteFileRequest message. + * Verifies a FetchFileDiffResponse message. * @function verify - * @memberof google.cloud.dataform.v1beta1.WriteFileRequest + * @memberof google.cloud.dataform.v1beta1.FetchFileDiffResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - WriteFileRequest.verify = function verify(message) { + FetchFileDiffResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.workspace != null && message.hasOwnProperty("workspace")) - if (!$util.isString(message.workspace)) - return "workspace: string expected"; - if (message.path != null && message.hasOwnProperty("path")) - if (!$util.isString(message.path)) - return "path: string expected"; - if (message.contents != null && message.hasOwnProperty("contents")) - if (!(message.contents && typeof message.contents.length === "number" || $util.isString(message.contents))) - return "contents: buffer expected"; + if (message.formattedDiff != null && message.hasOwnProperty("formattedDiff")) + if (!$util.isString(message.formattedDiff)) + return "formattedDiff: string expected"; return null; }; /** - * Creates a WriteFileRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FetchFileDiffResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dataform.v1beta1.WriteFileRequest + * @memberof google.cloud.dataform.v1beta1.FetchFileDiffResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.WriteFileRequest} WriteFileRequest + * @returns {google.cloud.dataform.v1beta1.FetchFileDiffResponse} FetchFileDiffResponse */ - WriteFileRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.WriteFileRequest) + FetchFileDiffResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.FetchFileDiffResponse) return object; - var message = new $root.google.cloud.dataform.v1beta1.WriteFileRequest(); - if (object.workspace != null) - message.workspace = String(object.workspace); - if (object.path != null) - message.path = String(object.path); - if (object.contents != null) - if (typeof object.contents === "string") - $util.base64.decode(object.contents, message.contents = $util.newBuffer($util.base64.length(object.contents)), 0); - else if (object.contents.length >= 0) - message.contents = object.contents; + var message = new $root.google.cloud.dataform.v1beta1.FetchFileDiffResponse(); + if (object.formattedDiff != null) + message.formattedDiff = String(object.formattedDiff); return message; }; /** - * Creates a plain object from a WriteFileRequest message. Also converts values to other types if specified. + * Creates a plain object from a FetchFileDiffResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dataform.v1beta1.WriteFileRequest + * @memberof google.cloud.dataform.v1beta1.FetchFileDiffResponse * @static - * @param {google.cloud.dataform.v1beta1.WriteFileRequest} message WriteFileRequest + * @param {google.cloud.dataform.v1beta1.FetchFileDiffResponse} message FetchFileDiffResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - WriteFileRequest.toObject = function toObject(message, options) { + FetchFileDiffResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.workspace = ""; - object.path = ""; - if (options.bytes === String) - object.contents = ""; - else { - object.contents = []; - if (options.bytes !== Array) - object.contents = $util.newBuffer(object.contents); - } - } - if (message.workspace != null && message.hasOwnProperty("workspace")) - object.workspace = message.workspace; - if (message.path != null && message.hasOwnProperty("path")) - object.path = message.path; - if (message.contents != null && message.hasOwnProperty("contents")) - object.contents = options.bytes === String ? $util.base64.encode(message.contents, 0, message.contents.length) : options.bytes === Array ? Array.prototype.slice.call(message.contents) : message.contents; + if (options.defaults) + object.formattedDiff = ""; + if (message.formattedDiff != null && message.hasOwnProperty("formattedDiff")) + object.formattedDiff = message.formattedDiff; return object; }; /** - * Converts this WriteFileRequest to JSON. + * Converts this FetchFileDiffResponse to JSON. * @function toJSON - * @memberof google.cloud.dataform.v1beta1.WriteFileRequest + * @memberof google.cloud.dataform.v1beta1.FetchFileDiffResponse * @instance * @returns {Object.} JSON object */ - WriteFileRequest.prototype.toJSON = function toJSON() { + FetchFileDiffResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for WriteFileRequest + * Gets the default type url for FetchFileDiffResponse * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.WriteFileRequest + * @memberof google.cloud.dataform.v1beta1.FetchFileDiffResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - WriteFileRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FetchFileDiffResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.WriteFileRequest"; + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.FetchFileDiffResponse"; }; - return WriteFileRequest; + return FetchFileDiffResponse; })(); - v1beta1.WriteFileResponse = (function() { + v1beta1.QueryDirectoryContentsRequest = (function() { /** - * Properties of a WriteFileResponse. + * Properties of a QueryDirectoryContentsRequest. * @memberof google.cloud.dataform.v1beta1 - * @interface IWriteFileResponse + * @interface IQueryDirectoryContentsRequest + * @property {string|null} [workspace] QueryDirectoryContentsRequest workspace + * @property {string|null} [path] QueryDirectoryContentsRequest path + * @property {number|null} [pageSize] QueryDirectoryContentsRequest pageSize + * @property {string|null} [pageToken] QueryDirectoryContentsRequest pageToken */ /** - * Constructs a new WriteFileResponse. + * Constructs a new QueryDirectoryContentsRequest. * @memberof google.cloud.dataform.v1beta1 - * @classdesc Represents a WriteFileResponse. - * @implements IWriteFileResponse + * @classdesc Represents a QueryDirectoryContentsRequest. + * @implements IQueryDirectoryContentsRequest * @constructor - * @param {google.cloud.dataform.v1beta1.IWriteFileResponse=} [properties] Properties to set + * @param {google.cloud.dataform.v1beta1.IQueryDirectoryContentsRequest=} [properties] Properties to set */ - function WriteFileResponse(properties) { + function QueryDirectoryContentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -32033,63 +33483,119 @@ } /** - * Creates a new WriteFileResponse instance using the specified properties. - * @function create - * @memberof google.cloud.dataform.v1beta1.WriteFileResponse - * @static - * @param {google.cloud.dataform.v1beta1.IWriteFileResponse=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.WriteFileResponse} WriteFileResponse instance + * QueryDirectoryContentsRequest workspace. + * @member {string} workspace + * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest + * @instance */ - WriteFileResponse.create = function create(properties) { - return new WriteFileResponse(properties); - }; + QueryDirectoryContentsRequest.prototype.workspace = ""; /** - * Encodes the specified WriteFileResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.WriteFileResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.dataform.v1beta1.WriteFileResponse - * @static - * @param {google.cloud.dataform.v1beta1.IWriteFileResponse} message WriteFileResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * QueryDirectoryContentsRequest path. + * @member {string} path + * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest + * @instance */ - WriteFileResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; + QueryDirectoryContentsRequest.prototype.path = ""; /** - * Encodes the specified WriteFileResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.WriteFileResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.WriteFileResponse - * @static - * @param {google.cloud.dataform.v1beta1.IWriteFileResponse} message WriteFileResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * QueryDirectoryContentsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest + * @instance */ - WriteFileResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + QueryDirectoryContentsRequest.prototype.pageSize = 0; /** - * Decodes a WriteFileResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dataform.v1beta1.WriteFileResponse + * QueryDirectoryContentsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest + * @instance + */ + QueryDirectoryContentsRequest.prototype.pageToken = ""; + + /** + * Creates a new QueryDirectoryContentsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest + * @static + * @param {google.cloud.dataform.v1beta1.IQueryDirectoryContentsRequest=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest} QueryDirectoryContentsRequest instance + */ + QueryDirectoryContentsRequest.create = function create(properties) { + return new QueryDirectoryContentsRequest(properties); + }; + + /** + * Encodes the specified QueryDirectoryContentsRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest + * @static + * @param {google.cloud.dataform.v1beta1.IQueryDirectoryContentsRequest} message QueryDirectoryContentsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryDirectoryContentsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.workspace != null && Object.hasOwnProperty.call(message, "workspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.workspace); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + return writer; + }; + + /** + * Encodes the specified QueryDirectoryContentsRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest + * @static + * @param {google.cloud.dataform.v1beta1.IQueryDirectoryContentsRequest} message QueryDirectoryContentsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryDirectoryContentsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a QueryDirectoryContentsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.WriteFileResponse} WriteFileResponse + * @returns {google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest} QueryDirectoryContentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WriteFileResponse.decode = function decode(reader, length) { + QueryDirectoryContentsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.WriteFileResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.workspace = reader.string(); + break; + } + case 2: { + message.path = reader.string(); + break; + } + case 3: { + message.pageSize = reader.int32(); + break; + } + case 4: { + message.pageToken = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -32099,109 +33605,149 @@ }; /** - * Decodes a WriteFileResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryDirectoryContentsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.WriteFileResponse + * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.WriteFileResponse} WriteFileResponse + * @returns {google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest} QueryDirectoryContentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WriteFileResponse.decodeDelimited = function decodeDelimited(reader) { + QueryDirectoryContentsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a WriteFileResponse message. + * Verifies a QueryDirectoryContentsRequest message. * @function verify - * @memberof google.cloud.dataform.v1beta1.WriteFileResponse + * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - WriteFileResponse.verify = function verify(message) { + QueryDirectoryContentsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.workspace != null && message.hasOwnProperty("workspace")) + if (!$util.isString(message.workspace)) + return "workspace: string expected"; + if (message.path != null && message.hasOwnProperty("path")) + if (!$util.isString(message.path)) + return "path: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates a WriteFileResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryDirectoryContentsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dataform.v1beta1.WriteFileResponse + * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.WriteFileResponse} WriteFileResponse + * @returns {google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest} QueryDirectoryContentsRequest */ - WriteFileResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.WriteFileResponse) + QueryDirectoryContentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest) return object; - return new $root.google.cloud.dataform.v1beta1.WriteFileResponse(); + var message = new $root.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest(); + if (object.workspace != null) + message.workspace = String(object.workspace); + if (object.path != null) + message.path = String(object.path); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + return message; }; /** - * Creates a plain object from a WriteFileResponse message. Also converts values to other types if specified. + * Creates a plain object from a QueryDirectoryContentsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dataform.v1beta1.WriteFileResponse + * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest * @static - * @param {google.cloud.dataform.v1beta1.WriteFileResponse} message WriteFileResponse + * @param {google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest} message QueryDirectoryContentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - WriteFileResponse.toObject = function toObject() { - return {}; + QueryDirectoryContentsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.workspace = ""; + object.path = ""; + object.pageSize = 0; + object.pageToken = ""; + } + if (message.workspace != null && message.hasOwnProperty("workspace")) + object.workspace = message.workspace; + if (message.path != null && message.hasOwnProperty("path")) + object.path = message.path; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + return object; }; /** - * Converts this WriteFileResponse to JSON. + * Converts this QueryDirectoryContentsRequest to JSON. * @function toJSON - * @memberof google.cloud.dataform.v1beta1.WriteFileResponse + * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest * @instance * @returns {Object.} JSON object */ - WriteFileResponse.prototype.toJSON = function toJSON() { + QueryDirectoryContentsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for WriteFileResponse + * Gets the default type url for QueryDirectoryContentsRequest * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.WriteFileResponse + * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - WriteFileResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + QueryDirectoryContentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.WriteFileResponse"; + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest"; }; - return WriteFileResponse; + return QueryDirectoryContentsRequest; })(); - v1beta1.InstallNpmPackagesRequest = (function() { + v1beta1.QueryDirectoryContentsResponse = (function() { /** - * Properties of an InstallNpmPackagesRequest. + * Properties of a QueryDirectoryContentsResponse. * @memberof google.cloud.dataform.v1beta1 - * @interface IInstallNpmPackagesRequest - * @property {string|null} [workspace] InstallNpmPackagesRequest workspace + * @interface IQueryDirectoryContentsResponse + * @property {Array.|null} [directoryEntries] QueryDirectoryContentsResponse directoryEntries + * @property {string|null} [nextPageToken] QueryDirectoryContentsResponse nextPageToken */ /** - * Constructs a new InstallNpmPackagesRequest. + * Constructs a new QueryDirectoryContentsResponse. * @memberof google.cloud.dataform.v1beta1 - * @classdesc Represents an InstallNpmPackagesRequest. - * @implements IInstallNpmPackagesRequest + * @classdesc Represents a QueryDirectoryContentsResponse. + * @implements IQueryDirectoryContentsResponse * @constructor - * @param {google.cloud.dataform.v1beta1.IInstallNpmPackagesRequest=} [properties] Properties to set + * @param {google.cloud.dataform.v1beta1.IQueryDirectoryContentsResponse=} [properties] Properties to set */ - function InstallNpmPackagesRequest(properties) { + function QueryDirectoryContentsResponse(properties) { + this.directoryEntries = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -32209,75 +33755,92 @@ } /** - * InstallNpmPackagesRequest workspace. - * @member {string} workspace - * @memberof google.cloud.dataform.v1beta1.InstallNpmPackagesRequest + * QueryDirectoryContentsResponse directoryEntries. + * @member {Array.} directoryEntries + * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse * @instance */ - InstallNpmPackagesRequest.prototype.workspace = ""; + QueryDirectoryContentsResponse.prototype.directoryEntries = $util.emptyArray; /** - * Creates a new InstallNpmPackagesRequest instance using the specified properties. + * QueryDirectoryContentsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse + * @instance + */ + QueryDirectoryContentsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new QueryDirectoryContentsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dataform.v1beta1.InstallNpmPackagesRequest + * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse * @static - * @param {google.cloud.dataform.v1beta1.IInstallNpmPackagesRequest=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.InstallNpmPackagesRequest} InstallNpmPackagesRequest instance + * @param {google.cloud.dataform.v1beta1.IQueryDirectoryContentsResponse=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse} QueryDirectoryContentsResponse instance */ - InstallNpmPackagesRequest.create = function create(properties) { - return new InstallNpmPackagesRequest(properties); + QueryDirectoryContentsResponse.create = function create(properties) { + return new QueryDirectoryContentsResponse(properties); }; /** - * Encodes the specified InstallNpmPackagesRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.InstallNpmPackagesRequest.verify|verify} messages. + * Encodes the specified QueryDirectoryContentsResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dataform.v1beta1.InstallNpmPackagesRequest + * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse * @static - * @param {google.cloud.dataform.v1beta1.IInstallNpmPackagesRequest} message InstallNpmPackagesRequest message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IQueryDirectoryContentsResponse} message QueryDirectoryContentsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InstallNpmPackagesRequest.encode = function encode(message, writer) { + QueryDirectoryContentsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.workspace != null && Object.hasOwnProperty.call(message, "workspace")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.workspace); + if (message.directoryEntries != null && message.directoryEntries.length) + for (var i = 0; i < message.directoryEntries.length; ++i) + $root.google.cloud.dataform.v1beta1.DirectoryEntry.encode(message.directoryEntries[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified InstallNpmPackagesRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.InstallNpmPackagesRequest.verify|verify} messages. + * Encodes the specified QueryDirectoryContentsResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.InstallNpmPackagesRequest + * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse * @static - * @param {google.cloud.dataform.v1beta1.IInstallNpmPackagesRequest} message InstallNpmPackagesRequest message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IQueryDirectoryContentsResponse} message QueryDirectoryContentsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InstallNpmPackagesRequest.encodeDelimited = function encodeDelimited(message, writer) { + QueryDirectoryContentsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an InstallNpmPackagesRequest message from the specified reader or buffer. + * Decodes a QueryDirectoryContentsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dataform.v1beta1.InstallNpmPackagesRequest + * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.InstallNpmPackagesRequest} InstallNpmPackagesRequest + * @returns {google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse} QueryDirectoryContentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InstallNpmPackagesRequest.decode = function decode(reader, length) { + QueryDirectoryContentsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.workspace = reader.string(); + if (!(message.directoryEntries && message.directoryEntries.length)) + message.directoryEntries = []; + message.directoryEntries.push($root.google.cloud.dataform.v1beta1.DirectoryEntry.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); break; } default: @@ -32289,121 +33852,149 @@ }; /** - * Decodes an InstallNpmPackagesRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryDirectoryContentsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.InstallNpmPackagesRequest + * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.InstallNpmPackagesRequest} InstallNpmPackagesRequest + * @returns {google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse} QueryDirectoryContentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InstallNpmPackagesRequest.decodeDelimited = function decodeDelimited(reader) { + QueryDirectoryContentsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an InstallNpmPackagesRequest message. + * Verifies a QueryDirectoryContentsResponse message. * @function verify - * @memberof google.cloud.dataform.v1beta1.InstallNpmPackagesRequest + * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - InstallNpmPackagesRequest.verify = function verify(message) { + QueryDirectoryContentsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.workspace != null && message.hasOwnProperty("workspace")) - if (!$util.isString(message.workspace)) - return "workspace: string expected"; + if (message.directoryEntries != null && message.hasOwnProperty("directoryEntries")) { + if (!Array.isArray(message.directoryEntries)) + return "directoryEntries: array expected"; + for (var i = 0; i < message.directoryEntries.length; ++i) { + var error = $root.google.cloud.dataform.v1beta1.DirectoryEntry.verify(message.directoryEntries[i]); + if (error) + return "directoryEntries." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates an InstallNpmPackagesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryDirectoryContentsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dataform.v1beta1.InstallNpmPackagesRequest + * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.InstallNpmPackagesRequest} InstallNpmPackagesRequest + * @returns {google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse} QueryDirectoryContentsResponse */ - InstallNpmPackagesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest) + QueryDirectoryContentsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse) return object; - var message = new $root.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest(); - if (object.workspace != null) - message.workspace = String(object.workspace); + var message = new $root.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse(); + if (object.directoryEntries) { + if (!Array.isArray(object.directoryEntries)) + throw TypeError(".google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.directoryEntries: array expected"); + message.directoryEntries = []; + for (var i = 0; i < object.directoryEntries.length; ++i) { + if (typeof object.directoryEntries[i] !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.directoryEntries: object expected"); + message.directoryEntries[i] = $root.google.cloud.dataform.v1beta1.DirectoryEntry.fromObject(object.directoryEntries[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from an InstallNpmPackagesRequest message. Also converts values to other types if specified. + * Creates a plain object from a QueryDirectoryContentsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dataform.v1beta1.InstallNpmPackagesRequest + * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse * @static - * @param {google.cloud.dataform.v1beta1.InstallNpmPackagesRequest} message InstallNpmPackagesRequest + * @param {google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse} message QueryDirectoryContentsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - InstallNpmPackagesRequest.toObject = function toObject(message, options) { + QueryDirectoryContentsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.directoryEntries = []; if (options.defaults) - object.workspace = ""; - if (message.workspace != null && message.hasOwnProperty("workspace")) - object.workspace = message.workspace; + object.nextPageToken = ""; + if (message.directoryEntries && message.directoryEntries.length) { + object.directoryEntries = []; + for (var j = 0; j < message.directoryEntries.length; ++j) + object.directoryEntries[j] = $root.google.cloud.dataform.v1beta1.DirectoryEntry.toObject(message.directoryEntries[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this InstallNpmPackagesRequest to JSON. + * Converts this QueryDirectoryContentsResponse to JSON. * @function toJSON - * @memberof google.cloud.dataform.v1beta1.InstallNpmPackagesRequest + * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse * @instance * @returns {Object.} JSON object */ - InstallNpmPackagesRequest.prototype.toJSON = function toJSON() { + QueryDirectoryContentsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for InstallNpmPackagesRequest + * Gets the default type url for QueryDirectoryContentsResponse * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.InstallNpmPackagesRequest + * @memberof google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - InstallNpmPackagesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + QueryDirectoryContentsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.InstallNpmPackagesRequest"; + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse"; }; - return InstallNpmPackagesRequest; + return QueryDirectoryContentsResponse; })(); - v1beta1.InstallNpmPackagesResponse = (function() { + v1beta1.DirectoryEntry = (function() { /** - * Properties of an InstallNpmPackagesResponse. + * Properties of a DirectoryEntry. * @memberof google.cloud.dataform.v1beta1 - * @interface IInstallNpmPackagesResponse + * @interface IDirectoryEntry + * @property {string|null} [file] DirectoryEntry file + * @property {string|null} [directory] DirectoryEntry directory */ /** - * Constructs a new InstallNpmPackagesResponse. + * Constructs a new DirectoryEntry. * @memberof google.cloud.dataform.v1beta1 - * @classdesc Represents an InstallNpmPackagesResponse. - * @implements IInstallNpmPackagesResponse + * @classdesc Represents a DirectoryEntry. + * @implements IDirectoryEntry * @constructor - * @param {google.cloud.dataform.v1beta1.IInstallNpmPackagesResponse=} [properties] Properties to set + * @param {google.cloud.dataform.v1beta1.IDirectoryEntry=} [properties] Properties to set */ - function InstallNpmPackagesResponse(properties) { + function DirectoryEntry(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -32411,63 +34002,105 @@ } /** - * Creates a new InstallNpmPackagesResponse instance using the specified properties. + * DirectoryEntry file. + * @member {string|null|undefined} file + * @memberof google.cloud.dataform.v1beta1.DirectoryEntry + * @instance + */ + DirectoryEntry.prototype.file = null; + + /** + * DirectoryEntry directory. + * @member {string|null|undefined} directory + * @memberof google.cloud.dataform.v1beta1.DirectoryEntry + * @instance + */ + DirectoryEntry.prototype.directory = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * DirectoryEntry entry. + * @member {"file"|"directory"|undefined} entry + * @memberof google.cloud.dataform.v1beta1.DirectoryEntry + * @instance + */ + Object.defineProperty(DirectoryEntry.prototype, "entry", { + get: $util.oneOfGetter($oneOfFields = ["file", "directory"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new DirectoryEntry instance using the specified properties. * @function create - * @memberof google.cloud.dataform.v1beta1.InstallNpmPackagesResponse + * @memberof google.cloud.dataform.v1beta1.DirectoryEntry * @static - * @param {google.cloud.dataform.v1beta1.IInstallNpmPackagesResponse=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.InstallNpmPackagesResponse} InstallNpmPackagesResponse instance + * @param {google.cloud.dataform.v1beta1.IDirectoryEntry=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.DirectoryEntry} DirectoryEntry instance */ - InstallNpmPackagesResponse.create = function create(properties) { - return new InstallNpmPackagesResponse(properties); + DirectoryEntry.create = function create(properties) { + return new DirectoryEntry(properties); }; /** - * Encodes the specified InstallNpmPackagesResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.InstallNpmPackagesResponse.verify|verify} messages. + * Encodes the specified DirectoryEntry message. Does not implicitly {@link google.cloud.dataform.v1beta1.DirectoryEntry.verify|verify} messages. * @function encode - * @memberof google.cloud.dataform.v1beta1.InstallNpmPackagesResponse + * @memberof google.cloud.dataform.v1beta1.DirectoryEntry * @static - * @param {google.cloud.dataform.v1beta1.IInstallNpmPackagesResponse} message InstallNpmPackagesResponse message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IDirectoryEntry} message DirectoryEntry message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InstallNpmPackagesResponse.encode = function encode(message, writer) { + DirectoryEntry.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.file != null && Object.hasOwnProperty.call(message, "file")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.file); + if (message.directory != null && Object.hasOwnProperty.call(message, "directory")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.directory); return writer; }; /** - * Encodes the specified InstallNpmPackagesResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.InstallNpmPackagesResponse.verify|verify} messages. + * Encodes the specified DirectoryEntry message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.DirectoryEntry.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.InstallNpmPackagesResponse + * @memberof google.cloud.dataform.v1beta1.DirectoryEntry * @static - * @param {google.cloud.dataform.v1beta1.IInstallNpmPackagesResponse} message InstallNpmPackagesResponse message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IDirectoryEntry} message DirectoryEntry message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InstallNpmPackagesResponse.encodeDelimited = function encodeDelimited(message, writer) { + DirectoryEntry.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an InstallNpmPackagesResponse message from the specified reader or buffer. + * Decodes a DirectoryEntry message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dataform.v1beta1.InstallNpmPackagesResponse + * @memberof google.cloud.dataform.v1beta1.DirectoryEntry * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.InstallNpmPackagesResponse} InstallNpmPackagesResponse + * @returns {google.cloud.dataform.v1beta1.DirectoryEntry} DirectoryEntry * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InstallNpmPackagesResponse.decode = function decode(reader, length) { + DirectoryEntry.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.DirectoryEntry(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.file = reader.string(); + break; + } + case 2: { + message.directory = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -32477,115 +34110,141 @@ }; /** - * Decodes an InstallNpmPackagesResponse message from the specified reader or buffer, length delimited. + * Decodes a DirectoryEntry message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.InstallNpmPackagesResponse + * @memberof google.cloud.dataform.v1beta1.DirectoryEntry * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.InstallNpmPackagesResponse} InstallNpmPackagesResponse + * @returns {google.cloud.dataform.v1beta1.DirectoryEntry} DirectoryEntry * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InstallNpmPackagesResponse.decodeDelimited = function decodeDelimited(reader) { + DirectoryEntry.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an InstallNpmPackagesResponse message. + * Verifies a DirectoryEntry message. * @function verify - * @memberof google.cloud.dataform.v1beta1.InstallNpmPackagesResponse + * @memberof google.cloud.dataform.v1beta1.DirectoryEntry * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - InstallNpmPackagesResponse.verify = function verify(message) { + DirectoryEntry.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + var properties = {}; + if (message.file != null && message.hasOwnProperty("file")) { + properties.entry = 1; + if (!$util.isString(message.file)) + return "file: string expected"; + } + if (message.directory != null && message.hasOwnProperty("directory")) { + if (properties.entry === 1) + return "entry: multiple values"; + properties.entry = 1; + if (!$util.isString(message.directory)) + return "directory: string expected"; + } return null; }; /** - * Creates an InstallNpmPackagesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DirectoryEntry message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dataform.v1beta1.InstallNpmPackagesResponse + * @memberof google.cloud.dataform.v1beta1.DirectoryEntry * @static * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.InstallNpmPackagesResponse} InstallNpmPackagesResponse + * @returns {google.cloud.dataform.v1beta1.DirectoryEntry} DirectoryEntry */ - InstallNpmPackagesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse) + DirectoryEntry.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.DirectoryEntry) return object; - return new $root.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse(); + var message = new $root.google.cloud.dataform.v1beta1.DirectoryEntry(); + if (object.file != null) + message.file = String(object.file); + if (object.directory != null) + message.directory = String(object.directory); + return message; }; /** - * Creates a plain object from an InstallNpmPackagesResponse message. Also converts values to other types if specified. + * Creates a plain object from a DirectoryEntry message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dataform.v1beta1.InstallNpmPackagesResponse + * @memberof google.cloud.dataform.v1beta1.DirectoryEntry * @static - * @param {google.cloud.dataform.v1beta1.InstallNpmPackagesResponse} message InstallNpmPackagesResponse + * @param {google.cloud.dataform.v1beta1.DirectoryEntry} message DirectoryEntry * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - InstallNpmPackagesResponse.toObject = function toObject() { - return {}; + DirectoryEntry.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.file != null && message.hasOwnProperty("file")) { + object.file = message.file; + if (options.oneofs) + object.entry = "file"; + } + if (message.directory != null && message.hasOwnProperty("directory")) { + object.directory = message.directory; + if (options.oneofs) + object.entry = "directory"; + } + return object; }; /** - * Converts this InstallNpmPackagesResponse to JSON. + * Converts this DirectoryEntry to JSON. * @function toJSON - * @memberof google.cloud.dataform.v1beta1.InstallNpmPackagesResponse + * @memberof google.cloud.dataform.v1beta1.DirectoryEntry * @instance * @returns {Object.} JSON object */ - InstallNpmPackagesResponse.prototype.toJSON = function toJSON() { + DirectoryEntry.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for InstallNpmPackagesResponse + * Gets the default type url for DirectoryEntry * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.InstallNpmPackagesResponse + * @memberof google.cloud.dataform.v1beta1.DirectoryEntry * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - InstallNpmPackagesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DirectoryEntry.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.InstallNpmPackagesResponse"; + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.DirectoryEntry"; }; - return InstallNpmPackagesResponse; + return DirectoryEntry; })(); - v1beta1.CompilationResult = (function() { + v1beta1.MakeDirectoryRequest = (function() { /** - * Properties of a CompilationResult. + * Properties of a MakeDirectoryRequest. * @memberof google.cloud.dataform.v1beta1 - * @interface ICompilationResult - * @property {string|null} [name] CompilationResult name - * @property {string|null} [gitCommitish] CompilationResult gitCommitish - * @property {string|null} [workspace] CompilationResult workspace - * @property {google.cloud.dataform.v1beta1.CompilationResult.ICodeCompilationConfig|null} [codeCompilationConfig] CompilationResult codeCompilationConfig - * @property {string|null} [dataformCoreVersion] CompilationResult dataformCoreVersion - * @property {Array.|null} [compilationErrors] CompilationResult compilationErrors + * @interface IMakeDirectoryRequest + * @property {string|null} [workspace] MakeDirectoryRequest workspace + * @property {string|null} [path] MakeDirectoryRequest path */ /** - * Constructs a new CompilationResult. + * Constructs a new MakeDirectoryRequest. * @memberof google.cloud.dataform.v1beta1 - * @classdesc Represents a CompilationResult. - * @implements ICompilationResult + * @classdesc Represents a MakeDirectoryRequest. + * @implements IMakeDirectoryRequest * @constructor - * @param {google.cloud.dataform.v1beta1.ICompilationResult=} [properties] Properties to set + * @param {google.cloud.dataform.v1beta1.IMakeDirectoryRequest=} [properties] Properties to set */ - function CompilationResult(properties) { - this.compilationErrors = []; + function MakeDirectoryRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -32593,164 +34252,288 @@ } /** - * CompilationResult name. - * @member {string} name - * @memberof google.cloud.dataform.v1beta1.CompilationResult + * MakeDirectoryRequest workspace. + * @member {string} workspace + * @memberof google.cloud.dataform.v1beta1.MakeDirectoryRequest * @instance */ - CompilationResult.prototype.name = ""; + MakeDirectoryRequest.prototype.workspace = ""; /** - * CompilationResult gitCommitish. - * @member {string|null|undefined} gitCommitish - * @memberof google.cloud.dataform.v1beta1.CompilationResult + * MakeDirectoryRequest path. + * @member {string} path + * @memberof google.cloud.dataform.v1beta1.MakeDirectoryRequest * @instance */ - CompilationResult.prototype.gitCommitish = null; + MakeDirectoryRequest.prototype.path = ""; /** - * CompilationResult workspace. - * @member {string|null|undefined} workspace - * @memberof google.cloud.dataform.v1beta1.CompilationResult - * @instance + * Creates a new MakeDirectoryRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dataform.v1beta1.MakeDirectoryRequest + * @static + * @param {google.cloud.dataform.v1beta1.IMakeDirectoryRequest=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.MakeDirectoryRequest} MakeDirectoryRequest instance */ - CompilationResult.prototype.workspace = null; + MakeDirectoryRequest.create = function create(properties) { + return new MakeDirectoryRequest(properties); + }; /** - * CompilationResult codeCompilationConfig. - * @member {google.cloud.dataform.v1beta1.CompilationResult.ICodeCompilationConfig|null|undefined} codeCompilationConfig - * @memberof google.cloud.dataform.v1beta1.CompilationResult - * @instance + * Encodes the specified MakeDirectoryRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.MakeDirectoryRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dataform.v1beta1.MakeDirectoryRequest + * @static + * @param {google.cloud.dataform.v1beta1.IMakeDirectoryRequest} message MakeDirectoryRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - CompilationResult.prototype.codeCompilationConfig = null; + MakeDirectoryRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.workspace != null && Object.hasOwnProperty.call(message, "workspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.workspace); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); + return writer; + }; /** - * CompilationResult dataformCoreVersion. - * @member {string} dataformCoreVersion - * @memberof google.cloud.dataform.v1beta1.CompilationResult - * @instance - */ - CompilationResult.prototype.dataformCoreVersion = ""; + * Encodes the specified MakeDirectoryRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.MakeDirectoryRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dataform.v1beta1.MakeDirectoryRequest + * @static + * @param {google.cloud.dataform.v1beta1.IMakeDirectoryRequest} message MakeDirectoryRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MakeDirectoryRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * CompilationResult compilationErrors. - * @member {Array.} compilationErrors - * @memberof google.cloud.dataform.v1beta1.CompilationResult - * @instance + * Decodes a MakeDirectoryRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dataform.v1beta1.MakeDirectoryRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dataform.v1beta1.MakeDirectoryRequest} MakeDirectoryRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CompilationResult.prototype.compilationErrors = $util.emptyArray; + MakeDirectoryRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.MakeDirectoryRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.workspace = reader.string(); + break; + } + case 2: { + message.path = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Decodes a MakeDirectoryRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dataform.v1beta1.MakeDirectoryRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dataform.v1beta1.MakeDirectoryRequest} MakeDirectoryRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MakeDirectoryRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * CompilationResult source. - * @member {"gitCommitish"|"workspace"|undefined} source - * @memberof google.cloud.dataform.v1beta1.CompilationResult + * Verifies a MakeDirectoryRequest message. + * @function verify + * @memberof google.cloud.dataform.v1beta1.MakeDirectoryRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MakeDirectoryRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.workspace != null && message.hasOwnProperty("workspace")) + if (!$util.isString(message.workspace)) + return "workspace: string expected"; + if (message.path != null && message.hasOwnProperty("path")) + if (!$util.isString(message.path)) + return "path: string expected"; + return null; + }; + + /** + * Creates a MakeDirectoryRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dataform.v1beta1.MakeDirectoryRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dataform.v1beta1.MakeDirectoryRequest} MakeDirectoryRequest + */ + MakeDirectoryRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.MakeDirectoryRequest) + return object; + var message = new $root.google.cloud.dataform.v1beta1.MakeDirectoryRequest(); + if (object.workspace != null) + message.workspace = String(object.workspace); + if (object.path != null) + message.path = String(object.path); + return message; + }; + + /** + * Creates a plain object from a MakeDirectoryRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dataform.v1beta1.MakeDirectoryRequest + * @static + * @param {google.cloud.dataform.v1beta1.MakeDirectoryRequest} message MakeDirectoryRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MakeDirectoryRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.workspace = ""; + object.path = ""; + } + if (message.workspace != null && message.hasOwnProperty("workspace")) + object.workspace = message.workspace; + if (message.path != null && message.hasOwnProperty("path")) + object.path = message.path; + return object; + }; + + /** + * Converts this MakeDirectoryRequest to JSON. + * @function toJSON + * @memberof google.cloud.dataform.v1beta1.MakeDirectoryRequest * @instance + * @returns {Object.} JSON object */ - Object.defineProperty(CompilationResult.prototype, "source", { - get: $util.oneOfGetter($oneOfFields = ["gitCommitish", "workspace"]), - set: $util.oneOfSetter($oneOfFields) - }); + MakeDirectoryRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Creates a new CompilationResult instance using the specified properties. + * Gets the default type url for MakeDirectoryRequest + * @function getTypeUrl + * @memberof google.cloud.dataform.v1beta1.MakeDirectoryRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MakeDirectoryRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.MakeDirectoryRequest"; + }; + + return MakeDirectoryRequest; + })(); + + v1beta1.MakeDirectoryResponse = (function() { + + /** + * Properties of a MakeDirectoryResponse. + * @memberof google.cloud.dataform.v1beta1 + * @interface IMakeDirectoryResponse + */ + + /** + * Constructs a new MakeDirectoryResponse. + * @memberof google.cloud.dataform.v1beta1 + * @classdesc Represents a MakeDirectoryResponse. + * @implements IMakeDirectoryResponse + * @constructor + * @param {google.cloud.dataform.v1beta1.IMakeDirectoryResponse=} [properties] Properties to set + */ + function MakeDirectoryResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new MakeDirectoryResponse instance using the specified properties. * @function create - * @memberof google.cloud.dataform.v1beta1.CompilationResult + * @memberof google.cloud.dataform.v1beta1.MakeDirectoryResponse * @static - * @param {google.cloud.dataform.v1beta1.ICompilationResult=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.CompilationResult} CompilationResult instance + * @param {google.cloud.dataform.v1beta1.IMakeDirectoryResponse=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.MakeDirectoryResponse} MakeDirectoryResponse instance */ - CompilationResult.create = function create(properties) { - return new CompilationResult(properties); + MakeDirectoryResponse.create = function create(properties) { + return new MakeDirectoryResponse(properties); }; /** - * Encodes the specified CompilationResult message. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResult.verify|verify} messages. + * Encodes the specified MakeDirectoryResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.MakeDirectoryResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dataform.v1beta1.CompilationResult + * @memberof google.cloud.dataform.v1beta1.MakeDirectoryResponse * @static - * @param {google.cloud.dataform.v1beta1.ICompilationResult} message CompilationResult message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IMakeDirectoryResponse} message MakeDirectoryResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CompilationResult.encode = function encode(message, writer) { + MakeDirectoryResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.gitCommitish != null && Object.hasOwnProperty.call(message, "gitCommitish")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.gitCommitish); - if (message.workspace != null && Object.hasOwnProperty.call(message, "workspace")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.workspace); - if (message.codeCompilationConfig != null && Object.hasOwnProperty.call(message, "codeCompilationConfig")) - $root.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig.encode(message.codeCompilationConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.dataformCoreVersion != null && Object.hasOwnProperty.call(message, "dataformCoreVersion")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.dataformCoreVersion); - if (message.compilationErrors != null && message.compilationErrors.length) - for (var i = 0; i < message.compilationErrors.length; ++i) - $root.google.cloud.dataform.v1beta1.CompilationResult.CompilationError.encode(message.compilationErrors[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; /** - * Encodes the specified CompilationResult message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResult.verify|verify} messages. + * Encodes the specified MakeDirectoryResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.MakeDirectoryResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.CompilationResult + * @memberof google.cloud.dataform.v1beta1.MakeDirectoryResponse * @static - * @param {google.cloud.dataform.v1beta1.ICompilationResult} message CompilationResult message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IMakeDirectoryResponse} message MakeDirectoryResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CompilationResult.encodeDelimited = function encodeDelimited(message, writer) { + MakeDirectoryResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CompilationResult message from the specified reader or buffer. + * Decodes a MakeDirectoryResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dataform.v1beta1.CompilationResult + * @memberof google.cloud.dataform.v1beta1.MakeDirectoryResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.CompilationResult} CompilationResult + * @returns {google.cloud.dataform.v1beta1.MakeDirectoryResponse} MakeDirectoryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CompilationResult.decode = function decode(reader, length) { + MakeDirectoryResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.CompilationResult(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.MakeDirectoryResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - case 2: { - message.gitCommitish = reader.string(); - break; - } - case 3: { - message.workspace = reader.string(); - break; - } - case 4: { - message.codeCompilationConfig = $root.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig.decode(reader, reader.uint32()); - break; - } - case 5: { - message.dataformCoreVersion = reader.string(); - break; - } - case 6: { - if (!(message.compilationErrors && message.compilationErrors.length)) - message.compilationErrors = []; - message.compilationErrors.push($root.google.cloud.dataform.v1beta1.CompilationResult.CompilationError.decode(reader, reader.uint32())); - break; - } default: reader.skipType(tag & 7); break; @@ -32760,982 +34543,442 @@ }; /** - * Decodes a CompilationResult message from the specified reader or buffer, length delimited. + * Decodes a MakeDirectoryResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.CompilationResult + * @memberof google.cloud.dataform.v1beta1.MakeDirectoryResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.CompilationResult} CompilationResult + * @returns {google.cloud.dataform.v1beta1.MakeDirectoryResponse} MakeDirectoryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CompilationResult.decodeDelimited = function decodeDelimited(reader) { + MakeDirectoryResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CompilationResult message. + * Verifies a MakeDirectoryResponse message. * @function verify - * @memberof google.cloud.dataform.v1beta1.CompilationResult + * @memberof google.cloud.dataform.v1beta1.MakeDirectoryResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CompilationResult.verify = function verify(message) { + MakeDirectoryResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.gitCommitish != null && message.hasOwnProperty("gitCommitish")) { - properties.source = 1; - if (!$util.isString(message.gitCommitish)) - return "gitCommitish: string expected"; - } - if (message.workspace != null && message.hasOwnProperty("workspace")) { - if (properties.source === 1) - return "source: multiple values"; - properties.source = 1; - if (!$util.isString(message.workspace)) - return "workspace: string expected"; - } - if (message.codeCompilationConfig != null && message.hasOwnProperty("codeCompilationConfig")) { - var error = $root.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig.verify(message.codeCompilationConfig); - if (error) - return "codeCompilationConfig." + error; - } - if (message.dataformCoreVersion != null && message.hasOwnProperty("dataformCoreVersion")) - if (!$util.isString(message.dataformCoreVersion)) - return "dataformCoreVersion: string expected"; - if (message.compilationErrors != null && message.hasOwnProperty("compilationErrors")) { - if (!Array.isArray(message.compilationErrors)) - return "compilationErrors: array expected"; - for (var i = 0; i < message.compilationErrors.length; ++i) { - var error = $root.google.cloud.dataform.v1beta1.CompilationResult.CompilationError.verify(message.compilationErrors[i]); - if (error) - return "compilationErrors." + error; - } - } return null; }; /** - * Creates a CompilationResult message from a plain object. Also converts values to their respective internal types. + * Creates a MakeDirectoryResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dataform.v1beta1.CompilationResult + * @memberof google.cloud.dataform.v1beta1.MakeDirectoryResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.CompilationResult} CompilationResult + * @returns {google.cloud.dataform.v1beta1.MakeDirectoryResponse} MakeDirectoryResponse */ - CompilationResult.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.CompilationResult) + MakeDirectoryResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.MakeDirectoryResponse) return object; - var message = new $root.google.cloud.dataform.v1beta1.CompilationResult(); - if (object.name != null) - message.name = String(object.name); - if (object.gitCommitish != null) - message.gitCommitish = String(object.gitCommitish); - if (object.workspace != null) - message.workspace = String(object.workspace); - if (object.codeCompilationConfig != null) { - if (typeof object.codeCompilationConfig !== "object") - throw TypeError(".google.cloud.dataform.v1beta1.CompilationResult.codeCompilationConfig: object expected"); - message.codeCompilationConfig = $root.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig.fromObject(object.codeCompilationConfig); - } - if (object.dataformCoreVersion != null) - message.dataformCoreVersion = String(object.dataformCoreVersion); - if (object.compilationErrors) { - if (!Array.isArray(object.compilationErrors)) - throw TypeError(".google.cloud.dataform.v1beta1.CompilationResult.compilationErrors: array expected"); - message.compilationErrors = []; - for (var i = 0; i < object.compilationErrors.length; ++i) { - if (typeof object.compilationErrors[i] !== "object") - throw TypeError(".google.cloud.dataform.v1beta1.CompilationResult.compilationErrors: object expected"); - message.compilationErrors[i] = $root.google.cloud.dataform.v1beta1.CompilationResult.CompilationError.fromObject(object.compilationErrors[i]); - } - } - return message; + return new $root.google.cloud.dataform.v1beta1.MakeDirectoryResponse(); }; /** - * Creates a plain object from a CompilationResult message. Also converts values to other types if specified. + * Creates a plain object from a MakeDirectoryResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dataform.v1beta1.CompilationResult + * @memberof google.cloud.dataform.v1beta1.MakeDirectoryResponse * @static - * @param {google.cloud.dataform.v1beta1.CompilationResult} message CompilationResult + * @param {google.cloud.dataform.v1beta1.MakeDirectoryResponse} message MakeDirectoryResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CompilationResult.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.compilationErrors = []; - if (options.defaults) { - object.name = ""; - object.codeCompilationConfig = null; - object.dataformCoreVersion = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.gitCommitish != null && message.hasOwnProperty("gitCommitish")) { - object.gitCommitish = message.gitCommitish; - if (options.oneofs) - object.source = "gitCommitish"; - } - if (message.workspace != null && message.hasOwnProperty("workspace")) { - object.workspace = message.workspace; - if (options.oneofs) - object.source = "workspace"; - } - if (message.codeCompilationConfig != null && message.hasOwnProperty("codeCompilationConfig")) - object.codeCompilationConfig = $root.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig.toObject(message.codeCompilationConfig, options); - if (message.dataformCoreVersion != null && message.hasOwnProperty("dataformCoreVersion")) - object.dataformCoreVersion = message.dataformCoreVersion; - if (message.compilationErrors && message.compilationErrors.length) { - object.compilationErrors = []; - for (var j = 0; j < message.compilationErrors.length; ++j) - object.compilationErrors[j] = $root.google.cloud.dataform.v1beta1.CompilationResult.CompilationError.toObject(message.compilationErrors[j], options); - } - return object; + MakeDirectoryResponse.toObject = function toObject() { + return {}; }; /** - * Converts this CompilationResult to JSON. + * Converts this MakeDirectoryResponse to JSON. * @function toJSON - * @memberof google.cloud.dataform.v1beta1.CompilationResult + * @memberof google.cloud.dataform.v1beta1.MakeDirectoryResponse * @instance * @returns {Object.} JSON object */ - CompilationResult.prototype.toJSON = function toJSON() { + MakeDirectoryResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CompilationResult + * Gets the default type url for MakeDirectoryResponse * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.CompilationResult + * @memberof google.cloud.dataform.v1beta1.MakeDirectoryResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CompilationResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MakeDirectoryResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.CompilationResult"; + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.MakeDirectoryResponse"; }; - CompilationResult.CodeCompilationConfig = (function() { - - /** - * Properties of a CodeCompilationConfig. - * @memberof google.cloud.dataform.v1beta1.CompilationResult - * @interface ICodeCompilationConfig - * @property {string|null} [defaultDatabase] CodeCompilationConfig defaultDatabase - * @property {string|null} [defaultSchema] CodeCompilationConfig defaultSchema - * @property {string|null} [defaultLocation] CodeCompilationConfig defaultLocation - * @property {string|null} [assertionSchema] CodeCompilationConfig assertionSchema - * @property {Object.|null} [vars] CodeCompilationConfig vars - * @property {string|null} [databaseSuffix] CodeCompilationConfig databaseSuffix - * @property {string|null} [schemaSuffix] CodeCompilationConfig schemaSuffix - * @property {string|null} [tablePrefix] CodeCompilationConfig tablePrefix - */ - - /** - * Constructs a new CodeCompilationConfig. - * @memberof google.cloud.dataform.v1beta1.CompilationResult - * @classdesc Represents a CodeCompilationConfig. - * @implements ICodeCompilationConfig - * @constructor - * @param {google.cloud.dataform.v1beta1.CompilationResult.ICodeCompilationConfig=} [properties] Properties to set - */ - function CodeCompilationConfig(properties) { - this.vars = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + return MakeDirectoryResponse; + })(); - /** - * CodeCompilationConfig defaultDatabase. - * @member {string} defaultDatabase - * @memberof google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig - * @instance - */ - CodeCompilationConfig.prototype.defaultDatabase = ""; + v1beta1.RemoveDirectoryRequest = (function() { - /** - * CodeCompilationConfig defaultSchema. - * @member {string} defaultSchema - * @memberof google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig - * @instance - */ - CodeCompilationConfig.prototype.defaultSchema = ""; + /** + * Properties of a RemoveDirectoryRequest. + * @memberof google.cloud.dataform.v1beta1 + * @interface IRemoveDirectoryRequest + * @property {string|null} [workspace] RemoveDirectoryRequest workspace + * @property {string|null} [path] RemoveDirectoryRequest path + */ - /** - * CodeCompilationConfig defaultLocation. - * @member {string} defaultLocation - * @memberof google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig - * @instance - */ - CodeCompilationConfig.prototype.defaultLocation = ""; + /** + * Constructs a new RemoveDirectoryRequest. + * @memberof google.cloud.dataform.v1beta1 + * @classdesc Represents a RemoveDirectoryRequest. + * @implements IRemoveDirectoryRequest + * @constructor + * @param {google.cloud.dataform.v1beta1.IRemoveDirectoryRequest=} [properties] Properties to set + */ + function RemoveDirectoryRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * CodeCompilationConfig assertionSchema. - * @member {string} assertionSchema - * @memberof google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig - * @instance - */ - CodeCompilationConfig.prototype.assertionSchema = ""; + /** + * RemoveDirectoryRequest workspace. + * @member {string} workspace + * @memberof google.cloud.dataform.v1beta1.RemoveDirectoryRequest + * @instance + */ + RemoveDirectoryRequest.prototype.workspace = ""; - /** - * CodeCompilationConfig vars. - * @member {Object.} vars - * @memberof google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig - * @instance - */ - CodeCompilationConfig.prototype.vars = $util.emptyObject; + /** + * RemoveDirectoryRequest path. + * @member {string} path + * @memberof google.cloud.dataform.v1beta1.RemoveDirectoryRequest + * @instance + */ + RemoveDirectoryRequest.prototype.path = ""; - /** - * CodeCompilationConfig databaseSuffix. - * @member {string} databaseSuffix - * @memberof google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig - * @instance - */ - CodeCompilationConfig.prototype.databaseSuffix = ""; + /** + * Creates a new RemoveDirectoryRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dataform.v1beta1.RemoveDirectoryRequest + * @static + * @param {google.cloud.dataform.v1beta1.IRemoveDirectoryRequest=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.RemoveDirectoryRequest} RemoveDirectoryRequest instance + */ + RemoveDirectoryRequest.create = function create(properties) { + return new RemoveDirectoryRequest(properties); + }; - /** - * CodeCompilationConfig schemaSuffix. - * @member {string} schemaSuffix - * @memberof google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig - * @instance - */ - CodeCompilationConfig.prototype.schemaSuffix = ""; - - /** - * CodeCompilationConfig tablePrefix. - * @member {string} tablePrefix - * @memberof google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig - * @instance - */ - CodeCompilationConfig.prototype.tablePrefix = ""; - - /** - * Creates a new CodeCompilationConfig instance using the specified properties. - * @function create - * @memberof google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig - * @static - * @param {google.cloud.dataform.v1beta1.CompilationResult.ICodeCompilationConfig=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig} CodeCompilationConfig instance - */ - CodeCompilationConfig.create = function create(properties) { - return new CodeCompilationConfig(properties); - }; - - /** - * Encodes the specified CodeCompilationConfig message. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig - * @static - * @param {google.cloud.dataform.v1beta1.CompilationResult.ICodeCompilationConfig} message CodeCompilationConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CodeCompilationConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.defaultDatabase != null && Object.hasOwnProperty.call(message, "defaultDatabase")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.defaultDatabase); - if (message.defaultSchema != null && Object.hasOwnProperty.call(message, "defaultSchema")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.defaultSchema); - if (message.assertionSchema != null && Object.hasOwnProperty.call(message, "assertionSchema")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.assertionSchema); - if (message.vars != null && Object.hasOwnProperty.call(message, "vars")) - for (var keys = Object.keys(message.vars), i = 0; i < keys.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.vars[keys[i]]).ldelim(); - if (message.databaseSuffix != null && Object.hasOwnProperty.call(message, "databaseSuffix")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.databaseSuffix); - if (message.schemaSuffix != null && Object.hasOwnProperty.call(message, "schemaSuffix")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.schemaSuffix); - if (message.tablePrefix != null && Object.hasOwnProperty.call(message, "tablePrefix")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.tablePrefix); - if (message.defaultLocation != null && Object.hasOwnProperty.call(message, "defaultLocation")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.defaultLocation); - return writer; - }; + /** + * Encodes the specified RemoveDirectoryRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.RemoveDirectoryRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dataform.v1beta1.RemoveDirectoryRequest + * @static + * @param {google.cloud.dataform.v1beta1.IRemoveDirectoryRequest} message RemoveDirectoryRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RemoveDirectoryRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.workspace != null && Object.hasOwnProperty.call(message, "workspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.workspace); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); + return writer; + }; - /** - * Encodes the specified CodeCompilationConfig message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig - * @static - * @param {google.cloud.dataform.v1beta1.CompilationResult.ICodeCompilationConfig} message CodeCompilationConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CodeCompilationConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified RemoveDirectoryRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.RemoveDirectoryRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dataform.v1beta1.RemoveDirectoryRequest + * @static + * @param {google.cloud.dataform.v1beta1.IRemoveDirectoryRequest} message RemoveDirectoryRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RemoveDirectoryRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a CodeCompilationConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig} CodeCompilationConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CodeCompilationConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig(), key, value; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.defaultDatabase = reader.string(); - break; - } - case 2: { - message.defaultSchema = reader.string(); - break; - } - case 8: { - message.defaultLocation = reader.string(); - break; - } - case 3: { - message.assertionSchema = reader.string(); - break; - } - case 4: { - if (message.vars === $util.emptyObject) - message.vars = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.vars[key] = value; - break; - } - case 5: { - message.databaseSuffix = reader.string(); - break; - } - case 6: { - message.schemaSuffix = reader.string(); - break; - } - case 7: { - message.tablePrefix = reader.string(); - break; - } - default: - reader.skipType(tag & 7); + /** + * Decodes a RemoveDirectoryRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dataform.v1beta1.RemoveDirectoryRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dataform.v1beta1.RemoveDirectoryRequest} RemoveDirectoryRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RemoveDirectoryRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.RemoveDirectoryRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.workspace = reader.string(); + break; + } + case 2: { + message.path = reader.string(); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a CodeCompilationConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig} CodeCompilationConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CodeCompilationConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a CodeCompilationConfig message. - * @function verify - * @memberof google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CodeCompilationConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.defaultDatabase != null && message.hasOwnProperty("defaultDatabase")) - if (!$util.isString(message.defaultDatabase)) - return "defaultDatabase: string expected"; - if (message.defaultSchema != null && message.hasOwnProperty("defaultSchema")) - if (!$util.isString(message.defaultSchema)) - return "defaultSchema: string expected"; - if (message.defaultLocation != null && message.hasOwnProperty("defaultLocation")) - if (!$util.isString(message.defaultLocation)) - return "defaultLocation: string expected"; - if (message.assertionSchema != null && message.hasOwnProperty("assertionSchema")) - if (!$util.isString(message.assertionSchema)) - return "assertionSchema: string expected"; - if (message.vars != null && message.hasOwnProperty("vars")) { - if (!$util.isObject(message.vars)) - return "vars: object expected"; - var key = Object.keys(message.vars); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.vars[key[i]])) - return "vars: string{k:string} expected"; - } - if (message.databaseSuffix != null && message.hasOwnProperty("databaseSuffix")) - if (!$util.isString(message.databaseSuffix)) - return "databaseSuffix: string expected"; - if (message.schemaSuffix != null && message.hasOwnProperty("schemaSuffix")) - if (!$util.isString(message.schemaSuffix)) - return "schemaSuffix: string expected"; - if (message.tablePrefix != null && message.hasOwnProperty("tablePrefix")) - if (!$util.isString(message.tablePrefix)) - return "tablePrefix: string expected"; - return null; - }; + /** + * Decodes a RemoveDirectoryRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dataform.v1beta1.RemoveDirectoryRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dataform.v1beta1.RemoveDirectoryRequest} RemoveDirectoryRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RemoveDirectoryRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a CodeCompilationConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig} CodeCompilationConfig - */ - CodeCompilationConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig) - return object; - var message = new $root.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig(); - if (object.defaultDatabase != null) - message.defaultDatabase = String(object.defaultDatabase); - if (object.defaultSchema != null) - message.defaultSchema = String(object.defaultSchema); - if (object.defaultLocation != null) - message.defaultLocation = String(object.defaultLocation); - if (object.assertionSchema != null) - message.assertionSchema = String(object.assertionSchema); - if (object.vars) { - if (typeof object.vars !== "object") - throw TypeError(".google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig.vars: object expected"); - message.vars = {}; - for (var keys = Object.keys(object.vars), i = 0; i < keys.length; ++i) - message.vars[keys[i]] = String(object.vars[keys[i]]); - } - if (object.databaseSuffix != null) - message.databaseSuffix = String(object.databaseSuffix); - if (object.schemaSuffix != null) - message.schemaSuffix = String(object.schemaSuffix); - if (object.tablePrefix != null) - message.tablePrefix = String(object.tablePrefix); - return message; - }; + /** + * Verifies a RemoveDirectoryRequest message. + * @function verify + * @memberof google.cloud.dataform.v1beta1.RemoveDirectoryRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RemoveDirectoryRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.workspace != null && message.hasOwnProperty("workspace")) + if (!$util.isString(message.workspace)) + return "workspace: string expected"; + if (message.path != null && message.hasOwnProperty("path")) + if (!$util.isString(message.path)) + return "path: string expected"; + return null; + }; - /** - * Creates a plain object from a CodeCompilationConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig - * @static - * @param {google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig} message CodeCompilationConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CodeCompilationConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.objects || options.defaults) - object.vars = {}; - if (options.defaults) { - object.defaultDatabase = ""; - object.defaultSchema = ""; - object.assertionSchema = ""; - object.databaseSuffix = ""; - object.schemaSuffix = ""; - object.tablePrefix = ""; - object.defaultLocation = ""; - } - if (message.defaultDatabase != null && message.hasOwnProperty("defaultDatabase")) - object.defaultDatabase = message.defaultDatabase; - if (message.defaultSchema != null && message.hasOwnProperty("defaultSchema")) - object.defaultSchema = message.defaultSchema; - if (message.assertionSchema != null && message.hasOwnProperty("assertionSchema")) - object.assertionSchema = message.assertionSchema; - var keys2; - if (message.vars && (keys2 = Object.keys(message.vars)).length) { - object.vars = {}; - for (var j = 0; j < keys2.length; ++j) - object.vars[keys2[j]] = message.vars[keys2[j]]; - } - if (message.databaseSuffix != null && message.hasOwnProperty("databaseSuffix")) - object.databaseSuffix = message.databaseSuffix; - if (message.schemaSuffix != null && message.hasOwnProperty("schemaSuffix")) - object.schemaSuffix = message.schemaSuffix; - if (message.tablePrefix != null && message.hasOwnProperty("tablePrefix")) - object.tablePrefix = message.tablePrefix; - if (message.defaultLocation != null && message.hasOwnProperty("defaultLocation")) - object.defaultLocation = message.defaultLocation; + /** + * Creates a RemoveDirectoryRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dataform.v1beta1.RemoveDirectoryRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dataform.v1beta1.RemoveDirectoryRequest} RemoveDirectoryRequest + */ + RemoveDirectoryRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.RemoveDirectoryRequest) return object; - }; - - /** - * Converts this CodeCompilationConfig to JSON. - * @function toJSON - * @memberof google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig - * @instance - * @returns {Object.} JSON object - */ - CodeCompilationConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for CodeCompilationConfig - * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - CodeCompilationConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig"; - }; - - return CodeCompilationConfig; - })(); + var message = new $root.google.cloud.dataform.v1beta1.RemoveDirectoryRequest(); + if (object.workspace != null) + message.workspace = String(object.workspace); + if (object.path != null) + message.path = String(object.path); + return message; + }; - CompilationResult.CompilationError = (function() { + /** + * Creates a plain object from a RemoveDirectoryRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dataform.v1beta1.RemoveDirectoryRequest + * @static + * @param {google.cloud.dataform.v1beta1.RemoveDirectoryRequest} message RemoveDirectoryRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RemoveDirectoryRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.workspace = ""; + object.path = ""; + } + if (message.workspace != null && message.hasOwnProperty("workspace")) + object.workspace = message.workspace; + if (message.path != null && message.hasOwnProperty("path")) + object.path = message.path; + return object; + }; - /** - * Properties of a CompilationError. - * @memberof google.cloud.dataform.v1beta1.CompilationResult - * @interface ICompilationError - * @property {string|null} [message] CompilationError message - * @property {string|null} [stack] CompilationError stack - * @property {string|null} [path] CompilationError path - * @property {google.cloud.dataform.v1beta1.ITarget|null} [actionTarget] CompilationError actionTarget - */ + /** + * Converts this RemoveDirectoryRequest to JSON. + * @function toJSON + * @memberof google.cloud.dataform.v1beta1.RemoveDirectoryRequest + * @instance + * @returns {Object.} JSON object + */ + RemoveDirectoryRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Constructs a new CompilationError. - * @memberof google.cloud.dataform.v1beta1.CompilationResult - * @classdesc Represents a CompilationError. - * @implements ICompilationError - * @constructor - * @param {google.cloud.dataform.v1beta1.CompilationResult.ICompilationError=} [properties] Properties to set - */ - function CompilationError(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + /** + * Gets the default type url for RemoveDirectoryRequest + * @function getTypeUrl + * @memberof google.cloud.dataform.v1beta1.RemoveDirectoryRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RemoveDirectoryRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.RemoveDirectoryRequest"; + }; - /** - * CompilationError message. - * @member {string} message - * @memberof google.cloud.dataform.v1beta1.CompilationResult.CompilationError - * @instance - */ - CompilationError.prototype.message = ""; + return RemoveDirectoryRequest; + })(); - /** - * CompilationError stack. - * @member {string} stack - * @memberof google.cloud.dataform.v1beta1.CompilationResult.CompilationError - * @instance - */ - CompilationError.prototype.stack = ""; + v1beta1.MoveDirectoryRequest = (function() { - /** - * CompilationError path. - * @member {string} path - * @memberof google.cloud.dataform.v1beta1.CompilationResult.CompilationError - * @instance - */ - CompilationError.prototype.path = ""; + /** + * Properties of a MoveDirectoryRequest. + * @memberof google.cloud.dataform.v1beta1 + * @interface IMoveDirectoryRequest + * @property {string|null} [workspace] MoveDirectoryRequest workspace + * @property {string|null} [path] MoveDirectoryRequest path + * @property {string|null} [newPath] MoveDirectoryRequest newPath + */ - /** - * CompilationError actionTarget. - * @member {google.cloud.dataform.v1beta1.ITarget|null|undefined} actionTarget - * @memberof google.cloud.dataform.v1beta1.CompilationResult.CompilationError - * @instance - */ - CompilationError.prototype.actionTarget = null; - - /** - * Creates a new CompilationError instance using the specified properties. - * @function create - * @memberof google.cloud.dataform.v1beta1.CompilationResult.CompilationError - * @static - * @param {google.cloud.dataform.v1beta1.CompilationResult.ICompilationError=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.CompilationResult.CompilationError} CompilationError instance - */ - CompilationError.create = function create(properties) { - return new CompilationError(properties); - }; - - /** - * Encodes the specified CompilationError message. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResult.CompilationError.verify|verify} messages. - * @function encode - * @memberof google.cloud.dataform.v1beta1.CompilationResult.CompilationError - * @static - * @param {google.cloud.dataform.v1beta1.CompilationResult.ICompilationError} message CompilationError message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CompilationError.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.message); - if (message.stack != null && Object.hasOwnProperty.call(message, "stack")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.stack); - if (message.path != null && Object.hasOwnProperty.call(message, "path")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.path); - if (message.actionTarget != null && Object.hasOwnProperty.call(message, "actionTarget")) - $root.google.cloud.dataform.v1beta1.Target.encode(message.actionTarget, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified CompilationError message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResult.CompilationError.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.CompilationResult.CompilationError - * @static - * @param {google.cloud.dataform.v1beta1.CompilationResult.ICompilationError} message CompilationError message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CompilationError.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a CompilationError message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dataform.v1beta1.CompilationResult.CompilationError - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.CompilationResult.CompilationError} CompilationError - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CompilationError.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.CompilationResult.CompilationError(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.message = reader.string(); - break; - } - case 2: { - message.stack = reader.string(); - break; - } - case 3: { - message.path = reader.string(); - break; - } - case 4: { - message.actionTarget = $root.google.cloud.dataform.v1beta1.Target.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a CompilationError message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.CompilationResult.CompilationError - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.CompilationResult.CompilationError} CompilationError - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CompilationError.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CompilationError message. - * @function verify - * @memberof google.cloud.dataform.v1beta1.CompilationResult.CompilationError - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CompilationError.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.stack != null && message.hasOwnProperty("stack")) - if (!$util.isString(message.stack)) - return "stack: string expected"; - if (message.path != null && message.hasOwnProperty("path")) - if (!$util.isString(message.path)) - return "path: string expected"; - if (message.actionTarget != null && message.hasOwnProperty("actionTarget")) { - var error = $root.google.cloud.dataform.v1beta1.Target.verify(message.actionTarget); - if (error) - return "actionTarget." + error; - } - return null; - }; - - /** - * Creates a CompilationError message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dataform.v1beta1.CompilationResult.CompilationError - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.CompilationResult.CompilationError} CompilationError - */ - CompilationError.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.CompilationResult.CompilationError) - return object; - var message = new $root.google.cloud.dataform.v1beta1.CompilationResult.CompilationError(); - if (object.message != null) - message.message = String(object.message); - if (object.stack != null) - message.stack = String(object.stack); - if (object.path != null) - message.path = String(object.path); - if (object.actionTarget != null) { - if (typeof object.actionTarget !== "object") - throw TypeError(".google.cloud.dataform.v1beta1.CompilationResult.CompilationError.actionTarget: object expected"); - message.actionTarget = $root.google.cloud.dataform.v1beta1.Target.fromObject(object.actionTarget); - } - return message; - }; - - /** - * Creates a plain object from a CompilationError message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dataform.v1beta1.CompilationResult.CompilationError - * @static - * @param {google.cloud.dataform.v1beta1.CompilationResult.CompilationError} message CompilationError - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CompilationError.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.message = ""; - object.stack = ""; - object.path = ""; - object.actionTarget = null; - } - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; - if (message.stack != null && message.hasOwnProperty("stack")) - object.stack = message.stack; - if (message.path != null && message.hasOwnProperty("path")) - object.path = message.path; - if (message.actionTarget != null && message.hasOwnProperty("actionTarget")) - object.actionTarget = $root.google.cloud.dataform.v1beta1.Target.toObject(message.actionTarget, options); - return object; - }; - - /** - * Converts this CompilationError to JSON. - * @function toJSON - * @memberof google.cloud.dataform.v1beta1.CompilationResult.CompilationError - * @instance - * @returns {Object.} JSON object - */ - CompilationError.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for CompilationError - * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.CompilationResult.CompilationError - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - CompilationError.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.CompilationResult.CompilationError"; - }; - - return CompilationError; - })(); - - return CompilationResult; - })(); - - v1beta1.ListCompilationResultsRequest = (function() { + /** + * Constructs a new MoveDirectoryRequest. + * @memberof google.cloud.dataform.v1beta1 + * @classdesc Represents a MoveDirectoryRequest. + * @implements IMoveDirectoryRequest + * @constructor + * @param {google.cloud.dataform.v1beta1.IMoveDirectoryRequest=} [properties] Properties to set + */ + function MoveDirectoryRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Properties of a ListCompilationResultsRequest. - * @memberof google.cloud.dataform.v1beta1 - * @interface IListCompilationResultsRequest - * @property {string|null} [parent] ListCompilationResultsRequest parent - * @property {number|null} [pageSize] ListCompilationResultsRequest pageSize - * @property {string|null} [pageToken] ListCompilationResultsRequest pageToken - */ - - /** - * Constructs a new ListCompilationResultsRequest. - * @memberof google.cloud.dataform.v1beta1 - * @classdesc Represents a ListCompilationResultsRequest. - * @implements IListCompilationResultsRequest - * @constructor - * @param {google.cloud.dataform.v1beta1.IListCompilationResultsRequest=} [properties] Properties to set - */ - function ListCompilationResultsRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ListCompilationResultsRequest parent. - * @member {string} parent - * @memberof google.cloud.dataform.v1beta1.ListCompilationResultsRequest + * MoveDirectoryRequest workspace. + * @member {string} workspace + * @memberof google.cloud.dataform.v1beta1.MoveDirectoryRequest * @instance */ - ListCompilationResultsRequest.prototype.parent = ""; + MoveDirectoryRequest.prototype.workspace = ""; /** - * ListCompilationResultsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dataform.v1beta1.ListCompilationResultsRequest + * MoveDirectoryRequest path. + * @member {string} path + * @memberof google.cloud.dataform.v1beta1.MoveDirectoryRequest * @instance */ - ListCompilationResultsRequest.prototype.pageSize = 0; + MoveDirectoryRequest.prototype.path = ""; /** - * ListCompilationResultsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dataform.v1beta1.ListCompilationResultsRequest + * MoveDirectoryRequest newPath. + * @member {string} newPath + * @memberof google.cloud.dataform.v1beta1.MoveDirectoryRequest * @instance */ - ListCompilationResultsRequest.prototype.pageToken = ""; + MoveDirectoryRequest.prototype.newPath = ""; /** - * Creates a new ListCompilationResultsRequest instance using the specified properties. + * Creates a new MoveDirectoryRequest instance using the specified properties. * @function create - * @memberof google.cloud.dataform.v1beta1.ListCompilationResultsRequest + * @memberof google.cloud.dataform.v1beta1.MoveDirectoryRequest * @static - * @param {google.cloud.dataform.v1beta1.IListCompilationResultsRequest=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.ListCompilationResultsRequest} ListCompilationResultsRequest instance + * @param {google.cloud.dataform.v1beta1.IMoveDirectoryRequest=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.MoveDirectoryRequest} MoveDirectoryRequest instance */ - ListCompilationResultsRequest.create = function create(properties) { - return new ListCompilationResultsRequest(properties); + MoveDirectoryRequest.create = function create(properties) { + return new MoveDirectoryRequest(properties); }; /** - * Encodes the specified ListCompilationResultsRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.ListCompilationResultsRequest.verify|verify} messages. + * Encodes the specified MoveDirectoryRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.MoveDirectoryRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dataform.v1beta1.ListCompilationResultsRequest + * @memberof google.cloud.dataform.v1beta1.MoveDirectoryRequest * @static - * @param {google.cloud.dataform.v1beta1.IListCompilationResultsRequest} message ListCompilationResultsRequest message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IMoveDirectoryRequest} message MoveDirectoryRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListCompilationResultsRequest.encode = function encode(message, writer) { + MoveDirectoryRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.workspace != null && Object.hasOwnProperty.call(message, "workspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.workspace); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); + if (message.newPath != null && Object.hasOwnProperty.call(message, "newPath")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.newPath); return writer; }; /** - * Encodes the specified ListCompilationResultsRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.ListCompilationResultsRequest.verify|verify} messages. + * Encodes the specified MoveDirectoryRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.MoveDirectoryRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.ListCompilationResultsRequest + * @memberof google.cloud.dataform.v1beta1.MoveDirectoryRequest * @static - * @param {google.cloud.dataform.v1beta1.IListCompilationResultsRequest} message ListCompilationResultsRequest message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IMoveDirectoryRequest} message MoveDirectoryRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListCompilationResultsRequest.encodeDelimited = function encodeDelimited(message, writer) { + MoveDirectoryRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListCompilationResultsRequest message from the specified reader or buffer. + * Decodes a MoveDirectoryRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dataform.v1beta1.ListCompilationResultsRequest + * @memberof google.cloud.dataform.v1beta1.MoveDirectoryRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.ListCompilationResultsRequest} ListCompilationResultsRequest + * @returns {google.cloud.dataform.v1beta1.MoveDirectoryRequest} MoveDirectoryRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListCompilationResultsRequest.decode = function decode(reader, length) { + MoveDirectoryRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.ListCompilationResultsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.MoveDirectoryRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.workspace = reader.string(); break; } case 2: { - message.pageSize = reader.int32(); + message.path = reader.string(); break; } case 3: { - message.pageToken = reader.string(); + message.newPath = reader.string(); break; } default: @@ -33747,143 +34990,138 @@ }; /** - * Decodes a ListCompilationResultsRequest message from the specified reader or buffer, length delimited. + * Decodes a MoveDirectoryRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.ListCompilationResultsRequest + * @memberof google.cloud.dataform.v1beta1.MoveDirectoryRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.ListCompilationResultsRequest} ListCompilationResultsRequest + * @returns {google.cloud.dataform.v1beta1.MoveDirectoryRequest} MoveDirectoryRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListCompilationResultsRequest.decodeDelimited = function decodeDelimited(reader) { + MoveDirectoryRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListCompilationResultsRequest message. + * Verifies a MoveDirectoryRequest message. * @function verify - * @memberof google.cloud.dataform.v1beta1.ListCompilationResultsRequest + * @memberof google.cloud.dataform.v1beta1.MoveDirectoryRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListCompilationResultsRequest.verify = function verify(message) { + MoveDirectoryRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; + if (message.workspace != null && message.hasOwnProperty("workspace")) + if (!$util.isString(message.workspace)) + return "workspace: string expected"; + if (message.path != null && message.hasOwnProperty("path")) + if (!$util.isString(message.path)) + return "path: string expected"; + if (message.newPath != null && message.hasOwnProperty("newPath")) + if (!$util.isString(message.newPath)) + return "newPath: string expected"; return null; }; /** - * Creates a ListCompilationResultsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MoveDirectoryRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dataform.v1beta1.ListCompilationResultsRequest + * @memberof google.cloud.dataform.v1beta1.MoveDirectoryRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.ListCompilationResultsRequest} ListCompilationResultsRequest + * @returns {google.cloud.dataform.v1beta1.MoveDirectoryRequest} MoveDirectoryRequest */ - ListCompilationResultsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.ListCompilationResultsRequest) + MoveDirectoryRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.MoveDirectoryRequest) return object; - var message = new $root.google.cloud.dataform.v1beta1.ListCompilationResultsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + var message = new $root.google.cloud.dataform.v1beta1.MoveDirectoryRequest(); + if (object.workspace != null) + message.workspace = String(object.workspace); + if (object.path != null) + message.path = String(object.path); + if (object.newPath != null) + message.newPath = String(object.newPath); return message; }; /** - * Creates a plain object from a ListCompilationResultsRequest message. Also converts values to other types if specified. + * Creates a plain object from a MoveDirectoryRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dataform.v1beta1.ListCompilationResultsRequest + * @memberof google.cloud.dataform.v1beta1.MoveDirectoryRequest * @static - * @param {google.cloud.dataform.v1beta1.ListCompilationResultsRequest} message ListCompilationResultsRequest + * @param {google.cloud.dataform.v1beta1.MoveDirectoryRequest} message MoveDirectoryRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListCompilationResultsRequest.toObject = function toObject(message, options) { + MoveDirectoryRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; + object.workspace = ""; + object.path = ""; + object.newPath = ""; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; + if (message.workspace != null && message.hasOwnProperty("workspace")) + object.workspace = message.workspace; + if (message.path != null && message.hasOwnProperty("path")) + object.path = message.path; + if (message.newPath != null && message.hasOwnProperty("newPath")) + object.newPath = message.newPath; return object; }; /** - * Converts this ListCompilationResultsRequest to JSON. + * Converts this MoveDirectoryRequest to JSON. * @function toJSON - * @memberof google.cloud.dataform.v1beta1.ListCompilationResultsRequest + * @memberof google.cloud.dataform.v1beta1.MoveDirectoryRequest * @instance * @returns {Object.} JSON object */ - ListCompilationResultsRequest.prototype.toJSON = function toJSON() { + MoveDirectoryRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListCompilationResultsRequest + * Gets the default type url for MoveDirectoryRequest * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.ListCompilationResultsRequest + * @memberof google.cloud.dataform.v1beta1.MoveDirectoryRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListCompilationResultsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MoveDirectoryRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.ListCompilationResultsRequest"; + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.MoveDirectoryRequest"; }; - return ListCompilationResultsRequest; + return MoveDirectoryRequest; })(); - v1beta1.ListCompilationResultsResponse = (function() { + v1beta1.MoveDirectoryResponse = (function() { /** - * Properties of a ListCompilationResultsResponse. + * Properties of a MoveDirectoryResponse. * @memberof google.cloud.dataform.v1beta1 - * @interface IListCompilationResultsResponse - * @property {Array.|null} [compilationResults] ListCompilationResultsResponse compilationResults - * @property {string|null} [nextPageToken] ListCompilationResultsResponse nextPageToken - * @property {Array.|null} [unreachable] ListCompilationResultsResponse unreachable + * @interface IMoveDirectoryResponse */ /** - * Constructs a new ListCompilationResultsResponse. + * Constructs a new MoveDirectoryResponse. * @memberof google.cloud.dataform.v1beta1 - * @classdesc Represents a ListCompilationResultsResponse. - * @implements IListCompilationResultsResponse + * @classdesc Represents a MoveDirectoryResponse. + * @implements IMoveDirectoryResponse * @constructor - * @param {google.cloud.dataform.v1beta1.IListCompilationResultsResponse=} [properties] Properties to set + * @param {google.cloud.dataform.v1beta1.IMoveDirectoryResponse=} [properties] Properties to set */ - function ListCompilationResultsResponse(properties) { - this.compilationResults = []; - this.unreachable = []; + function MoveDirectoryResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -33891,111 +35129,63 @@ } /** - * ListCompilationResultsResponse compilationResults. - * @member {Array.} compilationResults - * @memberof google.cloud.dataform.v1beta1.ListCompilationResultsResponse - * @instance - */ - ListCompilationResultsResponse.prototype.compilationResults = $util.emptyArray; - - /** - * ListCompilationResultsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dataform.v1beta1.ListCompilationResultsResponse - * @instance - */ - ListCompilationResultsResponse.prototype.nextPageToken = ""; - - /** - * ListCompilationResultsResponse unreachable. - * @member {Array.} unreachable - * @memberof google.cloud.dataform.v1beta1.ListCompilationResultsResponse - * @instance - */ - ListCompilationResultsResponse.prototype.unreachable = $util.emptyArray; - - /** - * Creates a new ListCompilationResultsResponse instance using the specified properties. + * Creates a new MoveDirectoryResponse instance using the specified properties. * @function create - * @memberof google.cloud.dataform.v1beta1.ListCompilationResultsResponse + * @memberof google.cloud.dataform.v1beta1.MoveDirectoryResponse * @static - * @param {google.cloud.dataform.v1beta1.IListCompilationResultsResponse=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.ListCompilationResultsResponse} ListCompilationResultsResponse instance + * @param {google.cloud.dataform.v1beta1.IMoveDirectoryResponse=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.MoveDirectoryResponse} MoveDirectoryResponse instance */ - ListCompilationResultsResponse.create = function create(properties) { - return new ListCompilationResultsResponse(properties); + MoveDirectoryResponse.create = function create(properties) { + return new MoveDirectoryResponse(properties); }; /** - * Encodes the specified ListCompilationResultsResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.ListCompilationResultsResponse.verify|verify} messages. + * Encodes the specified MoveDirectoryResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.MoveDirectoryResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dataform.v1beta1.ListCompilationResultsResponse + * @memberof google.cloud.dataform.v1beta1.MoveDirectoryResponse * @static - * @param {google.cloud.dataform.v1beta1.IListCompilationResultsResponse} message ListCompilationResultsResponse message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IMoveDirectoryResponse} message MoveDirectoryResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListCompilationResultsResponse.encode = function encode(message, writer) { + MoveDirectoryResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.compilationResults != null && message.compilationResults.length) - for (var i = 0; i < message.compilationResults.length; ++i) - $root.google.cloud.dataform.v1beta1.CompilationResult.encode(message.compilationResults[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); - if (message.unreachable != null && message.unreachable.length) - for (var i = 0; i < message.unreachable.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); return writer; }; /** - * Encodes the specified ListCompilationResultsResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.ListCompilationResultsResponse.verify|verify} messages. + * Encodes the specified MoveDirectoryResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.MoveDirectoryResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.ListCompilationResultsResponse + * @memberof google.cloud.dataform.v1beta1.MoveDirectoryResponse * @static - * @param {google.cloud.dataform.v1beta1.IListCompilationResultsResponse} message ListCompilationResultsResponse message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IMoveDirectoryResponse} message MoveDirectoryResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListCompilationResultsResponse.encodeDelimited = function encodeDelimited(message, writer) { + MoveDirectoryResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListCompilationResultsResponse message from the specified reader or buffer. + * Decodes a MoveDirectoryResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dataform.v1beta1.ListCompilationResultsResponse + * @memberof google.cloud.dataform.v1beta1.MoveDirectoryResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.ListCompilationResultsResponse} ListCompilationResultsResponse + * @returns {google.cloud.dataform.v1beta1.MoveDirectoryResponse} MoveDirectoryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListCompilationResultsResponse.decode = function decode(reader, length) { + MoveDirectoryResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.ListCompilationResultsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.MoveDirectoryResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.compilationResults && message.compilationResults.length)) - message.compilationResults = []; - message.compilationResults.push($root.google.cloud.dataform.v1beta1.CompilationResult.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); - break; - } - case 3: { - if (!(message.unreachable && message.unreachable.length)) - message.unreachable = []; - message.unreachable.push(reader.string()); - break; - } default: reader.skipType(tag & 7); break; @@ -34005,169 +35195,110 @@ }; /** - * Decodes a ListCompilationResultsResponse message from the specified reader or buffer, length delimited. + * Decodes a MoveDirectoryResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.ListCompilationResultsResponse + * @memberof google.cloud.dataform.v1beta1.MoveDirectoryResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.ListCompilationResultsResponse} ListCompilationResultsResponse + * @returns {google.cloud.dataform.v1beta1.MoveDirectoryResponse} MoveDirectoryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListCompilationResultsResponse.decodeDelimited = function decodeDelimited(reader) { + MoveDirectoryResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListCompilationResultsResponse message. + * Verifies a MoveDirectoryResponse message. * @function verify - * @memberof google.cloud.dataform.v1beta1.ListCompilationResultsResponse + * @memberof google.cloud.dataform.v1beta1.MoveDirectoryResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListCompilationResultsResponse.verify = function verify(message) { + MoveDirectoryResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.compilationResults != null && message.hasOwnProperty("compilationResults")) { - if (!Array.isArray(message.compilationResults)) - return "compilationResults: array expected"; - for (var i = 0; i < message.compilationResults.length; ++i) { - var error = $root.google.cloud.dataform.v1beta1.CompilationResult.verify(message.compilationResults[i]); - if (error) - return "compilationResults." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - if (message.unreachable != null && message.hasOwnProperty("unreachable")) { - if (!Array.isArray(message.unreachable)) - return "unreachable: array expected"; - for (var i = 0; i < message.unreachable.length; ++i) - if (!$util.isString(message.unreachable[i])) - return "unreachable: string[] expected"; - } return null; }; /** - * Creates a ListCompilationResultsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MoveDirectoryResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dataform.v1beta1.ListCompilationResultsResponse + * @memberof google.cloud.dataform.v1beta1.MoveDirectoryResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.ListCompilationResultsResponse} ListCompilationResultsResponse + * @returns {google.cloud.dataform.v1beta1.MoveDirectoryResponse} MoveDirectoryResponse */ - ListCompilationResultsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.ListCompilationResultsResponse) + MoveDirectoryResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.MoveDirectoryResponse) return object; - var message = new $root.google.cloud.dataform.v1beta1.ListCompilationResultsResponse(); - if (object.compilationResults) { - if (!Array.isArray(object.compilationResults)) - throw TypeError(".google.cloud.dataform.v1beta1.ListCompilationResultsResponse.compilationResults: array expected"); - message.compilationResults = []; - for (var i = 0; i < object.compilationResults.length; ++i) { - if (typeof object.compilationResults[i] !== "object") - throw TypeError(".google.cloud.dataform.v1beta1.ListCompilationResultsResponse.compilationResults: object expected"); - message.compilationResults[i] = $root.google.cloud.dataform.v1beta1.CompilationResult.fromObject(object.compilationResults[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - if (object.unreachable) { - if (!Array.isArray(object.unreachable)) - throw TypeError(".google.cloud.dataform.v1beta1.ListCompilationResultsResponse.unreachable: array expected"); - message.unreachable = []; - for (var i = 0; i < object.unreachable.length; ++i) - message.unreachable[i] = String(object.unreachable[i]); - } - return message; + return new $root.google.cloud.dataform.v1beta1.MoveDirectoryResponse(); }; /** - * Creates a plain object from a ListCompilationResultsResponse message. Also converts values to other types if specified. + * Creates a plain object from a MoveDirectoryResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dataform.v1beta1.ListCompilationResultsResponse + * @memberof google.cloud.dataform.v1beta1.MoveDirectoryResponse * @static - * @param {google.cloud.dataform.v1beta1.ListCompilationResultsResponse} message ListCompilationResultsResponse + * @param {google.cloud.dataform.v1beta1.MoveDirectoryResponse} message MoveDirectoryResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListCompilationResultsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.compilationResults = []; - object.unreachable = []; - } - if (options.defaults) - object.nextPageToken = ""; - if (message.compilationResults && message.compilationResults.length) { - object.compilationResults = []; - for (var j = 0; j < message.compilationResults.length; ++j) - object.compilationResults[j] = $root.google.cloud.dataform.v1beta1.CompilationResult.toObject(message.compilationResults[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - if (message.unreachable && message.unreachable.length) { - object.unreachable = []; - for (var j = 0; j < message.unreachable.length; ++j) - object.unreachable[j] = message.unreachable[j]; - } - return object; + MoveDirectoryResponse.toObject = function toObject() { + return {}; }; /** - * Converts this ListCompilationResultsResponse to JSON. + * Converts this MoveDirectoryResponse to JSON. * @function toJSON - * @memberof google.cloud.dataform.v1beta1.ListCompilationResultsResponse + * @memberof google.cloud.dataform.v1beta1.MoveDirectoryResponse * @instance * @returns {Object.} JSON object */ - ListCompilationResultsResponse.prototype.toJSON = function toJSON() { + MoveDirectoryResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListCompilationResultsResponse + * Gets the default type url for MoveDirectoryResponse * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.ListCompilationResultsResponse + * @memberof google.cloud.dataform.v1beta1.MoveDirectoryResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListCompilationResultsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MoveDirectoryResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.ListCompilationResultsResponse"; + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.MoveDirectoryResponse"; }; - return ListCompilationResultsResponse; + return MoveDirectoryResponse; })(); - v1beta1.GetCompilationResultRequest = (function() { + v1beta1.ReadFileRequest = (function() { /** - * Properties of a GetCompilationResultRequest. + * Properties of a ReadFileRequest. * @memberof google.cloud.dataform.v1beta1 - * @interface IGetCompilationResultRequest - * @property {string|null} [name] GetCompilationResultRequest name + * @interface IReadFileRequest + * @property {string|null} [workspace] ReadFileRequest workspace + * @property {string|null} [path] ReadFileRequest path */ /** - * Constructs a new GetCompilationResultRequest. + * Constructs a new ReadFileRequest. * @memberof google.cloud.dataform.v1beta1 - * @classdesc Represents a GetCompilationResultRequest. - * @implements IGetCompilationResultRequest + * @classdesc Represents a ReadFileRequest. + * @implements IReadFileRequest * @constructor - * @param {google.cloud.dataform.v1beta1.IGetCompilationResultRequest=} [properties] Properties to set + * @param {google.cloud.dataform.v1beta1.IReadFileRequest=} [properties] Properties to set */ - function GetCompilationResultRequest(properties) { + function ReadFileRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -34175,75 +35306,89 @@ } /** - * GetCompilationResultRequest name. - * @member {string} name - * @memberof google.cloud.dataform.v1beta1.GetCompilationResultRequest + * ReadFileRequest workspace. + * @member {string} workspace + * @memberof google.cloud.dataform.v1beta1.ReadFileRequest * @instance */ - GetCompilationResultRequest.prototype.name = ""; + ReadFileRequest.prototype.workspace = ""; /** - * Creates a new GetCompilationResultRequest instance using the specified properties. + * ReadFileRequest path. + * @member {string} path + * @memberof google.cloud.dataform.v1beta1.ReadFileRequest + * @instance + */ + ReadFileRequest.prototype.path = ""; + + /** + * Creates a new ReadFileRequest instance using the specified properties. * @function create - * @memberof google.cloud.dataform.v1beta1.GetCompilationResultRequest + * @memberof google.cloud.dataform.v1beta1.ReadFileRequest * @static - * @param {google.cloud.dataform.v1beta1.IGetCompilationResultRequest=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.GetCompilationResultRequest} GetCompilationResultRequest instance + * @param {google.cloud.dataform.v1beta1.IReadFileRequest=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.ReadFileRequest} ReadFileRequest instance */ - GetCompilationResultRequest.create = function create(properties) { - return new GetCompilationResultRequest(properties); + ReadFileRequest.create = function create(properties) { + return new ReadFileRequest(properties); }; /** - * Encodes the specified GetCompilationResultRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.GetCompilationResultRequest.verify|verify} messages. + * Encodes the specified ReadFileRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.ReadFileRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dataform.v1beta1.GetCompilationResultRequest + * @memberof google.cloud.dataform.v1beta1.ReadFileRequest * @static - * @param {google.cloud.dataform.v1beta1.IGetCompilationResultRequest} message GetCompilationResultRequest message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IReadFileRequest} message ReadFileRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetCompilationResultRequest.encode = function encode(message, writer) { + ReadFileRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.workspace != null && Object.hasOwnProperty.call(message, "workspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.workspace); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); return writer; }; /** - * Encodes the specified GetCompilationResultRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.GetCompilationResultRequest.verify|verify} messages. + * Encodes the specified ReadFileRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.ReadFileRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.GetCompilationResultRequest + * @memberof google.cloud.dataform.v1beta1.ReadFileRequest * @static - * @param {google.cloud.dataform.v1beta1.IGetCompilationResultRequest} message GetCompilationResultRequest message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IReadFileRequest} message ReadFileRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetCompilationResultRequest.encodeDelimited = function encodeDelimited(message, writer) { + ReadFileRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetCompilationResultRequest message from the specified reader or buffer. + * Decodes a ReadFileRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dataform.v1beta1.GetCompilationResultRequest + * @memberof google.cloud.dataform.v1beta1.ReadFileRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.GetCompilationResultRequest} GetCompilationResultRequest + * @returns {google.cloud.dataform.v1beta1.ReadFileRequest} ReadFileRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetCompilationResultRequest.decode = function decode(reader, length) { + ReadFileRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.GetCompilationResultRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.ReadFileRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.workspace = reader.string(); + break; + } + case 2: { + message.path = reader.string(); break; } default: @@ -34255,123 +35400,131 @@ }; /** - * Decodes a GetCompilationResultRequest message from the specified reader or buffer, length delimited. + * Decodes a ReadFileRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.GetCompilationResultRequest + * @memberof google.cloud.dataform.v1beta1.ReadFileRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.GetCompilationResultRequest} GetCompilationResultRequest + * @returns {google.cloud.dataform.v1beta1.ReadFileRequest} ReadFileRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetCompilationResultRequest.decodeDelimited = function decodeDelimited(reader) { + ReadFileRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetCompilationResultRequest message. + * Verifies a ReadFileRequest message. * @function verify - * @memberof google.cloud.dataform.v1beta1.GetCompilationResultRequest + * @memberof google.cloud.dataform.v1beta1.ReadFileRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetCompilationResultRequest.verify = function verify(message) { + ReadFileRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.workspace != null && message.hasOwnProperty("workspace")) + if (!$util.isString(message.workspace)) + return "workspace: string expected"; + if (message.path != null && message.hasOwnProperty("path")) + if (!$util.isString(message.path)) + return "path: string expected"; return null; }; /** - * Creates a GetCompilationResultRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ReadFileRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dataform.v1beta1.GetCompilationResultRequest + * @memberof google.cloud.dataform.v1beta1.ReadFileRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.GetCompilationResultRequest} GetCompilationResultRequest + * @returns {google.cloud.dataform.v1beta1.ReadFileRequest} ReadFileRequest */ - GetCompilationResultRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.GetCompilationResultRequest) + ReadFileRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.ReadFileRequest) return object; - var message = new $root.google.cloud.dataform.v1beta1.GetCompilationResultRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.dataform.v1beta1.ReadFileRequest(); + if (object.workspace != null) + message.workspace = String(object.workspace); + if (object.path != null) + message.path = String(object.path); return message; }; /** - * Creates a plain object from a GetCompilationResultRequest message. Also converts values to other types if specified. + * Creates a plain object from a ReadFileRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dataform.v1beta1.GetCompilationResultRequest + * @memberof google.cloud.dataform.v1beta1.ReadFileRequest * @static - * @param {google.cloud.dataform.v1beta1.GetCompilationResultRequest} message GetCompilationResultRequest + * @param {google.cloud.dataform.v1beta1.ReadFileRequest} message ReadFileRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetCompilationResultRequest.toObject = function toObject(message, options) { + ReadFileRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.workspace = ""; + object.path = ""; + } + if (message.workspace != null && message.hasOwnProperty("workspace")) + object.workspace = message.workspace; + if (message.path != null && message.hasOwnProperty("path")) + object.path = message.path; return object; }; /** - * Converts this GetCompilationResultRequest to JSON. + * Converts this ReadFileRequest to JSON. * @function toJSON - * @memberof google.cloud.dataform.v1beta1.GetCompilationResultRequest + * @memberof google.cloud.dataform.v1beta1.ReadFileRequest * @instance * @returns {Object.} JSON object */ - GetCompilationResultRequest.prototype.toJSON = function toJSON() { + ReadFileRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetCompilationResultRequest + * Gets the default type url for ReadFileRequest * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.GetCompilationResultRequest + * @memberof google.cloud.dataform.v1beta1.ReadFileRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetCompilationResultRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReadFileRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.GetCompilationResultRequest"; + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.ReadFileRequest"; }; - return GetCompilationResultRequest; + return ReadFileRequest; })(); - v1beta1.CreateCompilationResultRequest = (function() { + v1beta1.ReadFileResponse = (function() { /** - * Properties of a CreateCompilationResultRequest. + * Properties of a ReadFileResponse. * @memberof google.cloud.dataform.v1beta1 - * @interface ICreateCompilationResultRequest - * @property {string|null} [parent] CreateCompilationResultRequest parent - * @property {google.cloud.dataform.v1beta1.ICompilationResult|null} [compilationResult] CreateCompilationResultRequest compilationResult + * @interface IReadFileResponse + * @property {Uint8Array|null} [fileContents] ReadFileResponse fileContents */ /** - * Constructs a new CreateCompilationResultRequest. + * Constructs a new ReadFileResponse. * @memberof google.cloud.dataform.v1beta1 - * @classdesc Represents a CreateCompilationResultRequest. - * @implements ICreateCompilationResultRequest + * @classdesc Represents a ReadFileResponse. + * @implements IReadFileResponse * @constructor - * @param {google.cloud.dataform.v1beta1.ICreateCompilationResultRequest=} [properties] Properties to set + * @param {google.cloud.dataform.v1beta1.IReadFileResponse=} [properties] Properties to set */ - function CreateCompilationResultRequest(properties) { + function ReadFileResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -34379,89 +35532,75 @@ } /** - * CreateCompilationResultRequest parent. - * @member {string} parent - * @memberof google.cloud.dataform.v1beta1.CreateCompilationResultRequest - * @instance - */ - CreateCompilationResultRequest.prototype.parent = ""; - - /** - * CreateCompilationResultRequest compilationResult. - * @member {google.cloud.dataform.v1beta1.ICompilationResult|null|undefined} compilationResult - * @memberof google.cloud.dataform.v1beta1.CreateCompilationResultRequest + * ReadFileResponse fileContents. + * @member {Uint8Array} fileContents + * @memberof google.cloud.dataform.v1beta1.ReadFileResponse * @instance */ - CreateCompilationResultRequest.prototype.compilationResult = null; + ReadFileResponse.prototype.fileContents = $util.newBuffer([]); /** - * Creates a new CreateCompilationResultRequest instance using the specified properties. + * Creates a new ReadFileResponse instance using the specified properties. * @function create - * @memberof google.cloud.dataform.v1beta1.CreateCompilationResultRequest + * @memberof google.cloud.dataform.v1beta1.ReadFileResponse * @static - * @param {google.cloud.dataform.v1beta1.ICreateCompilationResultRequest=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.CreateCompilationResultRequest} CreateCompilationResultRequest instance + * @param {google.cloud.dataform.v1beta1.IReadFileResponse=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.ReadFileResponse} ReadFileResponse instance */ - CreateCompilationResultRequest.create = function create(properties) { - return new CreateCompilationResultRequest(properties); + ReadFileResponse.create = function create(properties) { + return new ReadFileResponse(properties); }; /** - * Encodes the specified CreateCompilationResultRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.CreateCompilationResultRequest.verify|verify} messages. + * Encodes the specified ReadFileResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.ReadFileResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dataform.v1beta1.CreateCompilationResultRequest + * @memberof google.cloud.dataform.v1beta1.ReadFileResponse * @static - * @param {google.cloud.dataform.v1beta1.ICreateCompilationResultRequest} message CreateCompilationResultRequest message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IReadFileResponse} message ReadFileResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateCompilationResultRequest.encode = function encode(message, writer) { + ReadFileResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.compilationResult != null && Object.hasOwnProperty.call(message, "compilationResult")) - $root.google.cloud.dataform.v1beta1.CompilationResult.encode(message.compilationResult, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.fileContents != null && Object.hasOwnProperty.call(message, "fileContents")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.fileContents); return writer; }; /** - * Encodes the specified CreateCompilationResultRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CreateCompilationResultRequest.verify|verify} messages. + * Encodes the specified ReadFileResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.ReadFileResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.CreateCompilationResultRequest + * @memberof google.cloud.dataform.v1beta1.ReadFileResponse * @static - * @param {google.cloud.dataform.v1beta1.ICreateCompilationResultRequest} message CreateCompilationResultRequest message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IReadFileResponse} message ReadFileResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateCompilationResultRequest.encodeDelimited = function encodeDelimited(message, writer) { + ReadFileResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateCompilationResultRequest message from the specified reader or buffer. + * Decodes a ReadFileResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dataform.v1beta1.CreateCompilationResultRequest + * @memberof google.cloud.dataform.v1beta1.ReadFileResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.CreateCompilationResultRequest} CreateCompilationResultRequest + * @returns {google.cloud.dataform.v1beta1.ReadFileResponse} ReadFileResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateCompilationResultRequest.decode = function decode(reader, length) { + ReadFileResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.CreateCompilationResultRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.ReadFileResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.compilationResult = $root.google.cloud.dataform.v1beta1.CompilationResult.decode(reader, reader.uint32()); + message.fileContents = reader.bytes(); break; } default: @@ -34473,138 +35612,132 @@ }; /** - * Decodes a CreateCompilationResultRequest message from the specified reader or buffer, length delimited. + * Decodes a ReadFileResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.CreateCompilationResultRequest + * @memberof google.cloud.dataform.v1beta1.ReadFileResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.CreateCompilationResultRequest} CreateCompilationResultRequest + * @returns {google.cloud.dataform.v1beta1.ReadFileResponse} ReadFileResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateCompilationResultRequest.decodeDelimited = function decodeDelimited(reader) { + ReadFileResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateCompilationResultRequest message. + * Verifies a ReadFileResponse message. * @function verify - * @memberof google.cloud.dataform.v1beta1.CreateCompilationResultRequest + * @memberof google.cloud.dataform.v1beta1.ReadFileResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateCompilationResultRequest.verify = function verify(message) { + ReadFileResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.compilationResult != null && message.hasOwnProperty("compilationResult")) { - var error = $root.google.cloud.dataform.v1beta1.CompilationResult.verify(message.compilationResult); - if (error) - return "compilationResult." + error; - } + if (message.fileContents != null && message.hasOwnProperty("fileContents")) + if (!(message.fileContents && typeof message.fileContents.length === "number" || $util.isString(message.fileContents))) + return "fileContents: buffer expected"; return null; }; /** - * Creates a CreateCompilationResultRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ReadFileResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dataform.v1beta1.CreateCompilationResultRequest + * @memberof google.cloud.dataform.v1beta1.ReadFileResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.CreateCompilationResultRequest} CreateCompilationResultRequest + * @returns {google.cloud.dataform.v1beta1.ReadFileResponse} ReadFileResponse */ - CreateCompilationResultRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.CreateCompilationResultRequest) + ReadFileResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.ReadFileResponse) return object; - var message = new $root.google.cloud.dataform.v1beta1.CreateCompilationResultRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.compilationResult != null) { - if (typeof object.compilationResult !== "object") - throw TypeError(".google.cloud.dataform.v1beta1.CreateCompilationResultRequest.compilationResult: object expected"); - message.compilationResult = $root.google.cloud.dataform.v1beta1.CompilationResult.fromObject(object.compilationResult); - } + var message = new $root.google.cloud.dataform.v1beta1.ReadFileResponse(); + if (object.fileContents != null) + if (typeof object.fileContents === "string") + $util.base64.decode(object.fileContents, message.fileContents = $util.newBuffer($util.base64.length(object.fileContents)), 0); + else if (object.fileContents.length >= 0) + message.fileContents = object.fileContents; return message; }; /** - * Creates a plain object from a CreateCompilationResultRequest message. Also converts values to other types if specified. + * Creates a plain object from a ReadFileResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dataform.v1beta1.CreateCompilationResultRequest + * @memberof google.cloud.dataform.v1beta1.ReadFileResponse * @static - * @param {google.cloud.dataform.v1beta1.CreateCompilationResultRequest} message CreateCompilationResultRequest + * @param {google.cloud.dataform.v1beta1.ReadFileResponse} message ReadFileResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateCompilationResultRequest.toObject = function toObject(message, options) { + ReadFileResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.compilationResult = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.compilationResult != null && message.hasOwnProperty("compilationResult")) - object.compilationResult = $root.google.cloud.dataform.v1beta1.CompilationResult.toObject(message.compilationResult, options); + if (options.defaults) + if (options.bytes === String) + object.fileContents = ""; + else { + object.fileContents = []; + if (options.bytes !== Array) + object.fileContents = $util.newBuffer(object.fileContents); + } + if (message.fileContents != null && message.hasOwnProperty("fileContents")) + object.fileContents = options.bytes === String ? $util.base64.encode(message.fileContents, 0, message.fileContents.length) : options.bytes === Array ? Array.prototype.slice.call(message.fileContents) : message.fileContents; return object; }; /** - * Converts this CreateCompilationResultRequest to JSON. + * Converts this ReadFileResponse to JSON. * @function toJSON - * @memberof google.cloud.dataform.v1beta1.CreateCompilationResultRequest + * @memberof google.cloud.dataform.v1beta1.ReadFileResponse * @instance * @returns {Object.} JSON object */ - CreateCompilationResultRequest.prototype.toJSON = function toJSON() { + ReadFileResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateCompilationResultRequest + * Gets the default type url for ReadFileResponse * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.CreateCompilationResultRequest + * @memberof google.cloud.dataform.v1beta1.ReadFileResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateCompilationResultRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReadFileResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.CreateCompilationResultRequest"; + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.ReadFileResponse"; }; - return CreateCompilationResultRequest; + return ReadFileResponse; })(); - v1beta1.Target = (function() { + v1beta1.RemoveFileRequest = (function() { /** - * Properties of a Target. + * Properties of a RemoveFileRequest. * @memberof google.cloud.dataform.v1beta1 - * @interface ITarget - * @property {string|null} [database] Target database - * @property {string|null} [schema] Target schema - * @property {string|null} [name] Target name + * @interface IRemoveFileRequest + * @property {string|null} [workspace] RemoveFileRequest workspace + * @property {string|null} [path] RemoveFileRequest path */ /** - * Constructs a new Target. + * Constructs a new RemoveFileRequest. * @memberof google.cloud.dataform.v1beta1 - * @classdesc Represents a Target. - * @implements ITarget + * @classdesc Represents a RemoveFileRequest. + * @implements IRemoveFileRequest * @constructor - * @param {google.cloud.dataform.v1beta1.ITarget=} [properties] Properties to set + * @param {google.cloud.dataform.v1beta1.IRemoveFileRequest=} [properties] Properties to set */ - function Target(properties) { + function RemoveFileRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -34612,103 +35745,89 @@ } /** - * Target database. - * @member {string} database - * @memberof google.cloud.dataform.v1beta1.Target + * RemoveFileRequest workspace. + * @member {string} workspace + * @memberof google.cloud.dataform.v1beta1.RemoveFileRequest * @instance */ - Target.prototype.database = ""; + RemoveFileRequest.prototype.workspace = ""; /** - * Target schema. - * @member {string} schema - * @memberof google.cloud.dataform.v1beta1.Target + * RemoveFileRequest path. + * @member {string} path + * @memberof google.cloud.dataform.v1beta1.RemoveFileRequest * @instance */ - Target.prototype.schema = ""; + RemoveFileRequest.prototype.path = ""; /** - * Target name. - * @member {string} name - * @memberof google.cloud.dataform.v1beta1.Target - * @instance - */ - Target.prototype.name = ""; - - /** - * Creates a new Target instance using the specified properties. + * Creates a new RemoveFileRequest instance using the specified properties. * @function create - * @memberof google.cloud.dataform.v1beta1.Target + * @memberof google.cloud.dataform.v1beta1.RemoveFileRequest * @static - * @param {google.cloud.dataform.v1beta1.ITarget=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.Target} Target instance + * @param {google.cloud.dataform.v1beta1.IRemoveFileRequest=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.RemoveFileRequest} RemoveFileRequest instance */ - Target.create = function create(properties) { - return new Target(properties); + RemoveFileRequest.create = function create(properties) { + return new RemoveFileRequest(properties); }; /** - * Encodes the specified Target message. Does not implicitly {@link google.cloud.dataform.v1beta1.Target.verify|verify} messages. + * Encodes the specified RemoveFileRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.RemoveFileRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dataform.v1beta1.Target + * @memberof google.cloud.dataform.v1beta1.RemoveFileRequest * @static - * @param {google.cloud.dataform.v1beta1.ITarget} message Target message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IRemoveFileRequest} message RemoveFileRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Target.encode = function encode(message, writer) { + RemoveFileRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.database != null && Object.hasOwnProperty.call(message, "database")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.database); - if (message.schema != null && Object.hasOwnProperty.call(message, "schema")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.schema); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.name); + if (message.workspace != null && Object.hasOwnProperty.call(message, "workspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.workspace); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); return writer; }; /** - * Encodes the specified Target message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.Target.verify|verify} messages. + * Encodes the specified RemoveFileRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.RemoveFileRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.Target + * @memberof google.cloud.dataform.v1beta1.RemoveFileRequest * @static - * @param {google.cloud.dataform.v1beta1.ITarget} message Target message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IRemoveFileRequest} message RemoveFileRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Target.encodeDelimited = function encodeDelimited(message, writer) { + RemoveFileRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Target message from the specified reader or buffer. + * Decodes a RemoveFileRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dataform.v1beta1.Target + * @memberof google.cloud.dataform.v1beta1.RemoveFileRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.Target} Target + * @returns {google.cloud.dataform.v1beta1.RemoveFileRequest} RemoveFileRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Target.decode = function decode(reader, length) { + RemoveFileRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.Target(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.RemoveFileRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.database = reader.string(); + message.workspace = reader.string(); break; } case 2: { - message.schema = reader.string(); - break; - } - case 3: { - message.name = reader.string(); + message.path = reader.string(); break; } default: @@ -34720,143 +35839,133 @@ }; /** - * Decodes a Target message from the specified reader or buffer, length delimited. + * Decodes a RemoveFileRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.Target + * @memberof google.cloud.dataform.v1beta1.RemoveFileRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.Target} Target + * @returns {google.cloud.dataform.v1beta1.RemoveFileRequest} RemoveFileRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Target.decodeDelimited = function decodeDelimited(reader) { + RemoveFileRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Target message. + * Verifies a RemoveFileRequest message. * @function verify - * @memberof google.cloud.dataform.v1beta1.Target + * @memberof google.cloud.dataform.v1beta1.RemoveFileRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Target.verify = function verify(message) { + RemoveFileRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.database != null && message.hasOwnProperty("database")) - if (!$util.isString(message.database)) - return "database: string expected"; - if (message.schema != null && message.hasOwnProperty("schema")) - if (!$util.isString(message.schema)) - return "schema: string expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.workspace != null && message.hasOwnProperty("workspace")) + if (!$util.isString(message.workspace)) + return "workspace: string expected"; + if (message.path != null && message.hasOwnProperty("path")) + if (!$util.isString(message.path)) + return "path: string expected"; return null; }; /** - * Creates a Target message from a plain object. Also converts values to their respective internal types. + * Creates a RemoveFileRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dataform.v1beta1.Target + * @memberof google.cloud.dataform.v1beta1.RemoveFileRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.Target} Target + * @returns {google.cloud.dataform.v1beta1.RemoveFileRequest} RemoveFileRequest */ - Target.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.Target) + RemoveFileRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.RemoveFileRequest) return object; - var message = new $root.google.cloud.dataform.v1beta1.Target(); - if (object.database != null) - message.database = String(object.database); - if (object.schema != null) - message.schema = String(object.schema); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.dataform.v1beta1.RemoveFileRequest(); + if (object.workspace != null) + message.workspace = String(object.workspace); + if (object.path != null) + message.path = String(object.path); return message; }; /** - * Creates a plain object from a Target message. Also converts values to other types if specified. + * Creates a plain object from a RemoveFileRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dataform.v1beta1.Target + * @memberof google.cloud.dataform.v1beta1.RemoveFileRequest * @static - * @param {google.cloud.dataform.v1beta1.Target} message Target + * @param {google.cloud.dataform.v1beta1.RemoveFileRequest} message RemoveFileRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Target.toObject = function toObject(message, options) { + RemoveFileRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.database = ""; - object.schema = ""; - object.name = ""; + object.workspace = ""; + object.path = ""; } - if (message.database != null && message.hasOwnProperty("database")) - object.database = message.database; - if (message.schema != null && message.hasOwnProperty("schema")) - object.schema = message.schema; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (message.workspace != null && message.hasOwnProperty("workspace")) + object.workspace = message.workspace; + if (message.path != null && message.hasOwnProperty("path")) + object.path = message.path; return object; }; /** - * Converts this Target to JSON. + * Converts this RemoveFileRequest to JSON. * @function toJSON - * @memberof google.cloud.dataform.v1beta1.Target + * @memberof google.cloud.dataform.v1beta1.RemoveFileRequest * @instance * @returns {Object.} JSON object */ - Target.prototype.toJSON = function toJSON() { + RemoveFileRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Target + * Gets the default type url for RemoveFileRequest * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.Target + * @memberof google.cloud.dataform.v1beta1.RemoveFileRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Target.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RemoveFileRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.Target"; + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.RemoveFileRequest"; }; - return Target; + return RemoveFileRequest; })(); - v1beta1.RelationDescriptor = (function() { + v1beta1.MoveFileRequest = (function() { /** - * Properties of a RelationDescriptor. + * Properties of a MoveFileRequest. * @memberof google.cloud.dataform.v1beta1 - * @interface IRelationDescriptor - * @property {string|null} [description] RelationDescriptor description - * @property {Array.|null} [columns] RelationDescriptor columns - * @property {Object.|null} [bigqueryLabels] RelationDescriptor bigqueryLabels + * @interface IMoveFileRequest + * @property {string|null} [workspace] MoveFileRequest workspace + * @property {string|null} [path] MoveFileRequest path + * @property {string|null} [newPath] MoveFileRequest newPath */ /** - * Constructs a new RelationDescriptor. + * Constructs a new MoveFileRequest. * @memberof google.cloud.dataform.v1beta1 - * @classdesc Represents a RelationDescriptor. - * @implements IRelationDescriptor + * @classdesc Represents a MoveFileRequest. + * @implements IMoveFileRequest * @constructor - * @param {google.cloud.dataform.v1beta1.IRelationDescriptor=} [properties] Properties to set + * @param {google.cloud.dataform.v1beta1.IMoveFileRequest=} [properties] Properties to set */ - function RelationDescriptor(properties) { - this.columns = []; - this.bigqueryLabels = {}; + function MoveFileRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -34864,126 +35973,103 @@ } /** - * RelationDescriptor description. - * @member {string} description - * @memberof google.cloud.dataform.v1beta1.RelationDescriptor + * MoveFileRequest workspace. + * @member {string} workspace + * @memberof google.cloud.dataform.v1beta1.MoveFileRequest * @instance */ - RelationDescriptor.prototype.description = ""; + MoveFileRequest.prototype.workspace = ""; /** - * RelationDescriptor columns. - * @member {Array.} columns - * @memberof google.cloud.dataform.v1beta1.RelationDescriptor + * MoveFileRequest path. + * @member {string} path + * @memberof google.cloud.dataform.v1beta1.MoveFileRequest * @instance */ - RelationDescriptor.prototype.columns = $util.emptyArray; + MoveFileRequest.prototype.path = ""; /** - * RelationDescriptor bigqueryLabels. - * @member {Object.} bigqueryLabels - * @memberof google.cloud.dataform.v1beta1.RelationDescriptor + * MoveFileRequest newPath. + * @member {string} newPath + * @memberof google.cloud.dataform.v1beta1.MoveFileRequest * @instance */ - RelationDescriptor.prototype.bigqueryLabels = $util.emptyObject; + MoveFileRequest.prototype.newPath = ""; /** - * Creates a new RelationDescriptor instance using the specified properties. + * Creates a new MoveFileRequest instance using the specified properties. * @function create - * @memberof google.cloud.dataform.v1beta1.RelationDescriptor + * @memberof google.cloud.dataform.v1beta1.MoveFileRequest * @static - * @param {google.cloud.dataform.v1beta1.IRelationDescriptor=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.RelationDescriptor} RelationDescriptor instance + * @param {google.cloud.dataform.v1beta1.IMoveFileRequest=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.MoveFileRequest} MoveFileRequest instance */ - RelationDescriptor.create = function create(properties) { - return new RelationDescriptor(properties); + MoveFileRequest.create = function create(properties) { + return new MoveFileRequest(properties); }; /** - * Encodes the specified RelationDescriptor message. Does not implicitly {@link google.cloud.dataform.v1beta1.RelationDescriptor.verify|verify} messages. + * Encodes the specified MoveFileRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.MoveFileRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dataform.v1beta1.RelationDescriptor + * @memberof google.cloud.dataform.v1beta1.MoveFileRequest * @static - * @param {google.cloud.dataform.v1beta1.IRelationDescriptor} message RelationDescriptor message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IMoveFileRequest} message MoveFileRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RelationDescriptor.encode = function encode(message, writer) { + MoveFileRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.description); - if (message.columns != null && message.columns.length) - for (var i = 0; i < message.columns.length; ++i) - $root.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor.encode(message.columns[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.bigqueryLabels != null && Object.hasOwnProperty.call(message, "bigqueryLabels")) - for (var keys = Object.keys(message.bigqueryLabels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.bigqueryLabels[keys[i]]).ldelim(); + if (message.workspace != null && Object.hasOwnProperty.call(message, "workspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.workspace); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); + if (message.newPath != null && Object.hasOwnProperty.call(message, "newPath")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.newPath); return writer; }; /** - * Encodes the specified RelationDescriptor message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.RelationDescriptor.verify|verify} messages. + * Encodes the specified MoveFileRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.MoveFileRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.RelationDescriptor + * @memberof google.cloud.dataform.v1beta1.MoveFileRequest * @static - * @param {google.cloud.dataform.v1beta1.IRelationDescriptor} message RelationDescriptor message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IMoveFileRequest} message MoveFileRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RelationDescriptor.encodeDelimited = function encodeDelimited(message, writer) { + MoveFileRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RelationDescriptor message from the specified reader or buffer. + * Decodes a MoveFileRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dataform.v1beta1.RelationDescriptor + * @memberof google.cloud.dataform.v1beta1.MoveFileRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.RelationDescriptor} RelationDescriptor + * @returns {google.cloud.dataform.v1beta1.MoveFileRequest} MoveFileRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RelationDescriptor.decode = function decode(reader, length) { + MoveFileRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.RelationDescriptor(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.MoveFileRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.description = reader.string(); + message.workspace = reader.string(); break; } case 2: { - if (!(message.columns && message.columns.length)) - message.columns = []; - message.columns.push($root.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor.decode(reader, reader.uint32())); + message.path = reader.string(); break; } case 3: { - if (message.bigqueryLabels === $util.emptyObject) - message.bigqueryLabels = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.bigqueryLabels[key] = value; + message.newPath = reader.string(); break; } default: @@ -34995,460 +36081,316 @@ }; /** - * Decodes a RelationDescriptor message from the specified reader or buffer, length delimited. + * Decodes a MoveFileRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.RelationDescriptor + * @memberof google.cloud.dataform.v1beta1.MoveFileRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.RelationDescriptor} RelationDescriptor + * @returns {google.cloud.dataform.v1beta1.MoveFileRequest} MoveFileRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RelationDescriptor.decodeDelimited = function decodeDelimited(reader) { + MoveFileRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RelationDescriptor message. + * Verifies a MoveFileRequest message. * @function verify - * @memberof google.cloud.dataform.v1beta1.RelationDescriptor + * @memberof google.cloud.dataform.v1beta1.MoveFileRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RelationDescriptor.verify = function verify(message) { + MoveFileRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.columns != null && message.hasOwnProperty("columns")) { - if (!Array.isArray(message.columns)) - return "columns: array expected"; - for (var i = 0; i < message.columns.length; ++i) { - var error = $root.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor.verify(message.columns[i]); - if (error) - return "columns." + error; - } - } - if (message.bigqueryLabels != null && message.hasOwnProperty("bigqueryLabels")) { - if (!$util.isObject(message.bigqueryLabels)) - return "bigqueryLabels: object expected"; - var key = Object.keys(message.bigqueryLabels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.bigqueryLabels[key[i]])) - return "bigqueryLabels: string{k:string} expected"; - } + if (message.workspace != null && message.hasOwnProperty("workspace")) + if (!$util.isString(message.workspace)) + return "workspace: string expected"; + if (message.path != null && message.hasOwnProperty("path")) + if (!$util.isString(message.path)) + return "path: string expected"; + if (message.newPath != null && message.hasOwnProperty("newPath")) + if (!$util.isString(message.newPath)) + return "newPath: string expected"; return null; }; /** - * Creates a RelationDescriptor message from a plain object. Also converts values to their respective internal types. + * Creates a MoveFileRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dataform.v1beta1.RelationDescriptor + * @memberof google.cloud.dataform.v1beta1.MoveFileRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.RelationDescriptor} RelationDescriptor + * @returns {google.cloud.dataform.v1beta1.MoveFileRequest} MoveFileRequest */ - RelationDescriptor.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.RelationDescriptor) + MoveFileRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.MoveFileRequest) return object; - var message = new $root.google.cloud.dataform.v1beta1.RelationDescriptor(); - if (object.description != null) - message.description = String(object.description); - if (object.columns) { - if (!Array.isArray(object.columns)) - throw TypeError(".google.cloud.dataform.v1beta1.RelationDescriptor.columns: array expected"); - message.columns = []; - for (var i = 0; i < object.columns.length; ++i) { - if (typeof object.columns[i] !== "object") - throw TypeError(".google.cloud.dataform.v1beta1.RelationDescriptor.columns: object expected"); - message.columns[i] = $root.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor.fromObject(object.columns[i]); - } - } - if (object.bigqueryLabels) { - if (typeof object.bigqueryLabels !== "object") - throw TypeError(".google.cloud.dataform.v1beta1.RelationDescriptor.bigqueryLabels: object expected"); - message.bigqueryLabels = {}; - for (var keys = Object.keys(object.bigqueryLabels), i = 0; i < keys.length; ++i) - message.bigqueryLabels[keys[i]] = String(object.bigqueryLabels[keys[i]]); - } + var message = new $root.google.cloud.dataform.v1beta1.MoveFileRequest(); + if (object.workspace != null) + message.workspace = String(object.workspace); + if (object.path != null) + message.path = String(object.path); + if (object.newPath != null) + message.newPath = String(object.newPath); return message; }; /** - * Creates a plain object from a RelationDescriptor message. Also converts values to other types if specified. + * Creates a plain object from a MoveFileRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dataform.v1beta1.RelationDescriptor + * @memberof google.cloud.dataform.v1beta1.MoveFileRequest * @static - * @param {google.cloud.dataform.v1beta1.RelationDescriptor} message RelationDescriptor + * @param {google.cloud.dataform.v1beta1.MoveFileRequest} message MoveFileRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RelationDescriptor.toObject = function toObject(message, options) { + MoveFileRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.columns = []; - if (options.objects || options.defaults) - object.bigqueryLabels = {}; - if (options.defaults) - object.description = ""; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.columns && message.columns.length) { - object.columns = []; - for (var j = 0; j < message.columns.length; ++j) - object.columns[j] = $root.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor.toObject(message.columns[j], options); - } - var keys2; - if (message.bigqueryLabels && (keys2 = Object.keys(message.bigqueryLabels)).length) { - object.bigqueryLabels = {}; - for (var j = 0; j < keys2.length; ++j) - object.bigqueryLabels[keys2[j]] = message.bigqueryLabels[keys2[j]]; + if (options.defaults) { + object.workspace = ""; + object.path = ""; + object.newPath = ""; } + if (message.workspace != null && message.hasOwnProperty("workspace")) + object.workspace = message.workspace; + if (message.path != null && message.hasOwnProperty("path")) + object.path = message.path; + if (message.newPath != null && message.hasOwnProperty("newPath")) + object.newPath = message.newPath; return object; }; /** - * Converts this RelationDescriptor to JSON. + * Converts this MoveFileRequest to JSON. * @function toJSON - * @memberof google.cloud.dataform.v1beta1.RelationDescriptor + * @memberof google.cloud.dataform.v1beta1.MoveFileRequest * @instance * @returns {Object.} JSON object */ - RelationDescriptor.prototype.toJSON = function toJSON() { + MoveFileRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RelationDescriptor + * Gets the default type url for MoveFileRequest * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.RelationDescriptor + * @memberof google.cloud.dataform.v1beta1.MoveFileRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RelationDescriptor.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MoveFileRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.RelationDescriptor"; + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.MoveFileRequest"; }; - RelationDescriptor.ColumnDescriptor = (function() { - - /** - * Properties of a ColumnDescriptor. - * @memberof google.cloud.dataform.v1beta1.RelationDescriptor - * @interface IColumnDescriptor - * @property {Array.|null} [path] ColumnDescriptor path - * @property {string|null} [description] ColumnDescriptor description - * @property {Array.|null} [bigqueryPolicyTags] ColumnDescriptor bigqueryPolicyTags - */ + return MoveFileRequest; + })(); - /** - * Constructs a new ColumnDescriptor. - * @memberof google.cloud.dataform.v1beta1.RelationDescriptor - * @classdesc Represents a ColumnDescriptor. - * @implements IColumnDescriptor - * @constructor - * @param {google.cloud.dataform.v1beta1.RelationDescriptor.IColumnDescriptor=} [properties] Properties to set - */ - function ColumnDescriptor(properties) { - this.path = []; - this.bigqueryPolicyTags = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + v1beta1.MoveFileResponse = (function() { - /** - * ColumnDescriptor path. - * @member {Array.} path - * @memberof google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor - * @instance - */ - ColumnDescriptor.prototype.path = $util.emptyArray; + /** + * Properties of a MoveFileResponse. + * @memberof google.cloud.dataform.v1beta1 + * @interface IMoveFileResponse + */ - /** - * ColumnDescriptor description. - * @member {string} description - * @memberof google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor - * @instance - */ - ColumnDescriptor.prototype.description = ""; + /** + * Constructs a new MoveFileResponse. + * @memberof google.cloud.dataform.v1beta1 + * @classdesc Represents a MoveFileResponse. + * @implements IMoveFileResponse + * @constructor + * @param {google.cloud.dataform.v1beta1.IMoveFileResponse=} [properties] Properties to set + */ + function MoveFileResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * ColumnDescriptor bigqueryPolicyTags. - * @member {Array.} bigqueryPolicyTags - * @memberof google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor - * @instance - */ - ColumnDescriptor.prototype.bigqueryPolicyTags = $util.emptyArray; + /** + * Creates a new MoveFileResponse instance using the specified properties. + * @function create + * @memberof google.cloud.dataform.v1beta1.MoveFileResponse + * @static + * @param {google.cloud.dataform.v1beta1.IMoveFileResponse=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.MoveFileResponse} MoveFileResponse instance + */ + MoveFileResponse.create = function create(properties) { + return new MoveFileResponse(properties); + }; - /** - * Creates a new ColumnDescriptor instance using the specified properties. - * @function create - * @memberof google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor - * @static - * @param {google.cloud.dataform.v1beta1.RelationDescriptor.IColumnDescriptor=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor} ColumnDescriptor instance - */ - ColumnDescriptor.create = function create(properties) { - return new ColumnDescriptor(properties); - }; + /** + * Encodes the specified MoveFileResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.MoveFileResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.dataform.v1beta1.MoveFileResponse + * @static + * @param {google.cloud.dataform.v1beta1.IMoveFileResponse} message MoveFileResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MoveFileResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; - /** - * Encodes the specified ColumnDescriptor message. Does not implicitly {@link google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor.verify|verify} messages. - * @function encode - * @memberof google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor - * @static - * @param {google.cloud.dataform.v1beta1.RelationDescriptor.IColumnDescriptor} message ColumnDescriptor message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ColumnDescriptor.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.path != null && message.path.length) - for (var i = 0; i < message.path.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.path[i]); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); - if (message.bigqueryPolicyTags != null && message.bigqueryPolicyTags.length) - for (var i = 0; i < message.bigqueryPolicyTags.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.bigqueryPolicyTags[i]); - return writer; - }; - - /** - * Encodes the specified ColumnDescriptor message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor - * @static - * @param {google.cloud.dataform.v1beta1.RelationDescriptor.IColumnDescriptor} message ColumnDescriptor message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ColumnDescriptor.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified MoveFileResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.MoveFileResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dataform.v1beta1.MoveFileResponse + * @static + * @param {google.cloud.dataform.v1beta1.IMoveFileResponse} message MoveFileResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MoveFileResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a ColumnDescriptor message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor} ColumnDescriptor - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ColumnDescriptor.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.path && message.path.length)) - message.path = []; - message.path.push(reader.string()); - break; - } - case 2: { - message.description = reader.string(); - break; - } - case 3: { - if (!(message.bigqueryPolicyTags && message.bigqueryPolicyTags.length)) - message.bigqueryPolicyTags = []; - message.bigqueryPolicyTags.push(reader.string()); - break; - } - default: - reader.skipType(tag & 7); - break; - } + /** + * Decodes a MoveFileResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dataform.v1beta1.MoveFileResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dataform.v1beta1.MoveFileResponse} MoveFileResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MoveFileResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.MoveFileResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a ColumnDescriptor message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor} ColumnDescriptor - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ColumnDescriptor.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a ColumnDescriptor message. - * @function verify - * @memberof google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ColumnDescriptor.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.path != null && message.hasOwnProperty("path")) { - if (!Array.isArray(message.path)) - return "path: array expected"; - for (var i = 0; i < message.path.length; ++i) - if (!$util.isString(message.path[i])) - return "path: string[] expected"; - } - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.bigqueryPolicyTags != null && message.hasOwnProperty("bigqueryPolicyTags")) { - if (!Array.isArray(message.bigqueryPolicyTags)) - return "bigqueryPolicyTags: array expected"; - for (var i = 0; i < message.bigqueryPolicyTags.length; ++i) - if (!$util.isString(message.bigqueryPolicyTags[i])) - return "bigqueryPolicyTags: string[] expected"; - } - return null; - }; + /** + * Decodes a MoveFileResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dataform.v1beta1.MoveFileResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dataform.v1beta1.MoveFileResponse} MoveFileResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MoveFileResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a ColumnDescriptor message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor} ColumnDescriptor - */ - ColumnDescriptor.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor) - return object; - var message = new $root.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor(); - if (object.path) { - if (!Array.isArray(object.path)) - throw TypeError(".google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor.path: array expected"); - message.path = []; - for (var i = 0; i < object.path.length; ++i) - message.path[i] = String(object.path[i]); - } - if (object.description != null) - message.description = String(object.description); - if (object.bigqueryPolicyTags) { - if (!Array.isArray(object.bigqueryPolicyTags)) - throw TypeError(".google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor.bigqueryPolicyTags: array expected"); - message.bigqueryPolicyTags = []; - for (var i = 0; i < object.bigqueryPolicyTags.length; ++i) - message.bigqueryPolicyTags[i] = String(object.bigqueryPolicyTags[i]); - } - return message; - }; + /** + * Verifies a MoveFileResponse message. + * @function verify + * @memberof google.cloud.dataform.v1beta1.MoveFileResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MoveFileResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; - /** - * Creates a plain object from a ColumnDescriptor message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor - * @static - * @param {google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor} message ColumnDescriptor - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ColumnDescriptor.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.path = []; - object.bigqueryPolicyTags = []; - } - if (options.defaults) - object.description = ""; - if (message.path && message.path.length) { - object.path = []; - for (var j = 0; j < message.path.length; ++j) - object.path[j] = message.path[j]; - } - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.bigqueryPolicyTags && message.bigqueryPolicyTags.length) { - object.bigqueryPolicyTags = []; - for (var j = 0; j < message.bigqueryPolicyTags.length; ++j) - object.bigqueryPolicyTags[j] = message.bigqueryPolicyTags[j]; - } + /** + * Creates a MoveFileResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dataform.v1beta1.MoveFileResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dataform.v1beta1.MoveFileResponse} MoveFileResponse + */ + MoveFileResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.MoveFileResponse) return object; - }; + return new $root.google.cloud.dataform.v1beta1.MoveFileResponse(); + }; - /** - * Converts this ColumnDescriptor to JSON. - * @function toJSON - * @memberof google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor - * @instance - * @returns {Object.} JSON object - */ - ColumnDescriptor.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a MoveFileResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dataform.v1beta1.MoveFileResponse + * @static + * @param {google.cloud.dataform.v1beta1.MoveFileResponse} message MoveFileResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MoveFileResponse.toObject = function toObject() { + return {}; + }; - /** - * Gets the default type url for ColumnDescriptor - * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ColumnDescriptor.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor"; - }; + /** + * Converts this MoveFileResponse to JSON. + * @function toJSON + * @memberof google.cloud.dataform.v1beta1.MoveFileResponse + * @instance + * @returns {Object.} JSON object + */ + MoveFileResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return ColumnDescriptor; - })(); + /** + * Gets the default type url for MoveFileResponse + * @function getTypeUrl + * @memberof google.cloud.dataform.v1beta1.MoveFileResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MoveFileResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.MoveFileResponse"; + }; - return RelationDescriptor; + return MoveFileResponse; })(); - v1beta1.CompilationResultAction = (function() { + v1beta1.WriteFileRequest = (function() { /** - * Properties of a CompilationResultAction. + * Properties of a WriteFileRequest. * @memberof google.cloud.dataform.v1beta1 - * @interface ICompilationResultAction - * @property {google.cloud.dataform.v1beta1.ITarget|null} [target] CompilationResultAction target - * @property {google.cloud.dataform.v1beta1.ITarget|null} [canonicalTarget] CompilationResultAction canonicalTarget - * @property {string|null} [filePath] CompilationResultAction filePath - * @property {google.cloud.dataform.v1beta1.CompilationResultAction.IRelation|null} [relation] CompilationResultAction relation - * @property {google.cloud.dataform.v1beta1.CompilationResultAction.IOperations|null} [operations] CompilationResultAction operations - * @property {google.cloud.dataform.v1beta1.CompilationResultAction.IAssertion|null} [assertion] CompilationResultAction assertion - * @property {google.cloud.dataform.v1beta1.CompilationResultAction.IDeclaration|null} [declaration] CompilationResultAction declaration + * @interface IWriteFileRequest + * @property {string|null} [workspace] WriteFileRequest workspace + * @property {string|null} [path] WriteFileRequest path + * @property {Uint8Array|null} [contents] WriteFileRequest contents */ /** - * Constructs a new CompilationResultAction. + * Constructs a new WriteFileRequest. * @memberof google.cloud.dataform.v1beta1 - * @classdesc Represents a CompilationResultAction. - * @implements ICompilationResultAction + * @classdesc Represents a WriteFileRequest. + * @implements IWriteFileRequest * @constructor - * @param {google.cloud.dataform.v1beta1.ICompilationResultAction=} [properties] Properties to set + * @param {google.cloud.dataform.v1beta1.IWriteFileRequest=} [properties] Properties to set */ - function CompilationResultAction(properties) { + function WriteFileRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -35456,173 +36398,103 @@ } /** - * CompilationResultAction target. - * @member {google.cloud.dataform.v1beta1.ITarget|null|undefined} target - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction - * @instance - */ - CompilationResultAction.prototype.target = null; - - /** - * CompilationResultAction canonicalTarget. - * @member {google.cloud.dataform.v1beta1.ITarget|null|undefined} canonicalTarget - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction - * @instance - */ - CompilationResultAction.prototype.canonicalTarget = null; - - /** - * CompilationResultAction filePath. - * @member {string} filePath - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction - * @instance - */ - CompilationResultAction.prototype.filePath = ""; - - /** - * CompilationResultAction relation. - * @member {google.cloud.dataform.v1beta1.CompilationResultAction.IRelation|null|undefined} relation - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction - * @instance - */ - CompilationResultAction.prototype.relation = null; - - /** - * CompilationResultAction operations. - * @member {google.cloud.dataform.v1beta1.CompilationResultAction.IOperations|null|undefined} operations - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction - * @instance - */ - CompilationResultAction.prototype.operations = null; - - /** - * CompilationResultAction assertion. - * @member {google.cloud.dataform.v1beta1.CompilationResultAction.IAssertion|null|undefined} assertion - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction + * WriteFileRequest workspace. + * @member {string} workspace + * @memberof google.cloud.dataform.v1beta1.WriteFileRequest * @instance */ - CompilationResultAction.prototype.assertion = null; + WriteFileRequest.prototype.workspace = ""; /** - * CompilationResultAction declaration. - * @member {google.cloud.dataform.v1beta1.CompilationResultAction.IDeclaration|null|undefined} declaration - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction + * WriteFileRequest path. + * @member {string} path + * @memberof google.cloud.dataform.v1beta1.WriteFileRequest * @instance */ - CompilationResultAction.prototype.declaration = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + WriteFileRequest.prototype.path = ""; /** - * CompilationResultAction compiledObject. - * @member {"relation"|"operations"|"assertion"|"declaration"|undefined} compiledObject - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction + * WriteFileRequest contents. + * @member {Uint8Array} contents + * @memberof google.cloud.dataform.v1beta1.WriteFileRequest * @instance */ - Object.defineProperty(CompilationResultAction.prototype, "compiledObject", { - get: $util.oneOfGetter($oneOfFields = ["relation", "operations", "assertion", "declaration"]), - set: $util.oneOfSetter($oneOfFields) - }); + WriteFileRequest.prototype.contents = $util.newBuffer([]); /** - * Creates a new CompilationResultAction instance using the specified properties. + * Creates a new WriteFileRequest instance using the specified properties. * @function create - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction + * @memberof google.cloud.dataform.v1beta1.WriteFileRequest * @static - * @param {google.cloud.dataform.v1beta1.ICompilationResultAction=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.CompilationResultAction} CompilationResultAction instance + * @param {google.cloud.dataform.v1beta1.IWriteFileRequest=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.WriteFileRequest} WriteFileRequest instance */ - CompilationResultAction.create = function create(properties) { - return new CompilationResultAction(properties); + WriteFileRequest.create = function create(properties) { + return new WriteFileRequest(properties); }; /** - * Encodes the specified CompilationResultAction message. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResultAction.verify|verify} messages. + * Encodes the specified WriteFileRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.WriteFileRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction + * @memberof google.cloud.dataform.v1beta1.WriteFileRequest * @static - * @param {google.cloud.dataform.v1beta1.ICompilationResultAction} message CompilationResultAction message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IWriteFileRequest} message WriteFileRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CompilationResultAction.encode = function encode(message, writer) { + WriteFileRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.target != null && Object.hasOwnProperty.call(message, "target")) - $root.google.cloud.dataform.v1beta1.Target.encode(message.target, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.canonicalTarget != null && Object.hasOwnProperty.call(message, "canonicalTarget")) - $root.google.cloud.dataform.v1beta1.Target.encode(message.canonicalTarget, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.filePath != null && Object.hasOwnProperty.call(message, "filePath")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.filePath); - if (message.relation != null && Object.hasOwnProperty.call(message, "relation")) - $root.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.encode(message.relation, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.operations != null && Object.hasOwnProperty.call(message, "operations")) - $root.google.cloud.dataform.v1beta1.CompilationResultAction.Operations.encode(message.operations, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.assertion != null && Object.hasOwnProperty.call(message, "assertion")) - $root.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.encode(message.assertion, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.declaration != null && Object.hasOwnProperty.call(message, "declaration")) - $root.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration.encode(message.declaration, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.workspace != null && Object.hasOwnProperty.call(message, "workspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.workspace); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); + if (message.contents != null && Object.hasOwnProperty.call(message, "contents")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.contents); return writer; }; /** - * Encodes the specified CompilationResultAction message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResultAction.verify|verify} messages. + * Encodes the specified WriteFileRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.WriteFileRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction + * @memberof google.cloud.dataform.v1beta1.WriteFileRequest * @static - * @param {google.cloud.dataform.v1beta1.ICompilationResultAction} message CompilationResultAction message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IWriteFileRequest} message WriteFileRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CompilationResultAction.encodeDelimited = function encodeDelimited(message, writer) { + WriteFileRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CompilationResultAction message from the specified reader or buffer. + * Decodes a WriteFileRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction + * @memberof google.cloud.dataform.v1beta1.WriteFileRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.CompilationResultAction} CompilationResultAction + * @returns {google.cloud.dataform.v1beta1.WriteFileRequest} WriteFileRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CompilationResultAction.decode = function decode(reader, length) { + WriteFileRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.CompilationResultAction(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.WriteFileRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.target = $root.google.cloud.dataform.v1beta1.Target.decode(reader, reader.uint32()); + message.workspace = reader.string(); break; } case 2: { - message.canonicalTarget = $root.google.cloud.dataform.v1beta1.Target.decode(reader, reader.uint32()); + message.path = reader.string(); break; } case 3: { - message.filePath = reader.string(); - break; - } - case 4: { - message.relation = $root.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.decode(reader, reader.uint32()); - break; - } - case 5: { - message.operations = $root.google.cloud.dataform.v1beta1.CompilationResultAction.Operations.decode(reader, reader.uint32()); - break; - } - case 6: { - message.assertion = $root.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.decode(reader, reader.uint32()); - break; - } - case 7: { - message.declaration = $root.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration.decode(reader, reader.uint32()); + message.contents = reader.bytes(); break; } default: @@ -35634,385 +36506,7638 @@ }; /** - * Decodes a CompilationResultAction message from the specified reader or buffer, length delimited. + * Decodes a WriteFileRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction + * @memberof google.cloud.dataform.v1beta1.WriteFileRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.CompilationResultAction} CompilationResultAction + * @returns {google.cloud.dataform.v1beta1.WriteFileRequest} WriteFileRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CompilationResultAction.decodeDelimited = function decodeDelimited(reader) { + WriteFileRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CompilationResultAction message. + * Verifies a WriteFileRequest message. * @function verify - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction + * @memberof google.cloud.dataform.v1beta1.WriteFileRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CompilationResultAction.verify = function verify(message) { + WriteFileRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.target != null && message.hasOwnProperty("target")) { - var error = $root.google.cloud.dataform.v1beta1.Target.verify(message.target); - if (error) - return "target." + error; - } - if (message.canonicalTarget != null && message.hasOwnProperty("canonicalTarget")) { - var error = $root.google.cloud.dataform.v1beta1.Target.verify(message.canonicalTarget); - if (error) - return "canonicalTarget." + error; - } - if (message.filePath != null && message.hasOwnProperty("filePath")) - if (!$util.isString(message.filePath)) - return "filePath: string expected"; - if (message.relation != null && message.hasOwnProperty("relation")) { - properties.compiledObject = 1; - { - var error = $root.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.verify(message.relation); - if (error) - return "relation." + error; - } - } - if (message.operations != null && message.hasOwnProperty("operations")) { - if (properties.compiledObject === 1) - return "compiledObject: multiple values"; - properties.compiledObject = 1; - { - var error = $root.google.cloud.dataform.v1beta1.CompilationResultAction.Operations.verify(message.operations); - if (error) - return "operations." + error; - } - } - if (message.assertion != null && message.hasOwnProperty("assertion")) { - if (properties.compiledObject === 1) - return "compiledObject: multiple values"; - properties.compiledObject = 1; - { - var error = $root.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.verify(message.assertion); - if (error) - return "assertion." + error; - } - } - if (message.declaration != null && message.hasOwnProperty("declaration")) { - if (properties.compiledObject === 1) - return "compiledObject: multiple values"; - properties.compiledObject = 1; - { - var error = $root.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration.verify(message.declaration); - if (error) - return "declaration." + error; - } - } + if (message.workspace != null && message.hasOwnProperty("workspace")) + if (!$util.isString(message.workspace)) + return "workspace: string expected"; + if (message.path != null && message.hasOwnProperty("path")) + if (!$util.isString(message.path)) + return "path: string expected"; + if (message.contents != null && message.hasOwnProperty("contents")) + if (!(message.contents && typeof message.contents.length === "number" || $util.isString(message.contents))) + return "contents: buffer expected"; return null; }; /** - * Creates a CompilationResultAction message from a plain object. Also converts values to their respective internal types. + * Creates a WriteFileRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction + * @memberof google.cloud.dataform.v1beta1.WriteFileRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.CompilationResultAction} CompilationResultAction + * @returns {google.cloud.dataform.v1beta1.WriteFileRequest} WriteFileRequest */ - CompilationResultAction.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.CompilationResultAction) + WriteFileRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.WriteFileRequest) return object; - var message = new $root.google.cloud.dataform.v1beta1.CompilationResultAction(); - if (object.target != null) { - if (typeof object.target !== "object") - throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.target: object expected"); - message.target = $root.google.cloud.dataform.v1beta1.Target.fromObject(object.target); - } - if (object.canonicalTarget != null) { - if (typeof object.canonicalTarget !== "object") - throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.canonicalTarget: object expected"); - message.canonicalTarget = $root.google.cloud.dataform.v1beta1.Target.fromObject(object.canonicalTarget); - } - if (object.filePath != null) - message.filePath = String(object.filePath); - if (object.relation != null) { - if (typeof object.relation !== "object") - throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.relation: object expected"); - message.relation = $root.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.fromObject(object.relation); - } - if (object.operations != null) { - if (typeof object.operations !== "object") - throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.operations: object expected"); - message.operations = $root.google.cloud.dataform.v1beta1.CompilationResultAction.Operations.fromObject(object.operations); - } - if (object.assertion != null) { - if (typeof object.assertion !== "object") - throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.assertion: object expected"); - message.assertion = $root.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.fromObject(object.assertion); - } - if (object.declaration != null) { - if (typeof object.declaration !== "object") - throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.declaration: object expected"); - message.declaration = $root.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration.fromObject(object.declaration); - } + var message = new $root.google.cloud.dataform.v1beta1.WriteFileRequest(); + if (object.workspace != null) + message.workspace = String(object.workspace); + if (object.path != null) + message.path = String(object.path); + if (object.contents != null) + if (typeof object.contents === "string") + $util.base64.decode(object.contents, message.contents = $util.newBuffer($util.base64.length(object.contents)), 0); + else if (object.contents.length >= 0) + message.contents = object.contents; return message; }; /** - * Creates a plain object from a CompilationResultAction message. Also converts values to other types if specified. + * Creates a plain object from a WriteFileRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction + * @memberof google.cloud.dataform.v1beta1.WriteFileRequest * @static - * @param {google.cloud.dataform.v1beta1.CompilationResultAction} message CompilationResultAction + * @param {google.cloud.dataform.v1beta1.WriteFileRequest} message WriteFileRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CompilationResultAction.toObject = function toObject(message, options) { + WriteFileRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.target = null; - object.canonicalTarget = null; - object.filePath = ""; - } - if (message.target != null && message.hasOwnProperty("target")) - object.target = $root.google.cloud.dataform.v1beta1.Target.toObject(message.target, options); - if (message.canonicalTarget != null && message.hasOwnProperty("canonicalTarget")) - object.canonicalTarget = $root.google.cloud.dataform.v1beta1.Target.toObject(message.canonicalTarget, options); - if (message.filePath != null && message.hasOwnProperty("filePath")) - object.filePath = message.filePath; - if (message.relation != null && message.hasOwnProperty("relation")) { - object.relation = $root.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.toObject(message.relation, options); - if (options.oneofs) - object.compiledObject = "relation"; - } - if (message.operations != null && message.hasOwnProperty("operations")) { - object.operations = $root.google.cloud.dataform.v1beta1.CompilationResultAction.Operations.toObject(message.operations, options); - if (options.oneofs) - object.compiledObject = "operations"; - } - if (message.assertion != null && message.hasOwnProperty("assertion")) { - object.assertion = $root.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.toObject(message.assertion, options); - if (options.oneofs) - object.compiledObject = "assertion"; - } - if (message.declaration != null && message.hasOwnProperty("declaration")) { - object.declaration = $root.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration.toObject(message.declaration, options); - if (options.oneofs) - object.compiledObject = "declaration"; + object.workspace = ""; + object.path = ""; + if (options.bytes === String) + object.contents = ""; + else { + object.contents = []; + if (options.bytes !== Array) + object.contents = $util.newBuffer(object.contents); + } } + if (message.workspace != null && message.hasOwnProperty("workspace")) + object.workspace = message.workspace; + if (message.path != null && message.hasOwnProperty("path")) + object.path = message.path; + if (message.contents != null && message.hasOwnProperty("contents")) + object.contents = options.bytes === String ? $util.base64.encode(message.contents, 0, message.contents.length) : options.bytes === Array ? Array.prototype.slice.call(message.contents) : message.contents; return object; }; /** - * Converts this CompilationResultAction to JSON. + * Converts this WriteFileRequest to JSON. * @function toJSON - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction + * @memberof google.cloud.dataform.v1beta1.WriteFileRequest * @instance * @returns {Object.} JSON object */ - CompilationResultAction.prototype.toJSON = function toJSON() { + WriteFileRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CompilationResultAction + * Gets the default type url for WriteFileRequest * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction + * @memberof google.cloud.dataform.v1beta1.WriteFileRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CompilationResultAction.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + WriteFileRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.CompilationResultAction"; + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.WriteFileRequest"; }; - CompilationResultAction.Relation = (function() { - - /** - * Properties of a Relation. - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction - * @interface IRelation - * @property {Array.|null} [dependencyTargets] Relation dependencyTargets - * @property {boolean|null} [disabled] Relation disabled - * @property {Array.|null} [tags] Relation tags - * @property {google.cloud.dataform.v1beta1.IRelationDescriptor|null} [relationDescriptor] Relation relationDescriptor - * @property {google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType|null} [relationType] Relation relationType - * @property {string|null} [selectQuery] Relation selectQuery - * @property {Array.|null} [preOperations] Relation preOperations - * @property {Array.|null} [postOperations] Relation postOperations - * @property {google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IIncrementalTableConfig|null} [incrementalTableConfig] Relation incrementalTableConfig - * @property {string|null} [partitionExpression] Relation partitionExpression - * @property {Array.|null} [clusterExpressions] Relation clusterExpressions - * @property {number|null} [partitionExpirationDays] Relation partitionExpirationDays - * @property {boolean|null} [requirePartitionFilter] Relation requirePartitionFilter - * @property {Object.|null} [additionalOptions] Relation additionalOptions - */ + return WriteFileRequest; + })(); - /** - * Constructs a new Relation. - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction - * @classdesc Represents a Relation. - * @implements IRelation - * @constructor - * @param {google.cloud.dataform.v1beta1.CompilationResultAction.IRelation=} [properties] Properties to set - */ - function Relation(properties) { - this.dependencyTargets = []; - this.tags = []; - this.preOperations = []; - this.postOperations = []; - this.clusterExpressions = []; - this.additionalOptions = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + v1beta1.WriteFileResponse = (function() { - /** - * Relation dependencyTargets. - * @member {Array.} dependencyTargets - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation - * @instance - */ - Relation.prototype.dependencyTargets = $util.emptyArray; + /** + * Properties of a WriteFileResponse. + * @memberof google.cloud.dataform.v1beta1 + * @interface IWriteFileResponse + */ - /** - * Relation disabled. - * @member {boolean} disabled - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation - * @instance - */ - Relation.prototype.disabled = false; + /** + * Constructs a new WriteFileResponse. + * @memberof google.cloud.dataform.v1beta1 + * @classdesc Represents a WriteFileResponse. + * @implements IWriteFileResponse + * @constructor + * @param {google.cloud.dataform.v1beta1.IWriteFileResponse=} [properties] Properties to set + */ + function WriteFileResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Relation tags. - * @member {Array.} tags - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation - * @instance - */ - Relation.prototype.tags = $util.emptyArray; + /** + * Creates a new WriteFileResponse instance using the specified properties. + * @function create + * @memberof google.cloud.dataform.v1beta1.WriteFileResponse + * @static + * @param {google.cloud.dataform.v1beta1.IWriteFileResponse=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.WriteFileResponse} WriteFileResponse instance + */ + WriteFileResponse.create = function create(properties) { + return new WriteFileResponse(properties); + }; - /** - * Relation relationDescriptor. - * @member {google.cloud.dataform.v1beta1.IRelationDescriptor|null|undefined} relationDescriptor - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation - * @instance - */ - Relation.prototype.relationDescriptor = null; + /** + * Encodes the specified WriteFileResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.WriteFileResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.dataform.v1beta1.WriteFileResponse + * @static + * @param {google.cloud.dataform.v1beta1.IWriteFileResponse} message WriteFileResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WriteFileResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; - /** - * Relation relationType. - * @member {google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType} relationType - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation - * @instance - */ - Relation.prototype.relationType = 0; + /** + * Encodes the specified WriteFileResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.WriteFileResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dataform.v1beta1.WriteFileResponse + * @static + * @param {google.cloud.dataform.v1beta1.IWriteFileResponse} message WriteFileResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WriteFileResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Relation selectQuery. - * @member {string} selectQuery - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation - * @instance - */ - Relation.prototype.selectQuery = ""; + /** + * Decodes a WriteFileResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dataform.v1beta1.WriteFileResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dataform.v1beta1.WriteFileResponse} WriteFileResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WriteFileResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.WriteFileResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Relation preOperations. - * @member {Array.} preOperations - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation - * @instance - */ - Relation.prototype.preOperations = $util.emptyArray; + /** + * Decodes a WriteFileResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dataform.v1beta1.WriteFileResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dataform.v1beta1.WriteFileResponse} WriteFileResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WriteFileResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Relation postOperations. - * @member {Array.} postOperations - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation - * @instance - */ - Relation.prototype.postOperations = $util.emptyArray; + /** + * Verifies a WriteFileResponse message. + * @function verify + * @memberof google.cloud.dataform.v1beta1.WriteFileResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WriteFileResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; - /** - * Relation incrementalTableConfig. - * @member {google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IIncrementalTableConfig|null|undefined} incrementalTableConfig - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation - * @instance - */ - Relation.prototype.incrementalTableConfig = null; + /** + * Creates a WriteFileResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dataform.v1beta1.WriteFileResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dataform.v1beta1.WriteFileResponse} WriteFileResponse + */ + WriteFileResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.WriteFileResponse) + return object; + return new $root.google.cloud.dataform.v1beta1.WriteFileResponse(); + }; - /** - * Relation partitionExpression. - * @member {string} partitionExpression - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation - * @instance - */ - Relation.prototype.partitionExpression = ""; + /** + * Creates a plain object from a WriteFileResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dataform.v1beta1.WriteFileResponse + * @static + * @param {google.cloud.dataform.v1beta1.WriteFileResponse} message WriteFileResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + WriteFileResponse.toObject = function toObject() { + return {}; + }; - /** - * Relation clusterExpressions. - * @member {Array.} clusterExpressions - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation - * @instance - */ - Relation.prototype.clusterExpressions = $util.emptyArray; + /** + * Converts this WriteFileResponse to JSON. + * @function toJSON + * @memberof google.cloud.dataform.v1beta1.WriteFileResponse + * @instance + * @returns {Object.} JSON object + */ + WriteFileResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Relation partitionExpirationDays. - * @member {number} partitionExpirationDays - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation - * @instance - */ - Relation.prototype.partitionExpirationDays = 0; + /** + * Gets the default type url for WriteFileResponse + * @function getTypeUrl + * @memberof google.cloud.dataform.v1beta1.WriteFileResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + WriteFileResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.WriteFileResponse"; + }; - /** - * Relation requirePartitionFilter. - * @member {boolean} requirePartitionFilter - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation - * @instance - */ - Relation.prototype.requirePartitionFilter = false; + return WriteFileResponse; + })(); - /** - * Relation additionalOptions. - * @member {Object.} additionalOptions - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation - * @instance - */ - Relation.prototype.additionalOptions = $util.emptyObject; + v1beta1.InstallNpmPackagesRequest = (function() { - /** - * Creates a new Relation instance using the specified properties. - * @function create - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation - * @static - * @param {google.cloud.dataform.v1beta1.CompilationResultAction.IRelation=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.CompilationResultAction.Relation} Relation instance - */ - Relation.create = function create(properties) { - return new Relation(properties); - }; + /** + * Properties of an InstallNpmPackagesRequest. + * @memberof google.cloud.dataform.v1beta1 + * @interface IInstallNpmPackagesRequest + * @property {string|null} [workspace] InstallNpmPackagesRequest workspace + */ - /** - * Encodes the specified Relation message. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResultAction.Relation.verify|verify} messages. - * @function encode - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation - * @static - * @param {google.cloud.dataform.v1beta1.CompilationResultAction.IRelation} message Relation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Relation.encode = function encode(message, writer) { - if (!writer) + /** + * Constructs a new InstallNpmPackagesRequest. + * @memberof google.cloud.dataform.v1beta1 + * @classdesc Represents an InstallNpmPackagesRequest. + * @implements IInstallNpmPackagesRequest + * @constructor + * @param {google.cloud.dataform.v1beta1.IInstallNpmPackagesRequest=} [properties] Properties to set + */ + function InstallNpmPackagesRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * InstallNpmPackagesRequest workspace. + * @member {string} workspace + * @memberof google.cloud.dataform.v1beta1.InstallNpmPackagesRequest + * @instance + */ + InstallNpmPackagesRequest.prototype.workspace = ""; + + /** + * Creates a new InstallNpmPackagesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dataform.v1beta1.InstallNpmPackagesRequest + * @static + * @param {google.cloud.dataform.v1beta1.IInstallNpmPackagesRequest=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.InstallNpmPackagesRequest} InstallNpmPackagesRequest instance + */ + InstallNpmPackagesRequest.create = function create(properties) { + return new InstallNpmPackagesRequest(properties); + }; + + /** + * Encodes the specified InstallNpmPackagesRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.InstallNpmPackagesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dataform.v1beta1.InstallNpmPackagesRequest + * @static + * @param {google.cloud.dataform.v1beta1.IInstallNpmPackagesRequest} message InstallNpmPackagesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstallNpmPackagesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.workspace != null && Object.hasOwnProperty.call(message, "workspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.workspace); + return writer; + }; + + /** + * Encodes the specified InstallNpmPackagesRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.InstallNpmPackagesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dataform.v1beta1.InstallNpmPackagesRequest + * @static + * @param {google.cloud.dataform.v1beta1.IInstallNpmPackagesRequest} message InstallNpmPackagesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstallNpmPackagesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InstallNpmPackagesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dataform.v1beta1.InstallNpmPackagesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dataform.v1beta1.InstallNpmPackagesRequest} InstallNpmPackagesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstallNpmPackagesRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.workspace = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InstallNpmPackagesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dataform.v1beta1.InstallNpmPackagesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dataform.v1beta1.InstallNpmPackagesRequest} InstallNpmPackagesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstallNpmPackagesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InstallNpmPackagesRequest message. + * @function verify + * @memberof google.cloud.dataform.v1beta1.InstallNpmPackagesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InstallNpmPackagesRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.workspace != null && message.hasOwnProperty("workspace")) + if (!$util.isString(message.workspace)) + return "workspace: string expected"; + return null; + }; + + /** + * Creates an InstallNpmPackagesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dataform.v1beta1.InstallNpmPackagesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dataform.v1beta1.InstallNpmPackagesRequest} InstallNpmPackagesRequest + */ + InstallNpmPackagesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest) + return object; + var message = new $root.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest(); + if (object.workspace != null) + message.workspace = String(object.workspace); + return message; + }; + + /** + * Creates a plain object from an InstallNpmPackagesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dataform.v1beta1.InstallNpmPackagesRequest + * @static + * @param {google.cloud.dataform.v1beta1.InstallNpmPackagesRequest} message InstallNpmPackagesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InstallNpmPackagesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.workspace = ""; + if (message.workspace != null && message.hasOwnProperty("workspace")) + object.workspace = message.workspace; + return object; + }; + + /** + * Converts this InstallNpmPackagesRequest to JSON. + * @function toJSON + * @memberof google.cloud.dataform.v1beta1.InstallNpmPackagesRequest + * @instance + * @returns {Object.} JSON object + */ + InstallNpmPackagesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InstallNpmPackagesRequest + * @function getTypeUrl + * @memberof google.cloud.dataform.v1beta1.InstallNpmPackagesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InstallNpmPackagesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.InstallNpmPackagesRequest"; + }; + + return InstallNpmPackagesRequest; + })(); + + v1beta1.InstallNpmPackagesResponse = (function() { + + /** + * Properties of an InstallNpmPackagesResponse. + * @memberof google.cloud.dataform.v1beta1 + * @interface IInstallNpmPackagesResponse + */ + + /** + * Constructs a new InstallNpmPackagesResponse. + * @memberof google.cloud.dataform.v1beta1 + * @classdesc Represents an InstallNpmPackagesResponse. + * @implements IInstallNpmPackagesResponse + * @constructor + * @param {google.cloud.dataform.v1beta1.IInstallNpmPackagesResponse=} [properties] Properties to set + */ + function InstallNpmPackagesResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new InstallNpmPackagesResponse instance using the specified properties. + * @function create + * @memberof google.cloud.dataform.v1beta1.InstallNpmPackagesResponse + * @static + * @param {google.cloud.dataform.v1beta1.IInstallNpmPackagesResponse=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.InstallNpmPackagesResponse} InstallNpmPackagesResponse instance + */ + InstallNpmPackagesResponse.create = function create(properties) { + return new InstallNpmPackagesResponse(properties); + }; + + /** + * Encodes the specified InstallNpmPackagesResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.InstallNpmPackagesResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.dataform.v1beta1.InstallNpmPackagesResponse + * @static + * @param {google.cloud.dataform.v1beta1.IInstallNpmPackagesResponse} message InstallNpmPackagesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstallNpmPackagesResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified InstallNpmPackagesResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.InstallNpmPackagesResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dataform.v1beta1.InstallNpmPackagesResponse + * @static + * @param {google.cloud.dataform.v1beta1.IInstallNpmPackagesResponse} message InstallNpmPackagesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstallNpmPackagesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InstallNpmPackagesResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dataform.v1beta1.InstallNpmPackagesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dataform.v1beta1.InstallNpmPackagesResponse} InstallNpmPackagesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstallNpmPackagesResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InstallNpmPackagesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dataform.v1beta1.InstallNpmPackagesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dataform.v1beta1.InstallNpmPackagesResponse} InstallNpmPackagesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstallNpmPackagesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InstallNpmPackagesResponse message. + * @function verify + * @memberof google.cloud.dataform.v1beta1.InstallNpmPackagesResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InstallNpmPackagesResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates an InstallNpmPackagesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dataform.v1beta1.InstallNpmPackagesResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dataform.v1beta1.InstallNpmPackagesResponse} InstallNpmPackagesResponse + */ + InstallNpmPackagesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse) + return object; + return new $root.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse(); + }; + + /** + * Creates a plain object from an InstallNpmPackagesResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dataform.v1beta1.InstallNpmPackagesResponse + * @static + * @param {google.cloud.dataform.v1beta1.InstallNpmPackagesResponse} message InstallNpmPackagesResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InstallNpmPackagesResponse.toObject = function toObject() { + return {}; + }; + + /** + * Converts this InstallNpmPackagesResponse to JSON. + * @function toJSON + * @memberof google.cloud.dataform.v1beta1.InstallNpmPackagesResponse + * @instance + * @returns {Object.} JSON object + */ + InstallNpmPackagesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InstallNpmPackagesResponse + * @function getTypeUrl + * @memberof google.cloud.dataform.v1beta1.InstallNpmPackagesResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InstallNpmPackagesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.InstallNpmPackagesResponse"; + }; + + return InstallNpmPackagesResponse; + })(); + + v1beta1.ReleaseConfig = (function() { + + /** + * Properties of a ReleaseConfig. + * @memberof google.cloud.dataform.v1beta1 + * @interface IReleaseConfig + * @property {string|null} [name] ReleaseConfig name + * @property {string|null} [gitCommitish] ReleaseConfig gitCommitish + * @property {google.cloud.dataform.v1beta1.ICodeCompilationConfig|null} [codeCompilationConfig] ReleaseConfig codeCompilationConfig + * @property {string|null} [cronSchedule] ReleaseConfig cronSchedule + * @property {string|null} [timeZone] ReleaseConfig timeZone + * @property {Array.|null} [recentScheduledReleaseRecords] ReleaseConfig recentScheduledReleaseRecords + * @property {string|null} [releaseCompilationResult] ReleaseConfig releaseCompilationResult + */ + + /** + * Constructs a new ReleaseConfig. + * @memberof google.cloud.dataform.v1beta1 + * @classdesc Represents a ReleaseConfig. + * @implements IReleaseConfig + * @constructor + * @param {google.cloud.dataform.v1beta1.IReleaseConfig=} [properties] Properties to set + */ + function ReleaseConfig(properties) { + this.recentScheduledReleaseRecords = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ReleaseConfig name. + * @member {string} name + * @memberof google.cloud.dataform.v1beta1.ReleaseConfig + * @instance + */ + ReleaseConfig.prototype.name = ""; + + /** + * ReleaseConfig gitCommitish. + * @member {string} gitCommitish + * @memberof google.cloud.dataform.v1beta1.ReleaseConfig + * @instance + */ + ReleaseConfig.prototype.gitCommitish = ""; + + /** + * ReleaseConfig codeCompilationConfig. + * @member {google.cloud.dataform.v1beta1.ICodeCompilationConfig|null|undefined} codeCompilationConfig + * @memberof google.cloud.dataform.v1beta1.ReleaseConfig + * @instance + */ + ReleaseConfig.prototype.codeCompilationConfig = null; + + /** + * ReleaseConfig cronSchedule. + * @member {string} cronSchedule + * @memberof google.cloud.dataform.v1beta1.ReleaseConfig + * @instance + */ + ReleaseConfig.prototype.cronSchedule = ""; + + /** + * ReleaseConfig timeZone. + * @member {string} timeZone + * @memberof google.cloud.dataform.v1beta1.ReleaseConfig + * @instance + */ + ReleaseConfig.prototype.timeZone = ""; + + /** + * ReleaseConfig recentScheduledReleaseRecords. + * @member {Array.} recentScheduledReleaseRecords + * @memberof google.cloud.dataform.v1beta1.ReleaseConfig + * @instance + */ + ReleaseConfig.prototype.recentScheduledReleaseRecords = $util.emptyArray; + + /** + * ReleaseConfig releaseCompilationResult. + * @member {string} releaseCompilationResult + * @memberof google.cloud.dataform.v1beta1.ReleaseConfig + * @instance + */ + ReleaseConfig.prototype.releaseCompilationResult = ""; + + /** + * Creates a new ReleaseConfig instance using the specified properties. + * @function create + * @memberof google.cloud.dataform.v1beta1.ReleaseConfig + * @static + * @param {google.cloud.dataform.v1beta1.IReleaseConfig=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.ReleaseConfig} ReleaseConfig instance + */ + ReleaseConfig.create = function create(properties) { + return new ReleaseConfig(properties); + }; + + /** + * Encodes the specified ReleaseConfig message. Does not implicitly {@link google.cloud.dataform.v1beta1.ReleaseConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.dataform.v1beta1.ReleaseConfig + * @static + * @param {google.cloud.dataform.v1beta1.IReleaseConfig} message ReleaseConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReleaseConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.gitCommitish != null && Object.hasOwnProperty.call(message, "gitCommitish")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.gitCommitish); + if (message.codeCompilationConfig != null && Object.hasOwnProperty.call(message, "codeCompilationConfig")) + $root.google.cloud.dataform.v1beta1.CodeCompilationConfig.encode(message.codeCompilationConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.cronSchedule != null && Object.hasOwnProperty.call(message, "cronSchedule")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.cronSchedule); + if (message.recentScheduledReleaseRecords != null && message.recentScheduledReleaseRecords.length) + for (var i = 0; i < message.recentScheduledReleaseRecords.length; ++i) + $root.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord.encode(message.recentScheduledReleaseRecords[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.releaseCompilationResult != null && Object.hasOwnProperty.call(message, "releaseCompilationResult")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.releaseCompilationResult); + if (message.timeZone != null && Object.hasOwnProperty.call(message, "timeZone")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.timeZone); + return writer; + }; + + /** + * Encodes the specified ReleaseConfig message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.ReleaseConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dataform.v1beta1.ReleaseConfig + * @static + * @param {google.cloud.dataform.v1beta1.IReleaseConfig} message ReleaseConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReleaseConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ReleaseConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dataform.v1beta1.ReleaseConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dataform.v1beta1.ReleaseConfig} ReleaseConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReleaseConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.ReleaseConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.gitCommitish = reader.string(); + break; + } + case 3: { + message.codeCompilationConfig = $root.google.cloud.dataform.v1beta1.CodeCompilationConfig.decode(reader, reader.uint32()); + break; + } + case 4: { + message.cronSchedule = reader.string(); + break; + } + case 7: { + message.timeZone = reader.string(); + break; + } + case 5: { + if (!(message.recentScheduledReleaseRecords && message.recentScheduledReleaseRecords.length)) + message.recentScheduledReleaseRecords = []; + message.recentScheduledReleaseRecords.push($root.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord.decode(reader, reader.uint32())); + break; + } + case 6: { + message.releaseCompilationResult = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ReleaseConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dataform.v1beta1.ReleaseConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dataform.v1beta1.ReleaseConfig} ReleaseConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReleaseConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ReleaseConfig message. + * @function verify + * @memberof google.cloud.dataform.v1beta1.ReleaseConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ReleaseConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.gitCommitish != null && message.hasOwnProperty("gitCommitish")) + if (!$util.isString(message.gitCommitish)) + return "gitCommitish: string expected"; + if (message.codeCompilationConfig != null && message.hasOwnProperty("codeCompilationConfig")) { + var error = $root.google.cloud.dataform.v1beta1.CodeCompilationConfig.verify(message.codeCompilationConfig); + if (error) + return "codeCompilationConfig." + error; + } + if (message.cronSchedule != null && message.hasOwnProperty("cronSchedule")) + if (!$util.isString(message.cronSchedule)) + return "cronSchedule: string expected"; + if (message.timeZone != null && message.hasOwnProperty("timeZone")) + if (!$util.isString(message.timeZone)) + return "timeZone: string expected"; + if (message.recentScheduledReleaseRecords != null && message.hasOwnProperty("recentScheduledReleaseRecords")) { + if (!Array.isArray(message.recentScheduledReleaseRecords)) + return "recentScheduledReleaseRecords: array expected"; + for (var i = 0; i < message.recentScheduledReleaseRecords.length; ++i) { + var error = $root.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord.verify(message.recentScheduledReleaseRecords[i]); + if (error) + return "recentScheduledReleaseRecords." + error; + } + } + if (message.releaseCompilationResult != null && message.hasOwnProperty("releaseCompilationResult")) + if (!$util.isString(message.releaseCompilationResult)) + return "releaseCompilationResult: string expected"; + return null; + }; + + /** + * Creates a ReleaseConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dataform.v1beta1.ReleaseConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dataform.v1beta1.ReleaseConfig} ReleaseConfig + */ + ReleaseConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.ReleaseConfig) + return object; + var message = new $root.google.cloud.dataform.v1beta1.ReleaseConfig(); + if (object.name != null) + message.name = String(object.name); + if (object.gitCommitish != null) + message.gitCommitish = String(object.gitCommitish); + if (object.codeCompilationConfig != null) { + if (typeof object.codeCompilationConfig !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.ReleaseConfig.codeCompilationConfig: object expected"); + message.codeCompilationConfig = $root.google.cloud.dataform.v1beta1.CodeCompilationConfig.fromObject(object.codeCompilationConfig); + } + if (object.cronSchedule != null) + message.cronSchedule = String(object.cronSchedule); + if (object.timeZone != null) + message.timeZone = String(object.timeZone); + if (object.recentScheduledReleaseRecords) { + if (!Array.isArray(object.recentScheduledReleaseRecords)) + throw TypeError(".google.cloud.dataform.v1beta1.ReleaseConfig.recentScheduledReleaseRecords: array expected"); + message.recentScheduledReleaseRecords = []; + for (var i = 0; i < object.recentScheduledReleaseRecords.length; ++i) { + if (typeof object.recentScheduledReleaseRecords[i] !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.ReleaseConfig.recentScheduledReleaseRecords: object expected"); + message.recentScheduledReleaseRecords[i] = $root.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord.fromObject(object.recentScheduledReleaseRecords[i]); + } + } + if (object.releaseCompilationResult != null) + message.releaseCompilationResult = String(object.releaseCompilationResult); + return message; + }; + + /** + * Creates a plain object from a ReleaseConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dataform.v1beta1.ReleaseConfig + * @static + * @param {google.cloud.dataform.v1beta1.ReleaseConfig} message ReleaseConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ReleaseConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.recentScheduledReleaseRecords = []; + if (options.defaults) { + object.name = ""; + object.gitCommitish = ""; + object.codeCompilationConfig = null; + object.cronSchedule = ""; + object.releaseCompilationResult = ""; + object.timeZone = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.gitCommitish != null && message.hasOwnProperty("gitCommitish")) + object.gitCommitish = message.gitCommitish; + if (message.codeCompilationConfig != null && message.hasOwnProperty("codeCompilationConfig")) + object.codeCompilationConfig = $root.google.cloud.dataform.v1beta1.CodeCompilationConfig.toObject(message.codeCompilationConfig, options); + if (message.cronSchedule != null && message.hasOwnProperty("cronSchedule")) + object.cronSchedule = message.cronSchedule; + if (message.recentScheduledReleaseRecords && message.recentScheduledReleaseRecords.length) { + object.recentScheduledReleaseRecords = []; + for (var j = 0; j < message.recentScheduledReleaseRecords.length; ++j) + object.recentScheduledReleaseRecords[j] = $root.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord.toObject(message.recentScheduledReleaseRecords[j], options); + } + if (message.releaseCompilationResult != null && message.hasOwnProperty("releaseCompilationResult")) + object.releaseCompilationResult = message.releaseCompilationResult; + if (message.timeZone != null && message.hasOwnProperty("timeZone")) + object.timeZone = message.timeZone; + return object; + }; + + /** + * Converts this ReleaseConfig to JSON. + * @function toJSON + * @memberof google.cloud.dataform.v1beta1.ReleaseConfig + * @instance + * @returns {Object.} JSON object + */ + ReleaseConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ReleaseConfig + * @function getTypeUrl + * @memberof google.cloud.dataform.v1beta1.ReleaseConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ReleaseConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.ReleaseConfig"; + }; + + ReleaseConfig.ScheduledReleaseRecord = (function() { + + /** + * Properties of a ScheduledReleaseRecord. + * @memberof google.cloud.dataform.v1beta1.ReleaseConfig + * @interface IScheduledReleaseRecord + * @property {google.protobuf.ITimestamp|null} [releaseTime] ScheduledReleaseRecord releaseTime + * @property {string|null} [compilationResult] ScheduledReleaseRecord compilationResult + * @property {google.rpc.IStatus|null} [errorStatus] ScheduledReleaseRecord errorStatus + */ + + /** + * Constructs a new ScheduledReleaseRecord. + * @memberof google.cloud.dataform.v1beta1.ReleaseConfig + * @classdesc Represents a ScheduledReleaseRecord. + * @implements IScheduledReleaseRecord + * @constructor + * @param {google.cloud.dataform.v1beta1.ReleaseConfig.IScheduledReleaseRecord=} [properties] Properties to set + */ + function ScheduledReleaseRecord(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ScheduledReleaseRecord releaseTime. + * @member {google.protobuf.ITimestamp|null|undefined} releaseTime + * @memberof google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord + * @instance + */ + ScheduledReleaseRecord.prototype.releaseTime = null; + + /** + * ScheduledReleaseRecord compilationResult. + * @member {string|null|undefined} compilationResult + * @memberof google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord + * @instance + */ + ScheduledReleaseRecord.prototype.compilationResult = null; + + /** + * ScheduledReleaseRecord errorStatus. + * @member {google.rpc.IStatus|null|undefined} errorStatus + * @memberof google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord + * @instance + */ + ScheduledReleaseRecord.prototype.errorStatus = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ScheduledReleaseRecord result. + * @member {"compilationResult"|"errorStatus"|undefined} result + * @memberof google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord + * @instance + */ + Object.defineProperty(ScheduledReleaseRecord.prototype, "result", { + get: $util.oneOfGetter($oneOfFields = ["compilationResult", "errorStatus"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ScheduledReleaseRecord instance using the specified properties. + * @function create + * @memberof google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord + * @static + * @param {google.cloud.dataform.v1beta1.ReleaseConfig.IScheduledReleaseRecord=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord} ScheduledReleaseRecord instance + */ + ScheduledReleaseRecord.create = function create(properties) { + return new ScheduledReleaseRecord(properties); + }; + + /** + * Encodes the specified ScheduledReleaseRecord message. Does not implicitly {@link google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord.verify|verify} messages. + * @function encode + * @memberof google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord + * @static + * @param {google.cloud.dataform.v1beta1.ReleaseConfig.IScheduledReleaseRecord} message ScheduledReleaseRecord message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ScheduledReleaseRecord.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.releaseTime != null && Object.hasOwnProperty.call(message, "releaseTime")) + $root.google.protobuf.Timestamp.encode(message.releaseTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.compilationResult != null && Object.hasOwnProperty.call(message, "compilationResult")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.compilationResult); + if (message.errorStatus != null && Object.hasOwnProperty.call(message, "errorStatus")) + $root.google.rpc.Status.encode(message.errorStatus, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ScheduledReleaseRecord message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord + * @static + * @param {google.cloud.dataform.v1beta1.ReleaseConfig.IScheduledReleaseRecord} message ScheduledReleaseRecord message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ScheduledReleaseRecord.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ScheduledReleaseRecord message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord} ScheduledReleaseRecord + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ScheduledReleaseRecord.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.releaseTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 2: { + message.compilationResult = reader.string(); + break; + } + case 3: { + message.errorStatus = $root.google.rpc.Status.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ScheduledReleaseRecord message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord} ScheduledReleaseRecord + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ScheduledReleaseRecord.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ScheduledReleaseRecord message. + * @function verify + * @memberof google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ScheduledReleaseRecord.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.releaseTime != null && message.hasOwnProperty("releaseTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.releaseTime); + if (error) + return "releaseTime." + error; + } + if (message.compilationResult != null && message.hasOwnProperty("compilationResult")) { + properties.result = 1; + if (!$util.isString(message.compilationResult)) + return "compilationResult: string expected"; + } + if (message.errorStatus != null && message.hasOwnProperty("errorStatus")) { + if (properties.result === 1) + return "result: multiple values"; + properties.result = 1; + { + var error = $root.google.rpc.Status.verify(message.errorStatus); + if (error) + return "errorStatus." + error; + } + } + return null; + }; + + /** + * Creates a ScheduledReleaseRecord message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord} ScheduledReleaseRecord + */ + ScheduledReleaseRecord.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord) + return object; + var message = new $root.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord(); + if (object.releaseTime != null) { + if (typeof object.releaseTime !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord.releaseTime: object expected"); + message.releaseTime = $root.google.protobuf.Timestamp.fromObject(object.releaseTime); + } + if (object.compilationResult != null) + message.compilationResult = String(object.compilationResult); + if (object.errorStatus != null) { + if (typeof object.errorStatus !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord.errorStatus: object expected"); + message.errorStatus = $root.google.rpc.Status.fromObject(object.errorStatus); + } + return message; + }; + + /** + * Creates a plain object from a ScheduledReleaseRecord message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord + * @static + * @param {google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord} message ScheduledReleaseRecord + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ScheduledReleaseRecord.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.releaseTime = null; + if (message.releaseTime != null && message.hasOwnProperty("releaseTime")) + object.releaseTime = $root.google.protobuf.Timestamp.toObject(message.releaseTime, options); + if (message.compilationResult != null && message.hasOwnProperty("compilationResult")) { + object.compilationResult = message.compilationResult; + if (options.oneofs) + object.result = "compilationResult"; + } + if (message.errorStatus != null && message.hasOwnProperty("errorStatus")) { + object.errorStatus = $root.google.rpc.Status.toObject(message.errorStatus, options); + if (options.oneofs) + object.result = "errorStatus"; + } + return object; + }; + + /** + * Converts this ScheduledReleaseRecord to JSON. + * @function toJSON + * @memberof google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord + * @instance + * @returns {Object.} JSON object + */ + ScheduledReleaseRecord.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ScheduledReleaseRecord + * @function getTypeUrl + * @memberof google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ScheduledReleaseRecord.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord"; + }; + + return ScheduledReleaseRecord; + })(); + + return ReleaseConfig; + })(); + + v1beta1.ListReleaseConfigsRequest = (function() { + + /** + * Properties of a ListReleaseConfigsRequest. + * @memberof google.cloud.dataform.v1beta1 + * @interface IListReleaseConfigsRequest + * @property {string|null} [parent] ListReleaseConfigsRequest parent + * @property {number|null} [pageSize] ListReleaseConfigsRequest pageSize + * @property {string|null} [pageToken] ListReleaseConfigsRequest pageToken + */ + + /** + * Constructs a new ListReleaseConfigsRequest. + * @memberof google.cloud.dataform.v1beta1 + * @classdesc Represents a ListReleaseConfigsRequest. + * @implements IListReleaseConfigsRequest + * @constructor + * @param {google.cloud.dataform.v1beta1.IListReleaseConfigsRequest=} [properties] Properties to set + */ + function ListReleaseConfigsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListReleaseConfigsRequest parent. + * @member {string} parent + * @memberof google.cloud.dataform.v1beta1.ListReleaseConfigsRequest + * @instance + */ + ListReleaseConfigsRequest.prototype.parent = ""; + + /** + * ListReleaseConfigsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dataform.v1beta1.ListReleaseConfigsRequest + * @instance + */ + ListReleaseConfigsRequest.prototype.pageSize = 0; + + /** + * ListReleaseConfigsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dataform.v1beta1.ListReleaseConfigsRequest + * @instance + */ + ListReleaseConfigsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListReleaseConfigsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dataform.v1beta1.ListReleaseConfigsRequest + * @static + * @param {google.cloud.dataform.v1beta1.IListReleaseConfigsRequest=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.ListReleaseConfigsRequest} ListReleaseConfigsRequest instance + */ + ListReleaseConfigsRequest.create = function create(properties) { + return new ListReleaseConfigsRequest(properties); + }; + + /** + * Encodes the specified ListReleaseConfigsRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.ListReleaseConfigsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dataform.v1beta1.ListReleaseConfigsRequest + * @static + * @param {google.cloud.dataform.v1beta1.IListReleaseConfigsRequest} message ListReleaseConfigsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListReleaseConfigsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + return writer; + }; + + /** + * Encodes the specified ListReleaseConfigsRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.ListReleaseConfigsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dataform.v1beta1.ListReleaseConfigsRequest + * @static + * @param {google.cloud.dataform.v1beta1.IListReleaseConfigsRequest} message ListReleaseConfigsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListReleaseConfigsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListReleaseConfigsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dataform.v1beta1.ListReleaseConfigsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dataform.v1beta1.ListReleaseConfigsRequest} ListReleaseConfigsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListReleaseConfigsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListReleaseConfigsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dataform.v1beta1.ListReleaseConfigsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dataform.v1beta1.ListReleaseConfigsRequest} ListReleaseConfigsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListReleaseConfigsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListReleaseConfigsRequest message. + * @function verify + * @memberof google.cloud.dataform.v1beta1.ListReleaseConfigsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListReleaseConfigsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + return null; + }; + + /** + * Creates a ListReleaseConfigsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dataform.v1beta1.ListReleaseConfigsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dataform.v1beta1.ListReleaseConfigsRequest} ListReleaseConfigsRequest + */ + ListReleaseConfigsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest) + return object; + var message = new $root.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + return message; + }; + + /** + * Creates a plain object from a ListReleaseConfigsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dataform.v1beta1.ListReleaseConfigsRequest + * @static + * @param {google.cloud.dataform.v1beta1.ListReleaseConfigsRequest} message ListReleaseConfigsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListReleaseConfigsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + return object; + }; + + /** + * Converts this ListReleaseConfigsRequest to JSON. + * @function toJSON + * @memberof google.cloud.dataform.v1beta1.ListReleaseConfigsRequest + * @instance + * @returns {Object.} JSON object + */ + ListReleaseConfigsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListReleaseConfigsRequest + * @function getTypeUrl + * @memberof google.cloud.dataform.v1beta1.ListReleaseConfigsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListReleaseConfigsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.ListReleaseConfigsRequest"; + }; + + return ListReleaseConfigsRequest; + })(); + + v1beta1.ListReleaseConfigsResponse = (function() { + + /** + * Properties of a ListReleaseConfigsResponse. + * @memberof google.cloud.dataform.v1beta1 + * @interface IListReleaseConfigsResponse + * @property {Array.|null} [releaseConfigs] ListReleaseConfigsResponse releaseConfigs + * @property {string|null} [nextPageToken] ListReleaseConfigsResponse nextPageToken + * @property {Array.|null} [unreachable] ListReleaseConfigsResponse unreachable + */ + + /** + * Constructs a new ListReleaseConfigsResponse. + * @memberof google.cloud.dataform.v1beta1 + * @classdesc Represents a ListReleaseConfigsResponse. + * @implements IListReleaseConfigsResponse + * @constructor + * @param {google.cloud.dataform.v1beta1.IListReleaseConfigsResponse=} [properties] Properties to set + */ + function ListReleaseConfigsResponse(properties) { + this.releaseConfigs = []; + this.unreachable = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListReleaseConfigsResponse releaseConfigs. + * @member {Array.} releaseConfigs + * @memberof google.cloud.dataform.v1beta1.ListReleaseConfigsResponse + * @instance + */ + ListReleaseConfigsResponse.prototype.releaseConfigs = $util.emptyArray; + + /** + * ListReleaseConfigsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dataform.v1beta1.ListReleaseConfigsResponse + * @instance + */ + ListReleaseConfigsResponse.prototype.nextPageToken = ""; + + /** + * ListReleaseConfigsResponse unreachable. + * @member {Array.} unreachable + * @memberof google.cloud.dataform.v1beta1.ListReleaseConfigsResponse + * @instance + */ + ListReleaseConfigsResponse.prototype.unreachable = $util.emptyArray; + + /** + * Creates a new ListReleaseConfigsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.dataform.v1beta1.ListReleaseConfigsResponse + * @static + * @param {google.cloud.dataform.v1beta1.IListReleaseConfigsResponse=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.ListReleaseConfigsResponse} ListReleaseConfigsResponse instance + */ + ListReleaseConfigsResponse.create = function create(properties) { + return new ListReleaseConfigsResponse(properties); + }; + + /** + * Encodes the specified ListReleaseConfigsResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.ListReleaseConfigsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.dataform.v1beta1.ListReleaseConfigsResponse + * @static + * @param {google.cloud.dataform.v1beta1.IListReleaseConfigsResponse} message ListReleaseConfigsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListReleaseConfigsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.releaseConfigs != null && message.releaseConfigs.length) + for (var i = 0; i < message.releaseConfigs.length; ++i) + $root.google.cloud.dataform.v1beta1.ReleaseConfig.encode(message.releaseConfigs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.unreachable != null && message.unreachable.length) + for (var i = 0; i < message.unreachable.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); + return writer; + }; + + /** + * Encodes the specified ListReleaseConfigsResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.ListReleaseConfigsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dataform.v1beta1.ListReleaseConfigsResponse + * @static + * @param {google.cloud.dataform.v1beta1.IListReleaseConfigsResponse} message ListReleaseConfigsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListReleaseConfigsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListReleaseConfigsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dataform.v1beta1.ListReleaseConfigsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dataform.v1beta1.ListReleaseConfigsResponse} ListReleaseConfigsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListReleaseConfigsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.releaseConfigs && message.releaseConfigs.length)) + message.releaseConfigs = []; + message.releaseConfigs.push($root.google.cloud.dataform.v1beta1.ReleaseConfig.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } + case 3: { + if (!(message.unreachable && message.unreachable.length)) + message.unreachable = []; + message.unreachable.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListReleaseConfigsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dataform.v1beta1.ListReleaseConfigsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dataform.v1beta1.ListReleaseConfigsResponse} ListReleaseConfigsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListReleaseConfigsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListReleaseConfigsResponse message. + * @function verify + * @memberof google.cloud.dataform.v1beta1.ListReleaseConfigsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListReleaseConfigsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.releaseConfigs != null && message.hasOwnProperty("releaseConfigs")) { + if (!Array.isArray(message.releaseConfigs)) + return "releaseConfigs: array expected"; + for (var i = 0; i < message.releaseConfigs.length; ++i) { + var error = $root.google.cloud.dataform.v1beta1.ReleaseConfig.verify(message.releaseConfigs[i]); + if (error) + return "releaseConfigs." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + if (message.unreachable != null && message.hasOwnProperty("unreachable")) { + if (!Array.isArray(message.unreachable)) + return "unreachable: array expected"; + for (var i = 0; i < message.unreachable.length; ++i) + if (!$util.isString(message.unreachable[i])) + return "unreachable: string[] expected"; + } + return null; + }; + + /** + * Creates a ListReleaseConfigsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dataform.v1beta1.ListReleaseConfigsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dataform.v1beta1.ListReleaseConfigsResponse} ListReleaseConfigsResponse + */ + ListReleaseConfigsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse) + return object; + var message = new $root.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse(); + if (object.releaseConfigs) { + if (!Array.isArray(object.releaseConfigs)) + throw TypeError(".google.cloud.dataform.v1beta1.ListReleaseConfigsResponse.releaseConfigs: array expected"); + message.releaseConfigs = []; + for (var i = 0; i < object.releaseConfigs.length; ++i) { + if (typeof object.releaseConfigs[i] !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.ListReleaseConfigsResponse.releaseConfigs: object expected"); + message.releaseConfigs[i] = $root.google.cloud.dataform.v1beta1.ReleaseConfig.fromObject(object.releaseConfigs[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.unreachable) { + if (!Array.isArray(object.unreachable)) + throw TypeError(".google.cloud.dataform.v1beta1.ListReleaseConfigsResponse.unreachable: array expected"); + message.unreachable = []; + for (var i = 0; i < object.unreachable.length; ++i) + message.unreachable[i] = String(object.unreachable[i]); + } + return message; + }; + + /** + * Creates a plain object from a ListReleaseConfigsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dataform.v1beta1.ListReleaseConfigsResponse + * @static + * @param {google.cloud.dataform.v1beta1.ListReleaseConfigsResponse} message ListReleaseConfigsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListReleaseConfigsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.releaseConfigs = []; + object.unreachable = []; + } + if (options.defaults) + object.nextPageToken = ""; + if (message.releaseConfigs && message.releaseConfigs.length) { + object.releaseConfigs = []; + for (var j = 0; j < message.releaseConfigs.length; ++j) + object.releaseConfigs[j] = $root.google.cloud.dataform.v1beta1.ReleaseConfig.toObject(message.releaseConfigs[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + if (message.unreachable && message.unreachable.length) { + object.unreachable = []; + for (var j = 0; j < message.unreachable.length; ++j) + object.unreachable[j] = message.unreachable[j]; + } + return object; + }; + + /** + * Converts this ListReleaseConfigsResponse to JSON. + * @function toJSON + * @memberof google.cloud.dataform.v1beta1.ListReleaseConfigsResponse + * @instance + * @returns {Object.} JSON object + */ + ListReleaseConfigsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListReleaseConfigsResponse + * @function getTypeUrl + * @memberof google.cloud.dataform.v1beta1.ListReleaseConfigsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListReleaseConfigsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.ListReleaseConfigsResponse"; + }; + + return ListReleaseConfigsResponse; + })(); + + v1beta1.GetReleaseConfigRequest = (function() { + + /** + * Properties of a GetReleaseConfigRequest. + * @memberof google.cloud.dataform.v1beta1 + * @interface IGetReleaseConfigRequest + * @property {string|null} [name] GetReleaseConfigRequest name + */ + + /** + * Constructs a new GetReleaseConfigRequest. + * @memberof google.cloud.dataform.v1beta1 + * @classdesc Represents a GetReleaseConfigRequest. + * @implements IGetReleaseConfigRequest + * @constructor + * @param {google.cloud.dataform.v1beta1.IGetReleaseConfigRequest=} [properties] Properties to set + */ + function GetReleaseConfigRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetReleaseConfigRequest name. + * @member {string} name + * @memberof google.cloud.dataform.v1beta1.GetReleaseConfigRequest + * @instance + */ + GetReleaseConfigRequest.prototype.name = ""; + + /** + * Creates a new GetReleaseConfigRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dataform.v1beta1.GetReleaseConfigRequest + * @static + * @param {google.cloud.dataform.v1beta1.IGetReleaseConfigRequest=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.GetReleaseConfigRequest} GetReleaseConfigRequest instance + */ + GetReleaseConfigRequest.create = function create(properties) { + return new GetReleaseConfigRequest(properties); + }; + + /** + * Encodes the specified GetReleaseConfigRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.GetReleaseConfigRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dataform.v1beta1.GetReleaseConfigRequest + * @static + * @param {google.cloud.dataform.v1beta1.IGetReleaseConfigRequest} message GetReleaseConfigRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetReleaseConfigRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified GetReleaseConfigRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.GetReleaseConfigRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dataform.v1beta1.GetReleaseConfigRequest + * @static + * @param {google.cloud.dataform.v1beta1.IGetReleaseConfigRequest} message GetReleaseConfigRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetReleaseConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetReleaseConfigRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dataform.v1beta1.GetReleaseConfigRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dataform.v1beta1.GetReleaseConfigRequest} GetReleaseConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetReleaseConfigRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.GetReleaseConfigRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetReleaseConfigRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dataform.v1beta1.GetReleaseConfigRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dataform.v1beta1.GetReleaseConfigRequest} GetReleaseConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetReleaseConfigRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetReleaseConfigRequest message. + * @function verify + * @memberof google.cloud.dataform.v1beta1.GetReleaseConfigRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetReleaseConfigRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a GetReleaseConfigRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dataform.v1beta1.GetReleaseConfigRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dataform.v1beta1.GetReleaseConfigRequest} GetReleaseConfigRequest + */ + GetReleaseConfigRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.GetReleaseConfigRequest) + return object; + var message = new $root.google.cloud.dataform.v1beta1.GetReleaseConfigRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetReleaseConfigRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dataform.v1beta1.GetReleaseConfigRequest + * @static + * @param {google.cloud.dataform.v1beta1.GetReleaseConfigRequest} message GetReleaseConfigRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetReleaseConfigRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this GetReleaseConfigRequest to JSON. + * @function toJSON + * @memberof google.cloud.dataform.v1beta1.GetReleaseConfigRequest + * @instance + * @returns {Object.} JSON object + */ + GetReleaseConfigRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetReleaseConfigRequest + * @function getTypeUrl + * @memberof google.cloud.dataform.v1beta1.GetReleaseConfigRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetReleaseConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.GetReleaseConfigRequest"; + }; + + return GetReleaseConfigRequest; + })(); + + v1beta1.CreateReleaseConfigRequest = (function() { + + /** + * Properties of a CreateReleaseConfigRequest. + * @memberof google.cloud.dataform.v1beta1 + * @interface ICreateReleaseConfigRequest + * @property {string|null} [parent] CreateReleaseConfigRequest parent + * @property {google.cloud.dataform.v1beta1.IReleaseConfig|null} [releaseConfig] CreateReleaseConfigRequest releaseConfig + * @property {string|null} [releaseConfigId] CreateReleaseConfigRequest releaseConfigId + */ + + /** + * Constructs a new CreateReleaseConfigRequest. + * @memberof google.cloud.dataform.v1beta1 + * @classdesc Represents a CreateReleaseConfigRequest. + * @implements ICreateReleaseConfigRequest + * @constructor + * @param {google.cloud.dataform.v1beta1.ICreateReleaseConfigRequest=} [properties] Properties to set + */ + function CreateReleaseConfigRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CreateReleaseConfigRequest parent. + * @member {string} parent + * @memberof google.cloud.dataform.v1beta1.CreateReleaseConfigRequest + * @instance + */ + CreateReleaseConfigRequest.prototype.parent = ""; + + /** + * CreateReleaseConfigRequest releaseConfig. + * @member {google.cloud.dataform.v1beta1.IReleaseConfig|null|undefined} releaseConfig + * @memberof google.cloud.dataform.v1beta1.CreateReleaseConfigRequest + * @instance + */ + CreateReleaseConfigRequest.prototype.releaseConfig = null; + + /** + * CreateReleaseConfigRequest releaseConfigId. + * @member {string} releaseConfigId + * @memberof google.cloud.dataform.v1beta1.CreateReleaseConfigRequest + * @instance + */ + CreateReleaseConfigRequest.prototype.releaseConfigId = ""; + + /** + * Creates a new CreateReleaseConfigRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dataform.v1beta1.CreateReleaseConfigRequest + * @static + * @param {google.cloud.dataform.v1beta1.ICreateReleaseConfigRequest=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.CreateReleaseConfigRequest} CreateReleaseConfigRequest instance + */ + CreateReleaseConfigRequest.create = function create(properties) { + return new CreateReleaseConfigRequest(properties); + }; + + /** + * Encodes the specified CreateReleaseConfigRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.CreateReleaseConfigRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dataform.v1beta1.CreateReleaseConfigRequest + * @static + * @param {google.cloud.dataform.v1beta1.ICreateReleaseConfigRequest} message CreateReleaseConfigRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateReleaseConfigRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.releaseConfig != null && Object.hasOwnProperty.call(message, "releaseConfig")) + $root.google.cloud.dataform.v1beta1.ReleaseConfig.encode(message.releaseConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.releaseConfigId != null && Object.hasOwnProperty.call(message, "releaseConfigId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.releaseConfigId); + return writer; + }; + + /** + * Encodes the specified CreateReleaseConfigRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CreateReleaseConfigRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dataform.v1beta1.CreateReleaseConfigRequest + * @static + * @param {google.cloud.dataform.v1beta1.ICreateReleaseConfigRequest} message CreateReleaseConfigRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateReleaseConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateReleaseConfigRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dataform.v1beta1.CreateReleaseConfigRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dataform.v1beta1.CreateReleaseConfigRequest} CreateReleaseConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateReleaseConfigRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.releaseConfig = $root.google.cloud.dataform.v1beta1.ReleaseConfig.decode(reader, reader.uint32()); + break; + } + case 3: { + message.releaseConfigId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateReleaseConfigRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dataform.v1beta1.CreateReleaseConfigRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dataform.v1beta1.CreateReleaseConfigRequest} CreateReleaseConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateReleaseConfigRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateReleaseConfigRequest message. + * @function verify + * @memberof google.cloud.dataform.v1beta1.CreateReleaseConfigRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateReleaseConfigRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.releaseConfig != null && message.hasOwnProperty("releaseConfig")) { + var error = $root.google.cloud.dataform.v1beta1.ReleaseConfig.verify(message.releaseConfig); + if (error) + return "releaseConfig." + error; + } + if (message.releaseConfigId != null && message.hasOwnProperty("releaseConfigId")) + if (!$util.isString(message.releaseConfigId)) + return "releaseConfigId: string expected"; + return null; + }; + + /** + * Creates a CreateReleaseConfigRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dataform.v1beta1.CreateReleaseConfigRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dataform.v1beta1.CreateReleaseConfigRequest} CreateReleaseConfigRequest + */ + CreateReleaseConfigRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest) + return object; + var message = new $root.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.releaseConfig != null) { + if (typeof object.releaseConfig !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.CreateReleaseConfigRequest.releaseConfig: object expected"); + message.releaseConfig = $root.google.cloud.dataform.v1beta1.ReleaseConfig.fromObject(object.releaseConfig); + } + if (object.releaseConfigId != null) + message.releaseConfigId = String(object.releaseConfigId); + return message; + }; + + /** + * Creates a plain object from a CreateReleaseConfigRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dataform.v1beta1.CreateReleaseConfigRequest + * @static + * @param {google.cloud.dataform.v1beta1.CreateReleaseConfigRequest} message CreateReleaseConfigRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateReleaseConfigRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.releaseConfig = null; + object.releaseConfigId = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.releaseConfig != null && message.hasOwnProperty("releaseConfig")) + object.releaseConfig = $root.google.cloud.dataform.v1beta1.ReleaseConfig.toObject(message.releaseConfig, options); + if (message.releaseConfigId != null && message.hasOwnProperty("releaseConfigId")) + object.releaseConfigId = message.releaseConfigId; + return object; + }; + + /** + * Converts this CreateReleaseConfigRequest to JSON. + * @function toJSON + * @memberof google.cloud.dataform.v1beta1.CreateReleaseConfigRequest + * @instance + * @returns {Object.} JSON object + */ + CreateReleaseConfigRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CreateReleaseConfigRequest + * @function getTypeUrl + * @memberof google.cloud.dataform.v1beta1.CreateReleaseConfigRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateReleaseConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.CreateReleaseConfigRequest"; + }; + + return CreateReleaseConfigRequest; + })(); + + v1beta1.UpdateReleaseConfigRequest = (function() { + + /** + * Properties of an UpdateReleaseConfigRequest. + * @memberof google.cloud.dataform.v1beta1 + * @interface IUpdateReleaseConfigRequest + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateReleaseConfigRequest updateMask + * @property {google.cloud.dataform.v1beta1.IReleaseConfig|null} [releaseConfig] UpdateReleaseConfigRequest releaseConfig + */ + + /** + * Constructs a new UpdateReleaseConfigRequest. + * @memberof google.cloud.dataform.v1beta1 + * @classdesc Represents an UpdateReleaseConfigRequest. + * @implements IUpdateReleaseConfigRequest + * @constructor + * @param {google.cloud.dataform.v1beta1.IUpdateReleaseConfigRequest=} [properties] Properties to set + */ + function UpdateReleaseConfigRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * UpdateReleaseConfigRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest + * @instance + */ + UpdateReleaseConfigRequest.prototype.updateMask = null; + + /** + * UpdateReleaseConfigRequest releaseConfig. + * @member {google.cloud.dataform.v1beta1.IReleaseConfig|null|undefined} releaseConfig + * @memberof google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest + * @instance + */ + UpdateReleaseConfigRequest.prototype.releaseConfig = null; + + /** + * Creates a new UpdateReleaseConfigRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest + * @static + * @param {google.cloud.dataform.v1beta1.IUpdateReleaseConfigRequest=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest} UpdateReleaseConfigRequest instance + */ + UpdateReleaseConfigRequest.create = function create(properties) { + return new UpdateReleaseConfigRequest(properties); + }; + + /** + * Encodes the specified UpdateReleaseConfigRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest + * @static + * @param {google.cloud.dataform.v1beta1.IUpdateReleaseConfigRequest} message UpdateReleaseConfigRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateReleaseConfigRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.releaseConfig != null && Object.hasOwnProperty.call(message, "releaseConfig")) + $root.google.cloud.dataform.v1beta1.ReleaseConfig.encode(message.releaseConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified UpdateReleaseConfigRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest + * @static + * @param {google.cloud.dataform.v1beta1.IUpdateReleaseConfigRequest} message UpdateReleaseConfigRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateReleaseConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateReleaseConfigRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest} UpdateReleaseConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateReleaseConfigRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } + case 2: { + message.releaseConfig = $root.google.cloud.dataform.v1beta1.ReleaseConfig.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpdateReleaseConfigRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest} UpdateReleaseConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateReleaseConfigRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateReleaseConfigRequest message. + * @function verify + * @memberof google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateReleaseConfigRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } + if (message.releaseConfig != null && message.hasOwnProperty("releaseConfig")) { + var error = $root.google.cloud.dataform.v1beta1.ReleaseConfig.verify(message.releaseConfig); + if (error) + return "releaseConfig." + error; + } + return null; + }; + + /** + * Creates an UpdateReleaseConfigRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest} UpdateReleaseConfigRequest + */ + UpdateReleaseConfigRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest) + return object; + var message = new $root.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest(); + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + if (object.releaseConfig != null) { + if (typeof object.releaseConfig !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest.releaseConfig: object expected"); + message.releaseConfig = $root.google.cloud.dataform.v1beta1.ReleaseConfig.fromObject(object.releaseConfig); + } + return message; + }; + + /** + * Creates a plain object from an UpdateReleaseConfigRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest + * @static + * @param {google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest} message UpdateReleaseConfigRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateReleaseConfigRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.updateMask = null; + object.releaseConfig = null; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.releaseConfig != null && message.hasOwnProperty("releaseConfig")) + object.releaseConfig = $root.google.cloud.dataform.v1beta1.ReleaseConfig.toObject(message.releaseConfig, options); + return object; + }; + + /** + * Converts this UpdateReleaseConfigRequest to JSON. + * @function toJSON + * @memberof google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateReleaseConfigRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UpdateReleaseConfigRequest + * @function getTypeUrl + * @memberof google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateReleaseConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest"; + }; + + return UpdateReleaseConfigRequest; + })(); + + v1beta1.DeleteReleaseConfigRequest = (function() { + + /** + * Properties of a DeleteReleaseConfigRequest. + * @memberof google.cloud.dataform.v1beta1 + * @interface IDeleteReleaseConfigRequest + * @property {string|null} [name] DeleteReleaseConfigRequest name + */ + + /** + * Constructs a new DeleteReleaseConfigRequest. + * @memberof google.cloud.dataform.v1beta1 + * @classdesc Represents a DeleteReleaseConfigRequest. + * @implements IDeleteReleaseConfigRequest + * @constructor + * @param {google.cloud.dataform.v1beta1.IDeleteReleaseConfigRequest=} [properties] Properties to set + */ + function DeleteReleaseConfigRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DeleteReleaseConfigRequest name. + * @member {string} name + * @memberof google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest + * @instance + */ + DeleteReleaseConfigRequest.prototype.name = ""; + + /** + * Creates a new DeleteReleaseConfigRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest + * @static + * @param {google.cloud.dataform.v1beta1.IDeleteReleaseConfigRequest=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest} DeleteReleaseConfigRequest instance + */ + DeleteReleaseConfigRequest.create = function create(properties) { + return new DeleteReleaseConfigRequest(properties); + }; + + /** + * Encodes the specified DeleteReleaseConfigRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest + * @static + * @param {google.cloud.dataform.v1beta1.IDeleteReleaseConfigRequest} message DeleteReleaseConfigRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteReleaseConfigRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified DeleteReleaseConfigRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest + * @static + * @param {google.cloud.dataform.v1beta1.IDeleteReleaseConfigRequest} message DeleteReleaseConfigRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteReleaseConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteReleaseConfigRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest} DeleteReleaseConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteReleaseConfigRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeleteReleaseConfigRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest} DeleteReleaseConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteReleaseConfigRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteReleaseConfigRequest message. + * @function verify + * @memberof google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteReleaseConfigRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a DeleteReleaseConfigRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest} DeleteReleaseConfigRequest + */ + DeleteReleaseConfigRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest) + return object; + var message = new $root.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a DeleteReleaseConfigRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest + * @static + * @param {google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest} message DeleteReleaseConfigRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteReleaseConfigRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this DeleteReleaseConfigRequest to JSON. + * @function toJSON + * @memberof google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteReleaseConfigRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeleteReleaseConfigRequest + * @function getTypeUrl + * @memberof google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteReleaseConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest"; + }; + + return DeleteReleaseConfigRequest; + })(); + + v1beta1.CompilationResult = (function() { + + /** + * Properties of a CompilationResult. + * @memberof google.cloud.dataform.v1beta1 + * @interface ICompilationResult + * @property {string|null} [name] CompilationResult name + * @property {string|null} [gitCommitish] CompilationResult gitCommitish + * @property {string|null} [workspace] CompilationResult workspace + * @property {string|null} [releaseConfig] CompilationResult releaseConfig + * @property {google.cloud.dataform.v1beta1.ICodeCompilationConfig|null} [codeCompilationConfig] CompilationResult codeCompilationConfig + * @property {string|null} [resolvedGitCommitSha] CompilationResult resolvedGitCommitSha + * @property {string|null} [dataformCoreVersion] CompilationResult dataformCoreVersion + * @property {Array.|null} [compilationErrors] CompilationResult compilationErrors + */ + + /** + * Constructs a new CompilationResult. + * @memberof google.cloud.dataform.v1beta1 + * @classdesc Represents a CompilationResult. + * @implements ICompilationResult + * @constructor + * @param {google.cloud.dataform.v1beta1.ICompilationResult=} [properties] Properties to set + */ + function CompilationResult(properties) { + this.compilationErrors = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CompilationResult name. + * @member {string} name + * @memberof google.cloud.dataform.v1beta1.CompilationResult + * @instance + */ + CompilationResult.prototype.name = ""; + + /** + * CompilationResult gitCommitish. + * @member {string|null|undefined} gitCommitish + * @memberof google.cloud.dataform.v1beta1.CompilationResult + * @instance + */ + CompilationResult.prototype.gitCommitish = null; + + /** + * CompilationResult workspace. + * @member {string|null|undefined} workspace + * @memberof google.cloud.dataform.v1beta1.CompilationResult + * @instance + */ + CompilationResult.prototype.workspace = null; + + /** + * CompilationResult releaseConfig. + * @member {string|null|undefined} releaseConfig + * @memberof google.cloud.dataform.v1beta1.CompilationResult + * @instance + */ + CompilationResult.prototype.releaseConfig = null; + + /** + * CompilationResult codeCompilationConfig. + * @member {google.cloud.dataform.v1beta1.ICodeCompilationConfig|null|undefined} codeCompilationConfig + * @memberof google.cloud.dataform.v1beta1.CompilationResult + * @instance + */ + CompilationResult.prototype.codeCompilationConfig = null; + + /** + * CompilationResult resolvedGitCommitSha. + * @member {string} resolvedGitCommitSha + * @memberof google.cloud.dataform.v1beta1.CompilationResult + * @instance + */ + CompilationResult.prototype.resolvedGitCommitSha = ""; + + /** + * CompilationResult dataformCoreVersion. + * @member {string} dataformCoreVersion + * @memberof google.cloud.dataform.v1beta1.CompilationResult + * @instance + */ + CompilationResult.prototype.dataformCoreVersion = ""; + + /** + * CompilationResult compilationErrors. + * @member {Array.} compilationErrors + * @memberof google.cloud.dataform.v1beta1.CompilationResult + * @instance + */ + CompilationResult.prototype.compilationErrors = $util.emptyArray; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * CompilationResult source. + * @member {"gitCommitish"|"workspace"|"releaseConfig"|undefined} source + * @memberof google.cloud.dataform.v1beta1.CompilationResult + * @instance + */ + Object.defineProperty(CompilationResult.prototype, "source", { + get: $util.oneOfGetter($oneOfFields = ["gitCommitish", "workspace", "releaseConfig"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new CompilationResult instance using the specified properties. + * @function create + * @memberof google.cloud.dataform.v1beta1.CompilationResult + * @static + * @param {google.cloud.dataform.v1beta1.ICompilationResult=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.CompilationResult} CompilationResult instance + */ + CompilationResult.create = function create(properties) { + return new CompilationResult(properties); + }; + + /** + * Encodes the specified CompilationResult message. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.dataform.v1beta1.CompilationResult + * @static + * @param {google.cloud.dataform.v1beta1.ICompilationResult} message CompilationResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompilationResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.gitCommitish != null && Object.hasOwnProperty.call(message, "gitCommitish")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.gitCommitish); + if (message.workspace != null && Object.hasOwnProperty.call(message, "workspace")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.workspace); + if (message.codeCompilationConfig != null && Object.hasOwnProperty.call(message, "codeCompilationConfig")) + $root.google.cloud.dataform.v1beta1.CodeCompilationConfig.encode(message.codeCompilationConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.dataformCoreVersion != null && Object.hasOwnProperty.call(message, "dataformCoreVersion")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.dataformCoreVersion); + if (message.compilationErrors != null && message.compilationErrors.length) + for (var i = 0; i < message.compilationErrors.length; ++i) + $root.google.cloud.dataform.v1beta1.CompilationResult.CompilationError.encode(message.compilationErrors[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.releaseConfig != null && Object.hasOwnProperty.call(message, "releaseConfig")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.releaseConfig); + if (message.resolvedGitCommitSha != null && Object.hasOwnProperty.call(message, "resolvedGitCommitSha")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.resolvedGitCommitSha); + return writer; + }; + + /** + * Encodes the specified CompilationResult message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResult.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dataform.v1beta1.CompilationResult + * @static + * @param {google.cloud.dataform.v1beta1.ICompilationResult} message CompilationResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompilationResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CompilationResult message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dataform.v1beta1.CompilationResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dataform.v1beta1.CompilationResult} CompilationResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompilationResult.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.CompilationResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.gitCommitish = reader.string(); + break; + } + case 3: { + message.workspace = reader.string(); + break; + } + case 7: { + message.releaseConfig = reader.string(); + break; + } + case 4: { + message.codeCompilationConfig = $root.google.cloud.dataform.v1beta1.CodeCompilationConfig.decode(reader, reader.uint32()); + break; + } + case 8: { + message.resolvedGitCommitSha = reader.string(); + break; + } + case 5: { + message.dataformCoreVersion = reader.string(); + break; + } + case 6: { + if (!(message.compilationErrors && message.compilationErrors.length)) + message.compilationErrors = []; + message.compilationErrors.push($root.google.cloud.dataform.v1beta1.CompilationResult.CompilationError.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CompilationResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dataform.v1beta1.CompilationResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dataform.v1beta1.CompilationResult} CompilationResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompilationResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CompilationResult message. + * @function verify + * @memberof google.cloud.dataform.v1beta1.CompilationResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CompilationResult.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.gitCommitish != null && message.hasOwnProperty("gitCommitish")) { + properties.source = 1; + if (!$util.isString(message.gitCommitish)) + return "gitCommitish: string expected"; + } + if (message.workspace != null && message.hasOwnProperty("workspace")) { + if (properties.source === 1) + return "source: multiple values"; + properties.source = 1; + if (!$util.isString(message.workspace)) + return "workspace: string expected"; + } + if (message.releaseConfig != null && message.hasOwnProperty("releaseConfig")) { + if (properties.source === 1) + return "source: multiple values"; + properties.source = 1; + if (!$util.isString(message.releaseConfig)) + return "releaseConfig: string expected"; + } + if (message.codeCompilationConfig != null && message.hasOwnProperty("codeCompilationConfig")) { + var error = $root.google.cloud.dataform.v1beta1.CodeCompilationConfig.verify(message.codeCompilationConfig); + if (error) + return "codeCompilationConfig." + error; + } + if (message.resolvedGitCommitSha != null && message.hasOwnProperty("resolvedGitCommitSha")) + if (!$util.isString(message.resolvedGitCommitSha)) + return "resolvedGitCommitSha: string expected"; + if (message.dataformCoreVersion != null && message.hasOwnProperty("dataformCoreVersion")) + if (!$util.isString(message.dataformCoreVersion)) + return "dataformCoreVersion: string expected"; + if (message.compilationErrors != null && message.hasOwnProperty("compilationErrors")) { + if (!Array.isArray(message.compilationErrors)) + return "compilationErrors: array expected"; + for (var i = 0; i < message.compilationErrors.length; ++i) { + var error = $root.google.cloud.dataform.v1beta1.CompilationResult.CompilationError.verify(message.compilationErrors[i]); + if (error) + return "compilationErrors." + error; + } + } + return null; + }; + + /** + * Creates a CompilationResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dataform.v1beta1.CompilationResult + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dataform.v1beta1.CompilationResult} CompilationResult + */ + CompilationResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.CompilationResult) + return object; + var message = new $root.google.cloud.dataform.v1beta1.CompilationResult(); + if (object.name != null) + message.name = String(object.name); + if (object.gitCommitish != null) + message.gitCommitish = String(object.gitCommitish); + if (object.workspace != null) + message.workspace = String(object.workspace); + if (object.releaseConfig != null) + message.releaseConfig = String(object.releaseConfig); + if (object.codeCompilationConfig != null) { + if (typeof object.codeCompilationConfig !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.CompilationResult.codeCompilationConfig: object expected"); + message.codeCompilationConfig = $root.google.cloud.dataform.v1beta1.CodeCompilationConfig.fromObject(object.codeCompilationConfig); + } + if (object.resolvedGitCommitSha != null) + message.resolvedGitCommitSha = String(object.resolvedGitCommitSha); + if (object.dataformCoreVersion != null) + message.dataformCoreVersion = String(object.dataformCoreVersion); + if (object.compilationErrors) { + if (!Array.isArray(object.compilationErrors)) + throw TypeError(".google.cloud.dataform.v1beta1.CompilationResult.compilationErrors: array expected"); + message.compilationErrors = []; + for (var i = 0; i < object.compilationErrors.length; ++i) { + if (typeof object.compilationErrors[i] !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.CompilationResult.compilationErrors: object expected"); + message.compilationErrors[i] = $root.google.cloud.dataform.v1beta1.CompilationResult.CompilationError.fromObject(object.compilationErrors[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a CompilationResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dataform.v1beta1.CompilationResult + * @static + * @param {google.cloud.dataform.v1beta1.CompilationResult} message CompilationResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CompilationResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.compilationErrors = []; + if (options.defaults) { + object.name = ""; + object.codeCompilationConfig = null; + object.dataformCoreVersion = ""; + object.resolvedGitCommitSha = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.gitCommitish != null && message.hasOwnProperty("gitCommitish")) { + object.gitCommitish = message.gitCommitish; + if (options.oneofs) + object.source = "gitCommitish"; + } + if (message.workspace != null && message.hasOwnProperty("workspace")) { + object.workspace = message.workspace; + if (options.oneofs) + object.source = "workspace"; + } + if (message.codeCompilationConfig != null && message.hasOwnProperty("codeCompilationConfig")) + object.codeCompilationConfig = $root.google.cloud.dataform.v1beta1.CodeCompilationConfig.toObject(message.codeCompilationConfig, options); + if (message.dataformCoreVersion != null && message.hasOwnProperty("dataformCoreVersion")) + object.dataformCoreVersion = message.dataformCoreVersion; + if (message.compilationErrors && message.compilationErrors.length) { + object.compilationErrors = []; + for (var j = 0; j < message.compilationErrors.length; ++j) + object.compilationErrors[j] = $root.google.cloud.dataform.v1beta1.CompilationResult.CompilationError.toObject(message.compilationErrors[j], options); + } + if (message.releaseConfig != null && message.hasOwnProperty("releaseConfig")) { + object.releaseConfig = message.releaseConfig; + if (options.oneofs) + object.source = "releaseConfig"; + } + if (message.resolvedGitCommitSha != null && message.hasOwnProperty("resolvedGitCommitSha")) + object.resolvedGitCommitSha = message.resolvedGitCommitSha; + return object; + }; + + /** + * Converts this CompilationResult to JSON. + * @function toJSON + * @memberof google.cloud.dataform.v1beta1.CompilationResult + * @instance + * @returns {Object.} JSON object + */ + CompilationResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CompilationResult + * @function getTypeUrl + * @memberof google.cloud.dataform.v1beta1.CompilationResult + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CompilationResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.CompilationResult"; + }; + + CompilationResult.CompilationError = (function() { + + /** + * Properties of a CompilationError. + * @memberof google.cloud.dataform.v1beta1.CompilationResult + * @interface ICompilationError + * @property {string|null} [message] CompilationError message + * @property {string|null} [stack] CompilationError stack + * @property {string|null} [path] CompilationError path + * @property {google.cloud.dataform.v1beta1.ITarget|null} [actionTarget] CompilationError actionTarget + */ + + /** + * Constructs a new CompilationError. + * @memberof google.cloud.dataform.v1beta1.CompilationResult + * @classdesc Represents a CompilationError. + * @implements ICompilationError + * @constructor + * @param {google.cloud.dataform.v1beta1.CompilationResult.ICompilationError=} [properties] Properties to set + */ + function CompilationError(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CompilationError message. + * @member {string} message + * @memberof google.cloud.dataform.v1beta1.CompilationResult.CompilationError + * @instance + */ + CompilationError.prototype.message = ""; + + /** + * CompilationError stack. + * @member {string} stack + * @memberof google.cloud.dataform.v1beta1.CompilationResult.CompilationError + * @instance + */ + CompilationError.prototype.stack = ""; + + /** + * CompilationError path. + * @member {string} path + * @memberof google.cloud.dataform.v1beta1.CompilationResult.CompilationError + * @instance + */ + CompilationError.prototype.path = ""; + + /** + * CompilationError actionTarget. + * @member {google.cloud.dataform.v1beta1.ITarget|null|undefined} actionTarget + * @memberof google.cloud.dataform.v1beta1.CompilationResult.CompilationError + * @instance + */ + CompilationError.prototype.actionTarget = null; + + /** + * Creates a new CompilationError instance using the specified properties. + * @function create + * @memberof google.cloud.dataform.v1beta1.CompilationResult.CompilationError + * @static + * @param {google.cloud.dataform.v1beta1.CompilationResult.ICompilationError=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.CompilationResult.CompilationError} CompilationError instance + */ + CompilationError.create = function create(properties) { + return new CompilationError(properties); + }; + + /** + * Encodes the specified CompilationError message. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResult.CompilationError.verify|verify} messages. + * @function encode + * @memberof google.cloud.dataform.v1beta1.CompilationResult.CompilationError + * @static + * @param {google.cloud.dataform.v1beta1.CompilationResult.ICompilationError} message CompilationError message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompilationError.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.message); + if (message.stack != null && Object.hasOwnProperty.call(message, "stack")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.stack); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.path); + if (message.actionTarget != null && Object.hasOwnProperty.call(message, "actionTarget")) + $root.google.cloud.dataform.v1beta1.Target.encode(message.actionTarget, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CompilationError message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResult.CompilationError.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dataform.v1beta1.CompilationResult.CompilationError + * @static + * @param {google.cloud.dataform.v1beta1.CompilationResult.ICompilationError} message CompilationError message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompilationError.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CompilationError message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dataform.v1beta1.CompilationResult.CompilationError + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dataform.v1beta1.CompilationResult.CompilationError} CompilationError + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompilationError.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.CompilationResult.CompilationError(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.message = reader.string(); + break; + } + case 2: { + message.stack = reader.string(); + break; + } + case 3: { + message.path = reader.string(); + break; + } + case 4: { + message.actionTarget = $root.google.cloud.dataform.v1beta1.Target.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CompilationError message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dataform.v1beta1.CompilationResult.CompilationError + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dataform.v1beta1.CompilationResult.CompilationError} CompilationError + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompilationError.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CompilationError message. + * @function verify + * @memberof google.cloud.dataform.v1beta1.CompilationResult.CompilationError + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CompilationError.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.message != null && message.hasOwnProperty("message")) + if (!$util.isString(message.message)) + return "message: string expected"; + if (message.stack != null && message.hasOwnProperty("stack")) + if (!$util.isString(message.stack)) + return "stack: string expected"; + if (message.path != null && message.hasOwnProperty("path")) + if (!$util.isString(message.path)) + return "path: string expected"; + if (message.actionTarget != null && message.hasOwnProperty("actionTarget")) { + var error = $root.google.cloud.dataform.v1beta1.Target.verify(message.actionTarget); + if (error) + return "actionTarget." + error; + } + return null; + }; + + /** + * Creates a CompilationError message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dataform.v1beta1.CompilationResult.CompilationError + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dataform.v1beta1.CompilationResult.CompilationError} CompilationError + */ + CompilationError.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.CompilationResult.CompilationError) + return object; + var message = new $root.google.cloud.dataform.v1beta1.CompilationResult.CompilationError(); + if (object.message != null) + message.message = String(object.message); + if (object.stack != null) + message.stack = String(object.stack); + if (object.path != null) + message.path = String(object.path); + if (object.actionTarget != null) { + if (typeof object.actionTarget !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.CompilationResult.CompilationError.actionTarget: object expected"); + message.actionTarget = $root.google.cloud.dataform.v1beta1.Target.fromObject(object.actionTarget); + } + return message; + }; + + /** + * Creates a plain object from a CompilationError message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dataform.v1beta1.CompilationResult.CompilationError + * @static + * @param {google.cloud.dataform.v1beta1.CompilationResult.CompilationError} message CompilationError + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CompilationError.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.message = ""; + object.stack = ""; + object.path = ""; + object.actionTarget = null; + } + if (message.message != null && message.hasOwnProperty("message")) + object.message = message.message; + if (message.stack != null && message.hasOwnProperty("stack")) + object.stack = message.stack; + if (message.path != null && message.hasOwnProperty("path")) + object.path = message.path; + if (message.actionTarget != null && message.hasOwnProperty("actionTarget")) + object.actionTarget = $root.google.cloud.dataform.v1beta1.Target.toObject(message.actionTarget, options); + return object; + }; + + /** + * Converts this CompilationError to JSON. + * @function toJSON + * @memberof google.cloud.dataform.v1beta1.CompilationResult.CompilationError + * @instance + * @returns {Object.} JSON object + */ + CompilationError.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CompilationError + * @function getTypeUrl + * @memberof google.cloud.dataform.v1beta1.CompilationResult.CompilationError + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CompilationError.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.CompilationResult.CompilationError"; + }; + + return CompilationError; + })(); + + return CompilationResult; + })(); + + v1beta1.CodeCompilationConfig = (function() { + + /** + * Properties of a CodeCompilationConfig. + * @memberof google.cloud.dataform.v1beta1 + * @interface ICodeCompilationConfig + * @property {string|null} [defaultDatabase] CodeCompilationConfig defaultDatabase + * @property {string|null} [defaultSchema] CodeCompilationConfig defaultSchema + * @property {string|null} [defaultLocation] CodeCompilationConfig defaultLocation + * @property {string|null} [assertionSchema] CodeCompilationConfig assertionSchema + * @property {Object.|null} [vars] CodeCompilationConfig vars + * @property {string|null} [databaseSuffix] CodeCompilationConfig databaseSuffix + * @property {string|null} [schemaSuffix] CodeCompilationConfig schemaSuffix + * @property {string|null} [tablePrefix] CodeCompilationConfig tablePrefix + */ + + /** + * Constructs a new CodeCompilationConfig. + * @memberof google.cloud.dataform.v1beta1 + * @classdesc Represents a CodeCompilationConfig. + * @implements ICodeCompilationConfig + * @constructor + * @param {google.cloud.dataform.v1beta1.ICodeCompilationConfig=} [properties] Properties to set + */ + function CodeCompilationConfig(properties) { + this.vars = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CodeCompilationConfig defaultDatabase. + * @member {string} defaultDatabase + * @memberof google.cloud.dataform.v1beta1.CodeCompilationConfig + * @instance + */ + CodeCompilationConfig.prototype.defaultDatabase = ""; + + /** + * CodeCompilationConfig defaultSchema. + * @member {string} defaultSchema + * @memberof google.cloud.dataform.v1beta1.CodeCompilationConfig + * @instance + */ + CodeCompilationConfig.prototype.defaultSchema = ""; + + /** + * CodeCompilationConfig defaultLocation. + * @member {string} defaultLocation + * @memberof google.cloud.dataform.v1beta1.CodeCompilationConfig + * @instance + */ + CodeCompilationConfig.prototype.defaultLocation = ""; + + /** + * CodeCompilationConfig assertionSchema. + * @member {string} assertionSchema + * @memberof google.cloud.dataform.v1beta1.CodeCompilationConfig + * @instance + */ + CodeCompilationConfig.prototype.assertionSchema = ""; + + /** + * CodeCompilationConfig vars. + * @member {Object.} vars + * @memberof google.cloud.dataform.v1beta1.CodeCompilationConfig + * @instance + */ + CodeCompilationConfig.prototype.vars = $util.emptyObject; + + /** + * CodeCompilationConfig databaseSuffix. + * @member {string} databaseSuffix + * @memberof google.cloud.dataform.v1beta1.CodeCompilationConfig + * @instance + */ + CodeCompilationConfig.prototype.databaseSuffix = ""; + + /** + * CodeCompilationConfig schemaSuffix. + * @member {string} schemaSuffix + * @memberof google.cloud.dataform.v1beta1.CodeCompilationConfig + * @instance + */ + CodeCompilationConfig.prototype.schemaSuffix = ""; + + /** + * CodeCompilationConfig tablePrefix. + * @member {string} tablePrefix + * @memberof google.cloud.dataform.v1beta1.CodeCompilationConfig + * @instance + */ + CodeCompilationConfig.prototype.tablePrefix = ""; + + /** + * Creates a new CodeCompilationConfig instance using the specified properties. + * @function create + * @memberof google.cloud.dataform.v1beta1.CodeCompilationConfig + * @static + * @param {google.cloud.dataform.v1beta1.ICodeCompilationConfig=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.CodeCompilationConfig} CodeCompilationConfig instance + */ + CodeCompilationConfig.create = function create(properties) { + return new CodeCompilationConfig(properties); + }; + + /** + * Encodes the specified CodeCompilationConfig message. Does not implicitly {@link google.cloud.dataform.v1beta1.CodeCompilationConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.dataform.v1beta1.CodeCompilationConfig + * @static + * @param {google.cloud.dataform.v1beta1.ICodeCompilationConfig} message CodeCompilationConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CodeCompilationConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.defaultDatabase != null && Object.hasOwnProperty.call(message, "defaultDatabase")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.defaultDatabase); + if (message.defaultSchema != null && Object.hasOwnProperty.call(message, "defaultSchema")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.defaultSchema); + if (message.assertionSchema != null && Object.hasOwnProperty.call(message, "assertionSchema")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.assertionSchema); + if (message.vars != null && Object.hasOwnProperty.call(message, "vars")) + for (var keys = Object.keys(message.vars), i = 0; i < keys.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.vars[keys[i]]).ldelim(); + if (message.databaseSuffix != null && Object.hasOwnProperty.call(message, "databaseSuffix")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.databaseSuffix); + if (message.schemaSuffix != null && Object.hasOwnProperty.call(message, "schemaSuffix")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.schemaSuffix); + if (message.tablePrefix != null && Object.hasOwnProperty.call(message, "tablePrefix")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.tablePrefix); + if (message.defaultLocation != null && Object.hasOwnProperty.call(message, "defaultLocation")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.defaultLocation); + return writer; + }; + + /** + * Encodes the specified CodeCompilationConfig message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CodeCompilationConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dataform.v1beta1.CodeCompilationConfig + * @static + * @param {google.cloud.dataform.v1beta1.ICodeCompilationConfig} message CodeCompilationConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CodeCompilationConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CodeCompilationConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dataform.v1beta1.CodeCompilationConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dataform.v1beta1.CodeCompilationConfig} CodeCompilationConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CodeCompilationConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.CodeCompilationConfig(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.defaultDatabase = reader.string(); + break; + } + case 2: { + message.defaultSchema = reader.string(); + break; + } + case 8: { + message.defaultLocation = reader.string(); + break; + } + case 3: { + message.assertionSchema = reader.string(); + break; + } + case 4: { + if (message.vars === $util.emptyObject) + message.vars = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.vars[key] = value; + break; + } + case 5: { + message.databaseSuffix = reader.string(); + break; + } + case 6: { + message.schemaSuffix = reader.string(); + break; + } + case 7: { + message.tablePrefix = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CodeCompilationConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dataform.v1beta1.CodeCompilationConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dataform.v1beta1.CodeCompilationConfig} CodeCompilationConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CodeCompilationConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CodeCompilationConfig message. + * @function verify + * @memberof google.cloud.dataform.v1beta1.CodeCompilationConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CodeCompilationConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.defaultDatabase != null && message.hasOwnProperty("defaultDatabase")) + if (!$util.isString(message.defaultDatabase)) + return "defaultDatabase: string expected"; + if (message.defaultSchema != null && message.hasOwnProperty("defaultSchema")) + if (!$util.isString(message.defaultSchema)) + return "defaultSchema: string expected"; + if (message.defaultLocation != null && message.hasOwnProperty("defaultLocation")) + if (!$util.isString(message.defaultLocation)) + return "defaultLocation: string expected"; + if (message.assertionSchema != null && message.hasOwnProperty("assertionSchema")) + if (!$util.isString(message.assertionSchema)) + return "assertionSchema: string expected"; + if (message.vars != null && message.hasOwnProperty("vars")) { + if (!$util.isObject(message.vars)) + return "vars: object expected"; + var key = Object.keys(message.vars); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.vars[key[i]])) + return "vars: string{k:string} expected"; + } + if (message.databaseSuffix != null && message.hasOwnProperty("databaseSuffix")) + if (!$util.isString(message.databaseSuffix)) + return "databaseSuffix: string expected"; + if (message.schemaSuffix != null && message.hasOwnProperty("schemaSuffix")) + if (!$util.isString(message.schemaSuffix)) + return "schemaSuffix: string expected"; + if (message.tablePrefix != null && message.hasOwnProperty("tablePrefix")) + if (!$util.isString(message.tablePrefix)) + return "tablePrefix: string expected"; + return null; + }; + + /** + * Creates a CodeCompilationConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dataform.v1beta1.CodeCompilationConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dataform.v1beta1.CodeCompilationConfig} CodeCompilationConfig + */ + CodeCompilationConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.CodeCompilationConfig) + return object; + var message = new $root.google.cloud.dataform.v1beta1.CodeCompilationConfig(); + if (object.defaultDatabase != null) + message.defaultDatabase = String(object.defaultDatabase); + if (object.defaultSchema != null) + message.defaultSchema = String(object.defaultSchema); + if (object.defaultLocation != null) + message.defaultLocation = String(object.defaultLocation); + if (object.assertionSchema != null) + message.assertionSchema = String(object.assertionSchema); + if (object.vars) { + if (typeof object.vars !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.CodeCompilationConfig.vars: object expected"); + message.vars = {}; + for (var keys = Object.keys(object.vars), i = 0; i < keys.length; ++i) + message.vars[keys[i]] = String(object.vars[keys[i]]); + } + if (object.databaseSuffix != null) + message.databaseSuffix = String(object.databaseSuffix); + if (object.schemaSuffix != null) + message.schemaSuffix = String(object.schemaSuffix); + if (object.tablePrefix != null) + message.tablePrefix = String(object.tablePrefix); + return message; + }; + + /** + * Creates a plain object from a CodeCompilationConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dataform.v1beta1.CodeCompilationConfig + * @static + * @param {google.cloud.dataform.v1beta1.CodeCompilationConfig} message CodeCompilationConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CodeCompilationConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.vars = {}; + if (options.defaults) { + object.defaultDatabase = ""; + object.defaultSchema = ""; + object.assertionSchema = ""; + object.databaseSuffix = ""; + object.schemaSuffix = ""; + object.tablePrefix = ""; + object.defaultLocation = ""; + } + if (message.defaultDatabase != null && message.hasOwnProperty("defaultDatabase")) + object.defaultDatabase = message.defaultDatabase; + if (message.defaultSchema != null && message.hasOwnProperty("defaultSchema")) + object.defaultSchema = message.defaultSchema; + if (message.assertionSchema != null && message.hasOwnProperty("assertionSchema")) + object.assertionSchema = message.assertionSchema; + var keys2; + if (message.vars && (keys2 = Object.keys(message.vars)).length) { + object.vars = {}; + for (var j = 0; j < keys2.length; ++j) + object.vars[keys2[j]] = message.vars[keys2[j]]; + } + if (message.databaseSuffix != null && message.hasOwnProperty("databaseSuffix")) + object.databaseSuffix = message.databaseSuffix; + if (message.schemaSuffix != null && message.hasOwnProperty("schemaSuffix")) + object.schemaSuffix = message.schemaSuffix; + if (message.tablePrefix != null && message.hasOwnProperty("tablePrefix")) + object.tablePrefix = message.tablePrefix; + if (message.defaultLocation != null && message.hasOwnProperty("defaultLocation")) + object.defaultLocation = message.defaultLocation; + return object; + }; + + /** + * Converts this CodeCompilationConfig to JSON. + * @function toJSON + * @memberof google.cloud.dataform.v1beta1.CodeCompilationConfig + * @instance + * @returns {Object.} JSON object + */ + CodeCompilationConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CodeCompilationConfig + * @function getTypeUrl + * @memberof google.cloud.dataform.v1beta1.CodeCompilationConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CodeCompilationConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.CodeCompilationConfig"; + }; + + return CodeCompilationConfig; + })(); + + v1beta1.ListCompilationResultsRequest = (function() { + + /** + * Properties of a ListCompilationResultsRequest. + * @memberof google.cloud.dataform.v1beta1 + * @interface IListCompilationResultsRequest + * @property {string|null} [parent] ListCompilationResultsRequest parent + * @property {number|null} [pageSize] ListCompilationResultsRequest pageSize + * @property {string|null} [pageToken] ListCompilationResultsRequest pageToken + */ + + /** + * Constructs a new ListCompilationResultsRequest. + * @memberof google.cloud.dataform.v1beta1 + * @classdesc Represents a ListCompilationResultsRequest. + * @implements IListCompilationResultsRequest + * @constructor + * @param {google.cloud.dataform.v1beta1.IListCompilationResultsRequest=} [properties] Properties to set + */ + function ListCompilationResultsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListCompilationResultsRequest parent. + * @member {string} parent + * @memberof google.cloud.dataform.v1beta1.ListCompilationResultsRequest + * @instance + */ + ListCompilationResultsRequest.prototype.parent = ""; + + /** + * ListCompilationResultsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dataform.v1beta1.ListCompilationResultsRequest + * @instance + */ + ListCompilationResultsRequest.prototype.pageSize = 0; + + /** + * ListCompilationResultsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dataform.v1beta1.ListCompilationResultsRequest + * @instance + */ + ListCompilationResultsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListCompilationResultsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dataform.v1beta1.ListCompilationResultsRequest + * @static + * @param {google.cloud.dataform.v1beta1.IListCompilationResultsRequest=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.ListCompilationResultsRequest} ListCompilationResultsRequest instance + */ + ListCompilationResultsRequest.create = function create(properties) { + return new ListCompilationResultsRequest(properties); + }; + + /** + * Encodes the specified ListCompilationResultsRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.ListCompilationResultsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dataform.v1beta1.ListCompilationResultsRequest + * @static + * @param {google.cloud.dataform.v1beta1.IListCompilationResultsRequest} message ListCompilationResultsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListCompilationResultsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + return writer; + }; + + /** + * Encodes the specified ListCompilationResultsRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.ListCompilationResultsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dataform.v1beta1.ListCompilationResultsRequest + * @static + * @param {google.cloud.dataform.v1beta1.IListCompilationResultsRequest} message ListCompilationResultsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListCompilationResultsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListCompilationResultsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dataform.v1beta1.ListCompilationResultsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dataform.v1beta1.ListCompilationResultsRequest} ListCompilationResultsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListCompilationResultsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.ListCompilationResultsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListCompilationResultsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dataform.v1beta1.ListCompilationResultsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dataform.v1beta1.ListCompilationResultsRequest} ListCompilationResultsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListCompilationResultsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListCompilationResultsRequest message. + * @function verify + * @memberof google.cloud.dataform.v1beta1.ListCompilationResultsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListCompilationResultsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + return null; + }; + + /** + * Creates a ListCompilationResultsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dataform.v1beta1.ListCompilationResultsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dataform.v1beta1.ListCompilationResultsRequest} ListCompilationResultsRequest + */ + ListCompilationResultsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.ListCompilationResultsRequest) + return object; + var message = new $root.google.cloud.dataform.v1beta1.ListCompilationResultsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + return message; + }; + + /** + * Creates a plain object from a ListCompilationResultsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dataform.v1beta1.ListCompilationResultsRequest + * @static + * @param {google.cloud.dataform.v1beta1.ListCompilationResultsRequest} message ListCompilationResultsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListCompilationResultsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + return object; + }; + + /** + * Converts this ListCompilationResultsRequest to JSON. + * @function toJSON + * @memberof google.cloud.dataform.v1beta1.ListCompilationResultsRequest + * @instance + * @returns {Object.} JSON object + */ + ListCompilationResultsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListCompilationResultsRequest + * @function getTypeUrl + * @memberof google.cloud.dataform.v1beta1.ListCompilationResultsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListCompilationResultsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.ListCompilationResultsRequest"; + }; + + return ListCompilationResultsRequest; + })(); + + v1beta1.ListCompilationResultsResponse = (function() { + + /** + * Properties of a ListCompilationResultsResponse. + * @memberof google.cloud.dataform.v1beta1 + * @interface IListCompilationResultsResponse + * @property {Array.|null} [compilationResults] ListCompilationResultsResponse compilationResults + * @property {string|null} [nextPageToken] ListCompilationResultsResponse nextPageToken + * @property {Array.|null} [unreachable] ListCompilationResultsResponse unreachable + */ + + /** + * Constructs a new ListCompilationResultsResponse. + * @memberof google.cloud.dataform.v1beta1 + * @classdesc Represents a ListCompilationResultsResponse. + * @implements IListCompilationResultsResponse + * @constructor + * @param {google.cloud.dataform.v1beta1.IListCompilationResultsResponse=} [properties] Properties to set + */ + function ListCompilationResultsResponse(properties) { + this.compilationResults = []; + this.unreachable = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListCompilationResultsResponse compilationResults. + * @member {Array.} compilationResults + * @memberof google.cloud.dataform.v1beta1.ListCompilationResultsResponse + * @instance + */ + ListCompilationResultsResponse.prototype.compilationResults = $util.emptyArray; + + /** + * ListCompilationResultsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dataform.v1beta1.ListCompilationResultsResponse + * @instance + */ + ListCompilationResultsResponse.prototype.nextPageToken = ""; + + /** + * ListCompilationResultsResponse unreachable. + * @member {Array.} unreachable + * @memberof google.cloud.dataform.v1beta1.ListCompilationResultsResponse + * @instance + */ + ListCompilationResultsResponse.prototype.unreachable = $util.emptyArray; + + /** + * Creates a new ListCompilationResultsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.dataform.v1beta1.ListCompilationResultsResponse + * @static + * @param {google.cloud.dataform.v1beta1.IListCompilationResultsResponse=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.ListCompilationResultsResponse} ListCompilationResultsResponse instance + */ + ListCompilationResultsResponse.create = function create(properties) { + return new ListCompilationResultsResponse(properties); + }; + + /** + * Encodes the specified ListCompilationResultsResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.ListCompilationResultsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.dataform.v1beta1.ListCompilationResultsResponse + * @static + * @param {google.cloud.dataform.v1beta1.IListCompilationResultsResponse} message ListCompilationResultsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListCompilationResultsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.compilationResults != null && message.compilationResults.length) + for (var i = 0; i < message.compilationResults.length; ++i) + $root.google.cloud.dataform.v1beta1.CompilationResult.encode(message.compilationResults[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.unreachable != null && message.unreachable.length) + for (var i = 0; i < message.unreachable.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); + return writer; + }; + + /** + * Encodes the specified ListCompilationResultsResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.ListCompilationResultsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dataform.v1beta1.ListCompilationResultsResponse + * @static + * @param {google.cloud.dataform.v1beta1.IListCompilationResultsResponse} message ListCompilationResultsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListCompilationResultsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListCompilationResultsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dataform.v1beta1.ListCompilationResultsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dataform.v1beta1.ListCompilationResultsResponse} ListCompilationResultsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListCompilationResultsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.ListCompilationResultsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.compilationResults && message.compilationResults.length)) + message.compilationResults = []; + message.compilationResults.push($root.google.cloud.dataform.v1beta1.CompilationResult.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } + case 3: { + if (!(message.unreachable && message.unreachable.length)) + message.unreachable = []; + message.unreachable.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListCompilationResultsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dataform.v1beta1.ListCompilationResultsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dataform.v1beta1.ListCompilationResultsResponse} ListCompilationResultsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListCompilationResultsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListCompilationResultsResponse message. + * @function verify + * @memberof google.cloud.dataform.v1beta1.ListCompilationResultsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListCompilationResultsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.compilationResults != null && message.hasOwnProperty("compilationResults")) { + if (!Array.isArray(message.compilationResults)) + return "compilationResults: array expected"; + for (var i = 0; i < message.compilationResults.length; ++i) { + var error = $root.google.cloud.dataform.v1beta1.CompilationResult.verify(message.compilationResults[i]); + if (error) + return "compilationResults." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + if (message.unreachable != null && message.hasOwnProperty("unreachable")) { + if (!Array.isArray(message.unreachable)) + return "unreachable: array expected"; + for (var i = 0; i < message.unreachable.length; ++i) + if (!$util.isString(message.unreachable[i])) + return "unreachable: string[] expected"; + } + return null; + }; + + /** + * Creates a ListCompilationResultsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dataform.v1beta1.ListCompilationResultsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dataform.v1beta1.ListCompilationResultsResponse} ListCompilationResultsResponse + */ + ListCompilationResultsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.ListCompilationResultsResponse) + return object; + var message = new $root.google.cloud.dataform.v1beta1.ListCompilationResultsResponse(); + if (object.compilationResults) { + if (!Array.isArray(object.compilationResults)) + throw TypeError(".google.cloud.dataform.v1beta1.ListCompilationResultsResponse.compilationResults: array expected"); + message.compilationResults = []; + for (var i = 0; i < object.compilationResults.length; ++i) { + if (typeof object.compilationResults[i] !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.ListCompilationResultsResponse.compilationResults: object expected"); + message.compilationResults[i] = $root.google.cloud.dataform.v1beta1.CompilationResult.fromObject(object.compilationResults[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.unreachable) { + if (!Array.isArray(object.unreachable)) + throw TypeError(".google.cloud.dataform.v1beta1.ListCompilationResultsResponse.unreachable: array expected"); + message.unreachable = []; + for (var i = 0; i < object.unreachable.length; ++i) + message.unreachable[i] = String(object.unreachable[i]); + } + return message; + }; + + /** + * Creates a plain object from a ListCompilationResultsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dataform.v1beta1.ListCompilationResultsResponse + * @static + * @param {google.cloud.dataform.v1beta1.ListCompilationResultsResponse} message ListCompilationResultsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListCompilationResultsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.compilationResults = []; + object.unreachable = []; + } + if (options.defaults) + object.nextPageToken = ""; + if (message.compilationResults && message.compilationResults.length) { + object.compilationResults = []; + for (var j = 0; j < message.compilationResults.length; ++j) + object.compilationResults[j] = $root.google.cloud.dataform.v1beta1.CompilationResult.toObject(message.compilationResults[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + if (message.unreachable && message.unreachable.length) { + object.unreachable = []; + for (var j = 0; j < message.unreachable.length; ++j) + object.unreachable[j] = message.unreachable[j]; + } + return object; + }; + + /** + * Converts this ListCompilationResultsResponse to JSON. + * @function toJSON + * @memberof google.cloud.dataform.v1beta1.ListCompilationResultsResponse + * @instance + * @returns {Object.} JSON object + */ + ListCompilationResultsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListCompilationResultsResponse + * @function getTypeUrl + * @memberof google.cloud.dataform.v1beta1.ListCompilationResultsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListCompilationResultsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.ListCompilationResultsResponse"; + }; + + return ListCompilationResultsResponse; + })(); + + v1beta1.GetCompilationResultRequest = (function() { + + /** + * Properties of a GetCompilationResultRequest. + * @memberof google.cloud.dataform.v1beta1 + * @interface IGetCompilationResultRequest + * @property {string|null} [name] GetCompilationResultRequest name + */ + + /** + * Constructs a new GetCompilationResultRequest. + * @memberof google.cloud.dataform.v1beta1 + * @classdesc Represents a GetCompilationResultRequest. + * @implements IGetCompilationResultRequest + * @constructor + * @param {google.cloud.dataform.v1beta1.IGetCompilationResultRequest=} [properties] Properties to set + */ + function GetCompilationResultRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetCompilationResultRequest name. + * @member {string} name + * @memberof google.cloud.dataform.v1beta1.GetCompilationResultRequest + * @instance + */ + GetCompilationResultRequest.prototype.name = ""; + + /** + * Creates a new GetCompilationResultRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dataform.v1beta1.GetCompilationResultRequest + * @static + * @param {google.cloud.dataform.v1beta1.IGetCompilationResultRequest=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.GetCompilationResultRequest} GetCompilationResultRequest instance + */ + GetCompilationResultRequest.create = function create(properties) { + return new GetCompilationResultRequest(properties); + }; + + /** + * Encodes the specified GetCompilationResultRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.GetCompilationResultRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dataform.v1beta1.GetCompilationResultRequest + * @static + * @param {google.cloud.dataform.v1beta1.IGetCompilationResultRequest} message GetCompilationResultRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetCompilationResultRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified GetCompilationResultRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.GetCompilationResultRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dataform.v1beta1.GetCompilationResultRequest + * @static + * @param {google.cloud.dataform.v1beta1.IGetCompilationResultRequest} message GetCompilationResultRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetCompilationResultRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetCompilationResultRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dataform.v1beta1.GetCompilationResultRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dataform.v1beta1.GetCompilationResultRequest} GetCompilationResultRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetCompilationResultRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.GetCompilationResultRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetCompilationResultRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dataform.v1beta1.GetCompilationResultRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dataform.v1beta1.GetCompilationResultRequest} GetCompilationResultRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetCompilationResultRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetCompilationResultRequest message. + * @function verify + * @memberof google.cloud.dataform.v1beta1.GetCompilationResultRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetCompilationResultRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a GetCompilationResultRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dataform.v1beta1.GetCompilationResultRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dataform.v1beta1.GetCompilationResultRequest} GetCompilationResultRequest + */ + GetCompilationResultRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.GetCompilationResultRequest) + return object; + var message = new $root.google.cloud.dataform.v1beta1.GetCompilationResultRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetCompilationResultRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dataform.v1beta1.GetCompilationResultRequest + * @static + * @param {google.cloud.dataform.v1beta1.GetCompilationResultRequest} message GetCompilationResultRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetCompilationResultRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this GetCompilationResultRequest to JSON. + * @function toJSON + * @memberof google.cloud.dataform.v1beta1.GetCompilationResultRequest + * @instance + * @returns {Object.} JSON object + */ + GetCompilationResultRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetCompilationResultRequest + * @function getTypeUrl + * @memberof google.cloud.dataform.v1beta1.GetCompilationResultRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetCompilationResultRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.GetCompilationResultRequest"; + }; + + return GetCompilationResultRequest; + })(); + + v1beta1.CreateCompilationResultRequest = (function() { + + /** + * Properties of a CreateCompilationResultRequest. + * @memberof google.cloud.dataform.v1beta1 + * @interface ICreateCompilationResultRequest + * @property {string|null} [parent] CreateCompilationResultRequest parent + * @property {google.cloud.dataform.v1beta1.ICompilationResult|null} [compilationResult] CreateCompilationResultRequest compilationResult + */ + + /** + * Constructs a new CreateCompilationResultRequest. + * @memberof google.cloud.dataform.v1beta1 + * @classdesc Represents a CreateCompilationResultRequest. + * @implements ICreateCompilationResultRequest + * @constructor + * @param {google.cloud.dataform.v1beta1.ICreateCompilationResultRequest=} [properties] Properties to set + */ + function CreateCompilationResultRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CreateCompilationResultRequest parent. + * @member {string} parent + * @memberof google.cloud.dataform.v1beta1.CreateCompilationResultRequest + * @instance + */ + CreateCompilationResultRequest.prototype.parent = ""; + + /** + * CreateCompilationResultRequest compilationResult. + * @member {google.cloud.dataform.v1beta1.ICompilationResult|null|undefined} compilationResult + * @memberof google.cloud.dataform.v1beta1.CreateCompilationResultRequest + * @instance + */ + CreateCompilationResultRequest.prototype.compilationResult = null; + + /** + * Creates a new CreateCompilationResultRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dataform.v1beta1.CreateCompilationResultRequest + * @static + * @param {google.cloud.dataform.v1beta1.ICreateCompilationResultRequest=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.CreateCompilationResultRequest} CreateCompilationResultRequest instance + */ + CreateCompilationResultRequest.create = function create(properties) { + return new CreateCompilationResultRequest(properties); + }; + + /** + * Encodes the specified CreateCompilationResultRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.CreateCompilationResultRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dataform.v1beta1.CreateCompilationResultRequest + * @static + * @param {google.cloud.dataform.v1beta1.ICreateCompilationResultRequest} message CreateCompilationResultRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateCompilationResultRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.compilationResult != null && Object.hasOwnProperty.call(message, "compilationResult")) + $root.google.cloud.dataform.v1beta1.CompilationResult.encode(message.compilationResult, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CreateCompilationResultRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CreateCompilationResultRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dataform.v1beta1.CreateCompilationResultRequest + * @static + * @param {google.cloud.dataform.v1beta1.ICreateCompilationResultRequest} message CreateCompilationResultRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateCompilationResultRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateCompilationResultRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dataform.v1beta1.CreateCompilationResultRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dataform.v1beta1.CreateCompilationResultRequest} CreateCompilationResultRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateCompilationResultRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.CreateCompilationResultRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.compilationResult = $root.google.cloud.dataform.v1beta1.CompilationResult.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateCompilationResultRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dataform.v1beta1.CreateCompilationResultRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dataform.v1beta1.CreateCompilationResultRequest} CreateCompilationResultRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateCompilationResultRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateCompilationResultRequest message. + * @function verify + * @memberof google.cloud.dataform.v1beta1.CreateCompilationResultRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateCompilationResultRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.compilationResult != null && message.hasOwnProperty("compilationResult")) { + var error = $root.google.cloud.dataform.v1beta1.CompilationResult.verify(message.compilationResult); + if (error) + return "compilationResult." + error; + } + return null; + }; + + /** + * Creates a CreateCompilationResultRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dataform.v1beta1.CreateCompilationResultRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dataform.v1beta1.CreateCompilationResultRequest} CreateCompilationResultRequest + */ + CreateCompilationResultRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.CreateCompilationResultRequest) + return object; + var message = new $root.google.cloud.dataform.v1beta1.CreateCompilationResultRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.compilationResult != null) { + if (typeof object.compilationResult !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.CreateCompilationResultRequest.compilationResult: object expected"); + message.compilationResult = $root.google.cloud.dataform.v1beta1.CompilationResult.fromObject(object.compilationResult); + } + return message; + }; + + /** + * Creates a plain object from a CreateCompilationResultRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dataform.v1beta1.CreateCompilationResultRequest + * @static + * @param {google.cloud.dataform.v1beta1.CreateCompilationResultRequest} message CreateCompilationResultRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateCompilationResultRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.compilationResult = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.compilationResult != null && message.hasOwnProperty("compilationResult")) + object.compilationResult = $root.google.cloud.dataform.v1beta1.CompilationResult.toObject(message.compilationResult, options); + return object; + }; + + /** + * Converts this CreateCompilationResultRequest to JSON. + * @function toJSON + * @memberof google.cloud.dataform.v1beta1.CreateCompilationResultRequest + * @instance + * @returns {Object.} JSON object + */ + CreateCompilationResultRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CreateCompilationResultRequest + * @function getTypeUrl + * @memberof google.cloud.dataform.v1beta1.CreateCompilationResultRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateCompilationResultRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.CreateCompilationResultRequest"; + }; + + return CreateCompilationResultRequest; + })(); + + v1beta1.Target = (function() { + + /** + * Properties of a Target. + * @memberof google.cloud.dataform.v1beta1 + * @interface ITarget + * @property {string|null} [database] Target database + * @property {string|null} [schema] Target schema + * @property {string|null} [name] Target name + */ + + /** + * Constructs a new Target. + * @memberof google.cloud.dataform.v1beta1 + * @classdesc Represents a Target. + * @implements ITarget + * @constructor + * @param {google.cloud.dataform.v1beta1.ITarget=} [properties] Properties to set + */ + function Target(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Target database. + * @member {string} database + * @memberof google.cloud.dataform.v1beta1.Target + * @instance + */ + Target.prototype.database = ""; + + /** + * Target schema. + * @member {string} schema + * @memberof google.cloud.dataform.v1beta1.Target + * @instance + */ + Target.prototype.schema = ""; + + /** + * Target name. + * @member {string} name + * @memberof google.cloud.dataform.v1beta1.Target + * @instance + */ + Target.prototype.name = ""; + + /** + * Creates a new Target instance using the specified properties. + * @function create + * @memberof google.cloud.dataform.v1beta1.Target + * @static + * @param {google.cloud.dataform.v1beta1.ITarget=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.Target} Target instance + */ + Target.create = function create(properties) { + return new Target(properties); + }; + + /** + * Encodes the specified Target message. Does not implicitly {@link google.cloud.dataform.v1beta1.Target.verify|verify} messages. + * @function encode + * @memberof google.cloud.dataform.v1beta1.Target + * @static + * @param {google.cloud.dataform.v1beta1.ITarget} message Target message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Target.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.database != null && Object.hasOwnProperty.call(message, "database")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.database); + if (message.schema != null && Object.hasOwnProperty.call(message, "schema")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.schema); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.name); + return writer; + }; + + /** + * Encodes the specified Target message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.Target.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dataform.v1beta1.Target + * @static + * @param {google.cloud.dataform.v1beta1.ITarget} message Target message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Target.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Target message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dataform.v1beta1.Target + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dataform.v1beta1.Target} Target + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Target.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.Target(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.database = reader.string(); + break; + } + case 2: { + message.schema = reader.string(); + break; + } + case 3: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Target message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dataform.v1beta1.Target + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dataform.v1beta1.Target} Target + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Target.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Target message. + * @function verify + * @memberof google.cloud.dataform.v1beta1.Target + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Target.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.database != null && message.hasOwnProperty("database")) + if (!$util.isString(message.database)) + return "database: string expected"; + if (message.schema != null && message.hasOwnProperty("schema")) + if (!$util.isString(message.schema)) + return "schema: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a Target message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dataform.v1beta1.Target + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dataform.v1beta1.Target} Target + */ + Target.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.Target) + return object; + var message = new $root.google.cloud.dataform.v1beta1.Target(); + if (object.database != null) + message.database = String(object.database); + if (object.schema != null) + message.schema = String(object.schema); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a Target message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dataform.v1beta1.Target + * @static + * @param {google.cloud.dataform.v1beta1.Target} message Target + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Target.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.database = ""; + object.schema = ""; + object.name = ""; + } + if (message.database != null && message.hasOwnProperty("database")) + object.database = message.database; + if (message.schema != null && message.hasOwnProperty("schema")) + object.schema = message.schema; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this Target to JSON. + * @function toJSON + * @memberof google.cloud.dataform.v1beta1.Target + * @instance + * @returns {Object.} JSON object + */ + Target.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Target + * @function getTypeUrl + * @memberof google.cloud.dataform.v1beta1.Target + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Target.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.Target"; + }; + + return Target; + })(); + + v1beta1.RelationDescriptor = (function() { + + /** + * Properties of a RelationDescriptor. + * @memberof google.cloud.dataform.v1beta1 + * @interface IRelationDescriptor + * @property {string|null} [description] RelationDescriptor description + * @property {Array.|null} [columns] RelationDescriptor columns + * @property {Object.|null} [bigqueryLabels] RelationDescriptor bigqueryLabels + */ + + /** + * Constructs a new RelationDescriptor. + * @memberof google.cloud.dataform.v1beta1 + * @classdesc Represents a RelationDescriptor. + * @implements IRelationDescriptor + * @constructor + * @param {google.cloud.dataform.v1beta1.IRelationDescriptor=} [properties] Properties to set + */ + function RelationDescriptor(properties) { + this.columns = []; + this.bigqueryLabels = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * RelationDescriptor description. + * @member {string} description + * @memberof google.cloud.dataform.v1beta1.RelationDescriptor + * @instance + */ + RelationDescriptor.prototype.description = ""; + + /** + * RelationDescriptor columns. + * @member {Array.} columns + * @memberof google.cloud.dataform.v1beta1.RelationDescriptor + * @instance + */ + RelationDescriptor.prototype.columns = $util.emptyArray; + + /** + * RelationDescriptor bigqueryLabels. + * @member {Object.} bigqueryLabels + * @memberof google.cloud.dataform.v1beta1.RelationDescriptor + * @instance + */ + RelationDescriptor.prototype.bigqueryLabels = $util.emptyObject; + + /** + * Creates a new RelationDescriptor instance using the specified properties. + * @function create + * @memberof google.cloud.dataform.v1beta1.RelationDescriptor + * @static + * @param {google.cloud.dataform.v1beta1.IRelationDescriptor=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.RelationDescriptor} RelationDescriptor instance + */ + RelationDescriptor.create = function create(properties) { + return new RelationDescriptor(properties); + }; + + /** + * Encodes the specified RelationDescriptor message. Does not implicitly {@link google.cloud.dataform.v1beta1.RelationDescriptor.verify|verify} messages. + * @function encode + * @memberof google.cloud.dataform.v1beta1.RelationDescriptor + * @static + * @param {google.cloud.dataform.v1beta1.IRelationDescriptor} message RelationDescriptor message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RelationDescriptor.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.description); + if (message.columns != null && message.columns.length) + for (var i = 0; i < message.columns.length; ++i) + $root.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor.encode(message.columns[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.bigqueryLabels != null && Object.hasOwnProperty.call(message, "bigqueryLabels")) + for (var keys = Object.keys(message.bigqueryLabels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.bigqueryLabels[keys[i]]).ldelim(); + return writer; + }; + + /** + * Encodes the specified RelationDescriptor message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.RelationDescriptor.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dataform.v1beta1.RelationDescriptor + * @static + * @param {google.cloud.dataform.v1beta1.IRelationDescriptor} message RelationDescriptor message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RelationDescriptor.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RelationDescriptor message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dataform.v1beta1.RelationDescriptor + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dataform.v1beta1.RelationDescriptor} RelationDescriptor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RelationDescriptor.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.RelationDescriptor(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.description = reader.string(); + break; + } + case 2: { + if (!(message.columns && message.columns.length)) + message.columns = []; + message.columns.push($root.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor.decode(reader, reader.uint32())); + break; + } + case 3: { + if (message.bigqueryLabels === $util.emptyObject) + message.bigqueryLabels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.bigqueryLabels[key] = value; + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RelationDescriptor message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dataform.v1beta1.RelationDescriptor + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dataform.v1beta1.RelationDescriptor} RelationDescriptor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RelationDescriptor.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RelationDescriptor message. + * @function verify + * @memberof google.cloud.dataform.v1beta1.RelationDescriptor + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RelationDescriptor.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.columns != null && message.hasOwnProperty("columns")) { + if (!Array.isArray(message.columns)) + return "columns: array expected"; + for (var i = 0; i < message.columns.length; ++i) { + var error = $root.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor.verify(message.columns[i]); + if (error) + return "columns." + error; + } + } + if (message.bigqueryLabels != null && message.hasOwnProperty("bigqueryLabels")) { + if (!$util.isObject(message.bigqueryLabels)) + return "bigqueryLabels: object expected"; + var key = Object.keys(message.bigqueryLabels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.bigqueryLabels[key[i]])) + return "bigqueryLabels: string{k:string} expected"; + } + return null; + }; + + /** + * Creates a RelationDescriptor message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dataform.v1beta1.RelationDescriptor + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dataform.v1beta1.RelationDescriptor} RelationDescriptor + */ + RelationDescriptor.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.RelationDescriptor) + return object; + var message = new $root.google.cloud.dataform.v1beta1.RelationDescriptor(); + if (object.description != null) + message.description = String(object.description); + if (object.columns) { + if (!Array.isArray(object.columns)) + throw TypeError(".google.cloud.dataform.v1beta1.RelationDescriptor.columns: array expected"); + message.columns = []; + for (var i = 0; i < object.columns.length; ++i) { + if (typeof object.columns[i] !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.RelationDescriptor.columns: object expected"); + message.columns[i] = $root.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor.fromObject(object.columns[i]); + } + } + if (object.bigqueryLabels) { + if (typeof object.bigqueryLabels !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.RelationDescriptor.bigqueryLabels: object expected"); + message.bigqueryLabels = {}; + for (var keys = Object.keys(object.bigqueryLabels), i = 0; i < keys.length; ++i) + message.bigqueryLabels[keys[i]] = String(object.bigqueryLabels[keys[i]]); + } + return message; + }; + + /** + * Creates a plain object from a RelationDescriptor message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dataform.v1beta1.RelationDescriptor + * @static + * @param {google.cloud.dataform.v1beta1.RelationDescriptor} message RelationDescriptor + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RelationDescriptor.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.columns = []; + if (options.objects || options.defaults) + object.bigqueryLabels = {}; + if (options.defaults) + object.description = ""; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.columns && message.columns.length) { + object.columns = []; + for (var j = 0; j < message.columns.length; ++j) + object.columns[j] = $root.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor.toObject(message.columns[j], options); + } + var keys2; + if (message.bigqueryLabels && (keys2 = Object.keys(message.bigqueryLabels)).length) { + object.bigqueryLabels = {}; + for (var j = 0; j < keys2.length; ++j) + object.bigqueryLabels[keys2[j]] = message.bigqueryLabels[keys2[j]]; + } + return object; + }; + + /** + * Converts this RelationDescriptor to JSON. + * @function toJSON + * @memberof google.cloud.dataform.v1beta1.RelationDescriptor + * @instance + * @returns {Object.} JSON object + */ + RelationDescriptor.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RelationDescriptor + * @function getTypeUrl + * @memberof google.cloud.dataform.v1beta1.RelationDescriptor + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RelationDescriptor.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.RelationDescriptor"; + }; + + RelationDescriptor.ColumnDescriptor = (function() { + + /** + * Properties of a ColumnDescriptor. + * @memberof google.cloud.dataform.v1beta1.RelationDescriptor + * @interface IColumnDescriptor + * @property {Array.|null} [path] ColumnDescriptor path + * @property {string|null} [description] ColumnDescriptor description + * @property {Array.|null} [bigqueryPolicyTags] ColumnDescriptor bigqueryPolicyTags + */ + + /** + * Constructs a new ColumnDescriptor. + * @memberof google.cloud.dataform.v1beta1.RelationDescriptor + * @classdesc Represents a ColumnDescriptor. + * @implements IColumnDescriptor + * @constructor + * @param {google.cloud.dataform.v1beta1.RelationDescriptor.IColumnDescriptor=} [properties] Properties to set + */ + function ColumnDescriptor(properties) { + this.path = []; + this.bigqueryPolicyTags = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ColumnDescriptor path. + * @member {Array.} path + * @memberof google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor + * @instance + */ + ColumnDescriptor.prototype.path = $util.emptyArray; + + /** + * ColumnDescriptor description. + * @member {string} description + * @memberof google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor + * @instance + */ + ColumnDescriptor.prototype.description = ""; + + /** + * ColumnDescriptor bigqueryPolicyTags. + * @member {Array.} bigqueryPolicyTags + * @memberof google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor + * @instance + */ + ColumnDescriptor.prototype.bigqueryPolicyTags = $util.emptyArray; + + /** + * Creates a new ColumnDescriptor instance using the specified properties. + * @function create + * @memberof google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor + * @static + * @param {google.cloud.dataform.v1beta1.RelationDescriptor.IColumnDescriptor=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor} ColumnDescriptor instance + */ + ColumnDescriptor.create = function create(properties) { + return new ColumnDescriptor(properties); + }; + + /** + * Encodes the specified ColumnDescriptor message. Does not implicitly {@link google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor.verify|verify} messages. + * @function encode + * @memberof google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor + * @static + * @param {google.cloud.dataform.v1beta1.RelationDescriptor.IColumnDescriptor} message ColumnDescriptor message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ColumnDescriptor.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.path != null && message.path.length) + for (var i = 0; i < message.path.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.path[i]); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); + if (message.bigqueryPolicyTags != null && message.bigqueryPolicyTags.length) + for (var i = 0; i < message.bigqueryPolicyTags.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.bigqueryPolicyTags[i]); + return writer; + }; + + /** + * Encodes the specified ColumnDescriptor message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor + * @static + * @param {google.cloud.dataform.v1beta1.RelationDescriptor.IColumnDescriptor} message ColumnDescriptor message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ColumnDescriptor.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ColumnDescriptor message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor} ColumnDescriptor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ColumnDescriptor.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.path && message.path.length)) + message.path = []; + message.path.push(reader.string()); + break; + } + case 2: { + message.description = reader.string(); + break; + } + case 3: { + if (!(message.bigqueryPolicyTags && message.bigqueryPolicyTags.length)) + message.bigqueryPolicyTags = []; + message.bigqueryPolicyTags.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ColumnDescriptor message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor} ColumnDescriptor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ColumnDescriptor.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ColumnDescriptor message. + * @function verify + * @memberof google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ColumnDescriptor.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.path != null && message.hasOwnProperty("path")) { + if (!Array.isArray(message.path)) + return "path: array expected"; + for (var i = 0; i < message.path.length; ++i) + if (!$util.isString(message.path[i])) + return "path: string[] expected"; + } + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.bigqueryPolicyTags != null && message.hasOwnProperty("bigqueryPolicyTags")) { + if (!Array.isArray(message.bigqueryPolicyTags)) + return "bigqueryPolicyTags: array expected"; + for (var i = 0; i < message.bigqueryPolicyTags.length; ++i) + if (!$util.isString(message.bigqueryPolicyTags[i])) + return "bigqueryPolicyTags: string[] expected"; + } + return null; + }; + + /** + * Creates a ColumnDescriptor message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor} ColumnDescriptor + */ + ColumnDescriptor.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor) + return object; + var message = new $root.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor(); + if (object.path) { + if (!Array.isArray(object.path)) + throw TypeError(".google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor.path: array expected"); + message.path = []; + for (var i = 0; i < object.path.length; ++i) + message.path[i] = String(object.path[i]); + } + if (object.description != null) + message.description = String(object.description); + if (object.bigqueryPolicyTags) { + if (!Array.isArray(object.bigqueryPolicyTags)) + throw TypeError(".google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor.bigqueryPolicyTags: array expected"); + message.bigqueryPolicyTags = []; + for (var i = 0; i < object.bigqueryPolicyTags.length; ++i) + message.bigqueryPolicyTags[i] = String(object.bigqueryPolicyTags[i]); + } + return message; + }; + + /** + * Creates a plain object from a ColumnDescriptor message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor + * @static + * @param {google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor} message ColumnDescriptor + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ColumnDescriptor.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.path = []; + object.bigqueryPolicyTags = []; + } + if (options.defaults) + object.description = ""; + if (message.path && message.path.length) { + object.path = []; + for (var j = 0; j < message.path.length; ++j) + object.path[j] = message.path[j]; + } + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.bigqueryPolicyTags && message.bigqueryPolicyTags.length) { + object.bigqueryPolicyTags = []; + for (var j = 0; j < message.bigqueryPolicyTags.length; ++j) + object.bigqueryPolicyTags[j] = message.bigqueryPolicyTags[j]; + } + return object; + }; + + /** + * Converts this ColumnDescriptor to JSON. + * @function toJSON + * @memberof google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor + * @instance + * @returns {Object.} JSON object + */ + ColumnDescriptor.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ColumnDescriptor + * @function getTypeUrl + * @memberof google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ColumnDescriptor.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor"; + }; + + return ColumnDescriptor; + })(); + + return RelationDescriptor; + })(); + + v1beta1.CompilationResultAction = (function() { + + /** + * Properties of a CompilationResultAction. + * @memberof google.cloud.dataform.v1beta1 + * @interface ICompilationResultAction + * @property {google.cloud.dataform.v1beta1.ITarget|null} [target] CompilationResultAction target + * @property {google.cloud.dataform.v1beta1.ITarget|null} [canonicalTarget] CompilationResultAction canonicalTarget + * @property {string|null} [filePath] CompilationResultAction filePath + * @property {google.cloud.dataform.v1beta1.CompilationResultAction.IRelation|null} [relation] CompilationResultAction relation + * @property {google.cloud.dataform.v1beta1.CompilationResultAction.IOperations|null} [operations] CompilationResultAction operations + * @property {google.cloud.dataform.v1beta1.CompilationResultAction.IAssertion|null} [assertion] CompilationResultAction assertion + * @property {google.cloud.dataform.v1beta1.CompilationResultAction.IDeclaration|null} [declaration] CompilationResultAction declaration + */ + + /** + * Constructs a new CompilationResultAction. + * @memberof google.cloud.dataform.v1beta1 + * @classdesc Represents a CompilationResultAction. + * @implements ICompilationResultAction + * @constructor + * @param {google.cloud.dataform.v1beta1.ICompilationResultAction=} [properties] Properties to set + */ + function CompilationResultAction(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CompilationResultAction target. + * @member {google.cloud.dataform.v1beta1.ITarget|null|undefined} target + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction + * @instance + */ + CompilationResultAction.prototype.target = null; + + /** + * CompilationResultAction canonicalTarget. + * @member {google.cloud.dataform.v1beta1.ITarget|null|undefined} canonicalTarget + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction + * @instance + */ + CompilationResultAction.prototype.canonicalTarget = null; + + /** + * CompilationResultAction filePath. + * @member {string} filePath + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction + * @instance + */ + CompilationResultAction.prototype.filePath = ""; + + /** + * CompilationResultAction relation. + * @member {google.cloud.dataform.v1beta1.CompilationResultAction.IRelation|null|undefined} relation + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction + * @instance + */ + CompilationResultAction.prototype.relation = null; + + /** + * CompilationResultAction operations. + * @member {google.cloud.dataform.v1beta1.CompilationResultAction.IOperations|null|undefined} operations + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction + * @instance + */ + CompilationResultAction.prototype.operations = null; + + /** + * CompilationResultAction assertion. + * @member {google.cloud.dataform.v1beta1.CompilationResultAction.IAssertion|null|undefined} assertion + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction + * @instance + */ + CompilationResultAction.prototype.assertion = null; + + /** + * CompilationResultAction declaration. + * @member {google.cloud.dataform.v1beta1.CompilationResultAction.IDeclaration|null|undefined} declaration + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction + * @instance + */ + CompilationResultAction.prototype.declaration = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * CompilationResultAction compiledObject. + * @member {"relation"|"operations"|"assertion"|"declaration"|undefined} compiledObject + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction + * @instance + */ + Object.defineProperty(CompilationResultAction.prototype, "compiledObject", { + get: $util.oneOfGetter($oneOfFields = ["relation", "operations", "assertion", "declaration"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new CompilationResultAction instance using the specified properties. + * @function create + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction + * @static + * @param {google.cloud.dataform.v1beta1.ICompilationResultAction=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.CompilationResultAction} CompilationResultAction instance + */ + CompilationResultAction.create = function create(properties) { + return new CompilationResultAction(properties); + }; + + /** + * Encodes the specified CompilationResultAction message. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResultAction.verify|verify} messages. + * @function encode + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction + * @static + * @param {google.cloud.dataform.v1beta1.ICompilationResultAction} message CompilationResultAction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompilationResultAction.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.target != null && Object.hasOwnProperty.call(message, "target")) + $root.google.cloud.dataform.v1beta1.Target.encode(message.target, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.canonicalTarget != null && Object.hasOwnProperty.call(message, "canonicalTarget")) + $root.google.cloud.dataform.v1beta1.Target.encode(message.canonicalTarget, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.filePath != null && Object.hasOwnProperty.call(message, "filePath")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.filePath); + if (message.relation != null && Object.hasOwnProperty.call(message, "relation")) + $root.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.encode(message.relation, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.operations != null && Object.hasOwnProperty.call(message, "operations")) + $root.google.cloud.dataform.v1beta1.CompilationResultAction.Operations.encode(message.operations, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.assertion != null && Object.hasOwnProperty.call(message, "assertion")) + $root.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.encode(message.assertion, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.declaration != null && Object.hasOwnProperty.call(message, "declaration")) + $root.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration.encode(message.declaration, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CompilationResultAction message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResultAction.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction + * @static + * @param {google.cloud.dataform.v1beta1.ICompilationResultAction} message CompilationResultAction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompilationResultAction.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CompilationResultAction message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dataform.v1beta1.CompilationResultAction} CompilationResultAction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompilationResultAction.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.CompilationResultAction(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.target = $root.google.cloud.dataform.v1beta1.Target.decode(reader, reader.uint32()); + break; + } + case 2: { + message.canonicalTarget = $root.google.cloud.dataform.v1beta1.Target.decode(reader, reader.uint32()); + break; + } + case 3: { + message.filePath = reader.string(); + break; + } + case 4: { + message.relation = $root.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.decode(reader, reader.uint32()); + break; + } + case 5: { + message.operations = $root.google.cloud.dataform.v1beta1.CompilationResultAction.Operations.decode(reader, reader.uint32()); + break; + } + case 6: { + message.assertion = $root.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.decode(reader, reader.uint32()); + break; + } + case 7: { + message.declaration = $root.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CompilationResultAction message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dataform.v1beta1.CompilationResultAction} CompilationResultAction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompilationResultAction.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CompilationResultAction message. + * @function verify + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CompilationResultAction.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.target != null && message.hasOwnProperty("target")) { + var error = $root.google.cloud.dataform.v1beta1.Target.verify(message.target); + if (error) + return "target." + error; + } + if (message.canonicalTarget != null && message.hasOwnProperty("canonicalTarget")) { + var error = $root.google.cloud.dataform.v1beta1.Target.verify(message.canonicalTarget); + if (error) + return "canonicalTarget." + error; + } + if (message.filePath != null && message.hasOwnProperty("filePath")) + if (!$util.isString(message.filePath)) + return "filePath: string expected"; + if (message.relation != null && message.hasOwnProperty("relation")) { + properties.compiledObject = 1; + { + var error = $root.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.verify(message.relation); + if (error) + return "relation." + error; + } + } + if (message.operations != null && message.hasOwnProperty("operations")) { + if (properties.compiledObject === 1) + return "compiledObject: multiple values"; + properties.compiledObject = 1; + { + var error = $root.google.cloud.dataform.v1beta1.CompilationResultAction.Operations.verify(message.operations); + if (error) + return "operations." + error; + } + } + if (message.assertion != null && message.hasOwnProperty("assertion")) { + if (properties.compiledObject === 1) + return "compiledObject: multiple values"; + properties.compiledObject = 1; + { + var error = $root.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.verify(message.assertion); + if (error) + return "assertion." + error; + } + } + if (message.declaration != null && message.hasOwnProperty("declaration")) { + if (properties.compiledObject === 1) + return "compiledObject: multiple values"; + properties.compiledObject = 1; + { + var error = $root.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration.verify(message.declaration); + if (error) + return "declaration." + error; + } + } + return null; + }; + + /** + * Creates a CompilationResultAction message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dataform.v1beta1.CompilationResultAction} CompilationResultAction + */ + CompilationResultAction.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.CompilationResultAction) + return object; + var message = new $root.google.cloud.dataform.v1beta1.CompilationResultAction(); + if (object.target != null) { + if (typeof object.target !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.target: object expected"); + message.target = $root.google.cloud.dataform.v1beta1.Target.fromObject(object.target); + } + if (object.canonicalTarget != null) { + if (typeof object.canonicalTarget !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.canonicalTarget: object expected"); + message.canonicalTarget = $root.google.cloud.dataform.v1beta1.Target.fromObject(object.canonicalTarget); + } + if (object.filePath != null) + message.filePath = String(object.filePath); + if (object.relation != null) { + if (typeof object.relation !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.relation: object expected"); + message.relation = $root.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.fromObject(object.relation); + } + if (object.operations != null) { + if (typeof object.operations !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.operations: object expected"); + message.operations = $root.google.cloud.dataform.v1beta1.CompilationResultAction.Operations.fromObject(object.operations); + } + if (object.assertion != null) { + if (typeof object.assertion !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.assertion: object expected"); + message.assertion = $root.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.fromObject(object.assertion); + } + if (object.declaration != null) { + if (typeof object.declaration !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.declaration: object expected"); + message.declaration = $root.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration.fromObject(object.declaration); + } + return message; + }; + + /** + * Creates a plain object from a CompilationResultAction message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction + * @static + * @param {google.cloud.dataform.v1beta1.CompilationResultAction} message CompilationResultAction + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CompilationResultAction.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.target = null; + object.canonicalTarget = null; + object.filePath = ""; + } + if (message.target != null && message.hasOwnProperty("target")) + object.target = $root.google.cloud.dataform.v1beta1.Target.toObject(message.target, options); + if (message.canonicalTarget != null && message.hasOwnProperty("canonicalTarget")) + object.canonicalTarget = $root.google.cloud.dataform.v1beta1.Target.toObject(message.canonicalTarget, options); + if (message.filePath != null && message.hasOwnProperty("filePath")) + object.filePath = message.filePath; + if (message.relation != null && message.hasOwnProperty("relation")) { + object.relation = $root.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.toObject(message.relation, options); + if (options.oneofs) + object.compiledObject = "relation"; + } + if (message.operations != null && message.hasOwnProperty("operations")) { + object.operations = $root.google.cloud.dataform.v1beta1.CompilationResultAction.Operations.toObject(message.operations, options); + if (options.oneofs) + object.compiledObject = "operations"; + } + if (message.assertion != null && message.hasOwnProperty("assertion")) { + object.assertion = $root.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.toObject(message.assertion, options); + if (options.oneofs) + object.compiledObject = "assertion"; + } + if (message.declaration != null && message.hasOwnProperty("declaration")) { + object.declaration = $root.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration.toObject(message.declaration, options); + if (options.oneofs) + object.compiledObject = "declaration"; + } + return object; + }; + + /** + * Converts this CompilationResultAction to JSON. + * @function toJSON + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction + * @instance + * @returns {Object.} JSON object + */ + CompilationResultAction.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CompilationResultAction + * @function getTypeUrl + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CompilationResultAction.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.CompilationResultAction"; + }; + + CompilationResultAction.Relation = (function() { + + /** + * Properties of a Relation. + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction + * @interface IRelation + * @property {Array.|null} [dependencyTargets] Relation dependencyTargets + * @property {boolean|null} [disabled] Relation disabled + * @property {Array.|null} [tags] Relation tags + * @property {google.cloud.dataform.v1beta1.IRelationDescriptor|null} [relationDescriptor] Relation relationDescriptor + * @property {google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType|null} [relationType] Relation relationType + * @property {string|null} [selectQuery] Relation selectQuery + * @property {Array.|null} [preOperations] Relation preOperations + * @property {Array.|null} [postOperations] Relation postOperations + * @property {google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IIncrementalTableConfig|null} [incrementalTableConfig] Relation incrementalTableConfig + * @property {string|null} [partitionExpression] Relation partitionExpression + * @property {Array.|null} [clusterExpressions] Relation clusterExpressions + * @property {number|null} [partitionExpirationDays] Relation partitionExpirationDays + * @property {boolean|null} [requirePartitionFilter] Relation requirePartitionFilter + * @property {Object.|null} [additionalOptions] Relation additionalOptions + */ + + /** + * Constructs a new Relation. + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction + * @classdesc Represents a Relation. + * @implements IRelation + * @constructor + * @param {google.cloud.dataform.v1beta1.CompilationResultAction.IRelation=} [properties] Properties to set + */ + function Relation(properties) { + this.dependencyTargets = []; + this.tags = []; + this.preOperations = []; + this.postOperations = []; + this.clusterExpressions = []; + this.additionalOptions = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Relation dependencyTargets. + * @member {Array.} dependencyTargets + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation + * @instance + */ + Relation.prototype.dependencyTargets = $util.emptyArray; + + /** + * Relation disabled. + * @member {boolean} disabled + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation + * @instance + */ + Relation.prototype.disabled = false; + + /** + * Relation tags. + * @member {Array.} tags + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation + * @instance + */ + Relation.prototype.tags = $util.emptyArray; + + /** + * Relation relationDescriptor. + * @member {google.cloud.dataform.v1beta1.IRelationDescriptor|null|undefined} relationDescriptor + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation + * @instance + */ + Relation.prototype.relationDescriptor = null; + + /** + * Relation relationType. + * @member {google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType} relationType + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation + * @instance + */ + Relation.prototype.relationType = 0; + + /** + * Relation selectQuery. + * @member {string} selectQuery + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation + * @instance + */ + Relation.prototype.selectQuery = ""; + + /** + * Relation preOperations. + * @member {Array.} preOperations + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation + * @instance + */ + Relation.prototype.preOperations = $util.emptyArray; + + /** + * Relation postOperations. + * @member {Array.} postOperations + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation + * @instance + */ + Relation.prototype.postOperations = $util.emptyArray; + + /** + * Relation incrementalTableConfig. + * @member {google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IIncrementalTableConfig|null|undefined} incrementalTableConfig + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation + * @instance + */ + Relation.prototype.incrementalTableConfig = null; + + /** + * Relation partitionExpression. + * @member {string} partitionExpression + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation + * @instance + */ + Relation.prototype.partitionExpression = ""; + + /** + * Relation clusterExpressions. + * @member {Array.} clusterExpressions + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation + * @instance + */ + Relation.prototype.clusterExpressions = $util.emptyArray; + + /** + * Relation partitionExpirationDays. + * @member {number} partitionExpirationDays + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation + * @instance + */ + Relation.prototype.partitionExpirationDays = 0; + + /** + * Relation requirePartitionFilter. + * @member {boolean} requirePartitionFilter + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation + * @instance + */ + Relation.prototype.requirePartitionFilter = false; + + /** + * Relation additionalOptions. + * @member {Object.} additionalOptions + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation + * @instance + */ + Relation.prototype.additionalOptions = $util.emptyObject; + + /** + * Creates a new Relation instance using the specified properties. + * @function create + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation + * @static + * @param {google.cloud.dataform.v1beta1.CompilationResultAction.IRelation=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.CompilationResultAction.Relation} Relation instance + */ + Relation.create = function create(properties) { + return new Relation(properties); + }; + + /** + * Encodes the specified Relation message. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResultAction.Relation.verify|verify} messages. + * @function encode + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation + * @static + * @param {google.cloud.dataform.v1beta1.CompilationResultAction.IRelation} message Relation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Relation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.dependencyTargets != null && message.dependencyTargets.length) + for (var i = 0; i < message.dependencyTargets.length; ++i) + $root.google.cloud.dataform.v1beta1.Target.encode(message.dependencyTargets[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.disabled); + if (message.tags != null && message.tags.length) + for (var i = 0; i < message.tags.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.tags[i]); + if (message.relationDescriptor != null && Object.hasOwnProperty.call(message, "relationDescriptor")) + $root.google.cloud.dataform.v1beta1.RelationDescriptor.encode(message.relationDescriptor, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.relationType != null && Object.hasOwnProperty.call(message, "relationType")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.relationType); + if (message.selectQuery != null && Object.hasOwnProperty.call(message, "selectQuery")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.selectQuery); + if (message.preOperations != null && message.preOperations.length) + for (var i = 0; i < message.preOperations.length; ++i) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.preOperations[i]); + if (message.postOperations != null && message.postOperations.length) + for (var i = 0; i < message.postOperations.length; ++i) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.postOperations[i]); + if (message.incrementalTableConfig != null && Object.hasOwnProperty.call(message, "incrementalTableConfig")) + $root.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig.encode(message.incrementalTableConfig, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.partitionExpression != null && Object.hasOwnProperty.call(message, "partitionExpression")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.partitionExpression); + if (message.clusterExpressions != null && message.clusterExpressions.length) + for (var i = 0; i < message.clusterExpressions.length; ++i) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.clusterExpressions[i]); + if (message.partitionExpirationDays != null && Object.hasOwnProperty.call(message, "partitionExpirationDays")) + writer.uint32(/* id 12, wireType 0 =*/96).int32(message.partitionExpirationDays); + if (message.requirePartitionFilter != null && Object.hasOwnProperty.call(message, "requirePartitionFilter")) + writer.uint32(/* id 13, wireType 0 =*/104).bool(message.requirePartitionFilter); + if (message.additionalOptions != null && Object.hasOwnProperty.call(message, "additionalOptions")) + for (var keys = Object.keys(message.additionalOptions), i = 0; i < keys.length; ++i) + writer.uint32(/* id 14, wireType 2 =*/114).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.additionalOptions[keys[i]]).ldelim(); + return writer; + }; + + /** + * Encodes the specified Relation message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResultAction.Relation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation + * @static + * @param {google.cloud.dataform.v1beta1.CompilationResultAction.IRelation} message Relation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Relation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Relation message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dataform.v1beta1.CompilationResultAction.Relation} Relation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Relation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.CompilationResultAction.Relation(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.dependencyTargets && message.dependencyTargets.length)) + message.dependencyTargets = []; + message.dependencyTargets.push($root.google.cloud.dataform.v1beta1.Target.decode(reader, reader.uint32())); + break; + } + case 2: { + message.disabled = reader.bool(); + break; + } + case 3: { + if (!(message.tags && message.tags.length)) + message.tags = []; + message.tags.push(reader.string()); + break; + } + case 4: { + message.relationDescriptor = $root.google.cloud.dataform.v1beta1.RelationDescriptor.decode(reader, reader.uint32()); + break; + } + case 5: { + message.relationType = reader.int32(); + break; + } + case 6: { + message.selectQuery = reader.string(); + break; + } + case 7: { + if (!(message.preOperations && message.preOperations.length)) + message.preOperations = []; + message.preOperations.push(reader.string()); + break; + } + case 8: { + if (!(message.postOperations && message.postOperations.length)) + message.postOperations = []; + message.postOperations.push(reader.string()); + break; + } + case 9: { + message.incrementalTableConfig = $root.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig.decode(reader, reader.uint32()); + break; + } + case 10: { + message.partitionExpression = reader.string(); + break; + } + case 11: { + if (!(message.clusterExpressions && message.clusterExpressions.length)) + message.clusterExpressions = []; + message.clusterExpressions.push(reader.string()); + break; + } + case 12: { + message.partitionExpirationDays = reader.int32(); + break; + } + case 13: { + message.requirePartitionFilter = reader.bool(); + break; + } + case 14: { + if (message.additionalOptions === $util.emptyObject) + message.additionalOptions = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.additionalOptions[key] = value; + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Relation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dataform.v1beta1.CompilationResultAction.Relation} Relation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Relation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Relation message. + * @function verify + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Relation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.dependencyTargets != null && message.hasOwnProperty("dependencyTargets")) { + if (!Array.isArray(message.dependencyTargets)) + return "dependencyTargets: array expected"; + for (var i = 0; i < message.dependencyTargets.length; ++i) { + var error = $root.google.cloud.dataform.v1beta1.Target.verify(message.dependencyTargets[i]); + if (error) + return "dependencyTargets." + error; + } + } + if (message.disabled != null && message.hasOwnProperty("disabled")) + if (typeof message.disabled !== "boolean") + return "disabled: boolean expected"; + if (message.tags != null && message.hasOwnProperty("tags")) { + if (!Array.isArray(message.tags)) + return "tags: array expected"; + for (var i = 0; i < message.tags.length; ++i) + if (!$util.isString(message.tags[i])) + return "tags: string[] expected"; + } + if (message.relationDescriptor != null && message.hasOwnProperty("relationDescriptor")) { + var error = $root.google.cloud.dataform.v1beta1.RelationDescriptor.verify(message.relationDescriptor); + if (error) + return "relationDescriptor." + error; + } + if (message.relationType != null && message.hasOwnProperty("relationType")) + switch (message.relationType) { + default: + return "relationType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.selectQuery != null && message.hasOwnProperty("selectQuery")) + if (!$util.isString(message.selectQuery)) + return "selectQuery: string expected"; + if (message.preOperations != null && message.hasOwnProperty("preOperations")) { + if (!Array.isArray(message.preOperations)) + return "preOperations: array expected"; + for (var i = 0; i < message.preOperations.length; ++i) + if (!$util.isString(message.preOperations[i])) + return "preOperations: string[] expected"; + } + if (message.postOperations != null && message.hasOwnProperty("postOperations")) { + if (!Array.isArray(message.postOperations)) + return "postOperations: array expected"; + for (var i = 0; i < message.postOperations.length; ++i) + if (!$util.isString(message.postOperations[i])) + return "postOperations: string[] expected"; + } + if (message.incrementalTableConfig != null && message.hasOwnProperty("incrementalTableConfig")) { + var error = $root.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig.verify(message.incrementalTableConfig); + if (error) + return "incrementalTableConfig." + error; + } + if (message.partitionExpression != null && message.hasOwnProperty("partitionExpression")) + if (!$util.isString(message.partitionExpression)) + return "partitionExpression: string expected"; + if (message.clusterExpressions != null && message.hasOwnProperty("clusterExpressions")) { + if (!Array.isArray(message.clusterExpressions)) + return "clusterExpressions: array expected"; + for (var i = 0; i < message.clusterExpressions.length; ++i) + if (!$util.isString(message.clusterExpressions[i])) + return "clusterExpressions: string[] expected"; + } + if (message.partitionExpirationDays != null && message.hasOwnProperty("partitionExpirationDays")) + if (!$util.isInteger(message.partitionExpirationDays)) + return "partitionExpirationDays: integer expected"; + if (message.requirePartitionFilter != null && message.hasOwnProperty("requirePartitionFilter")) + if (typeof message.requirePartitionFilter !== "boolean") + return "requirePartitionFilter: boolean expected"; + if (message.additionalOptions != null && message.hasOwnProperty("additionalOptions")) { + if (!$util.isObject(message.additionalOptions)) + return "additionalOptions: object expected"; + var key = Object.keys(message.additionalOptions); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.additionalOptions[key[i]])) + return "additionalOptions: string{k:string} expected"; + } + return null; + }; + + /** + * Creates a Relation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dataform.v1beta1.CompilationResultAction.Relation} Relation + */ + Relation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.CompilationResultAction.Relation) + return object; + var message = new $root.google.cloud.dataform.v1beta1.CompilationResultAction.Relation(); + if (object.dependencyTargets) { + if (!Array.isArray(object.dependencyTargets)) + throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.Relation.dependencyTargets: array expected"); + message.dependencyTargets = []; + for (var i = 0; i < object.dependencyTargets.length; ++i) { + if (typeof object.dependencyTargets[i] !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.Relation.dependencyTargets: object expected"); + message.dependencyTargets[i] = $root.google.cloud.dataform.v1beta1.Target.fromObject(object.dependencyTargets[i]); + } + } + if (object.disabled != null) + message.disabled = Boolean(object.disabled); + if (object.tags) { + if (!Array.isArray(object.tags)) + throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.Relation.tags: array expected"); + message.tags = []; + for (var i = 0; i < object.tags.length; ++i) + message.tags[i] = String(object.tags[i]); + } + if (object.relationDescriptor != null) { + if (typeof object.relationDescriptor !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.Relation.relationDescriptor: object expected"); + message.relationDescriptor = $root.google.cloud.dataform.v1beta1.RelationDescriptor.fromObject(object.relationDescriptor); + } + switch (object.relationType) { + default: + if (typeof object.relationType === "number") { + message.relationType = object.relationType; + break; + } + break; + case "RELATION_TYPE_UNSPECIFIED": + case 0: + message.relationType = 0; + break; + case "TABLE": + case 1: + message.relationType = 1; + break; + case "VIEW": + case 2: + message.relationType = 2; + break; + case "INCREMENTAL_TABLE": + case 3: + message.relationType = 3; + break; + case "MATERIALIZED_VIEW": + case 4: + message.relationType = 4; + break; + } + if (object.selectQuery != null) + message.selectQuery = String(object.selectQuery); + if (object.preOperations) { + if (!Array.isArray(object.preOperations)) + throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.Relation.preOperations: array expected"); + message.preOperations = []; + for (var i = 0; i < object.preOperations.length; ++i) + message.preOperations[i] = String(object.preOperations[i]); + } + if (object.postOperations) { + if (!Array.isArray(object.postOperations)) + throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.Relation.postOperations: array expected"); + message.postOperations = []; + for (var i = 0; i < object.postOperations.length; ++i) + message.postOperations[i] = String(object.postOperations[i]); + } + if (object.incrementalTableConfig != null) { + if (typeof object.incrementalTableConfig !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.Relation.incrementalTableConfig: object expected"); + message.incrementalTableConfig = $root.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig.fromObject(object.incrementalTableConfig); + } + if (object.partitionExpression != null) + message.partitionExpression = String(object.partitionExpression); + if (object.clusterExpressions) { + if (!Array.isArray(object.clusterExpressions)) + throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.Relation.clusterExpressions: array expected"); + message.clusterExpressions = []; + for (var i = 0; i < object.clusterExpressions.length; ++i) + message.clusterExpressions[i] = String(object.clusterExpressions[i]); + } + if (object.partitionExpirationDays != null) + message.partitionExpirationDays = object.partitionExpirationDays | 0; + if (object.requirePartitionFilter != null) + message.requirePartitionFilter = Boolean(object.requirePartitionFilter); + if (object.additionalOptions) { + if (typeof object.additionalOptions !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.Relation.additionalOptions: object expected"); + message.additionalOptions = {}; + for (var keys = Object.keys(object.additionalOptions), i = 0; i < keys.length; ++i) + message.additionalOptions[keys[i]] = String(object.additionalOptions[keys[i]]); + } + return message; + }; + + /** + * Creates a plain object from a Relation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation + * @static + * @param {google.cloud.dataform.v1beta1.CompilationResultAction.Relation} message Relation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Relation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.dependencyTargets = []; + object.tags = []; + object.preOperations = []; + object.postOperations = []; + object.clusterExpressions = []; + } + if (options.objects || options.defaults) + object.additionalOptions = {}; + if (options.defaults) { + object.disabled = false; + object.relationDescriptor = null; + object.relationType = options.enums === String ? "RELATION_TYPE_UNSPECIFIED" : 0; + object.selectQuery = ""; + object.incrementalTableConfig = null; + object.partitionExpression = ""; + object.partitionExpirationDays = 0; + object.requirePartitionFilter = false; + } + if (message.dependencyTargets && message.dependencyTargets.length) { + object.dependencyTargets = []; + for (var j = 0; j < message.dependencyTargets.length; ++j) + object.dependencyTargets[j] = $root.google.cloud.dataform.v1beta1.Target.toObject(message.dependencyTargets[j], options); + } + if (message.disabled != null && message.hasOwnProperty("disabled")) + object.disabled = message.disabled; + if (message.tags && message.tags.length) { + object.tags = []; + for (var j = 0; j < message.tags.length; ++j) + object.tags[j] = message.tags[j]; + } + if (message.relationDescriptor != null && message.hasOwnProperty("relationDescriptor")) + object.relationDescriptor = $root.google.cloud.dataform.v1beta1.RelationDescriptor.toObject(message.relationDescriptor, options); + if (message.relationType != null && message.hasOwnProperty("relationType")) + object.relationType = options.enums === String ? $root.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType[message.relationType] === undefined ? message.relationType : $root.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType[message.relationType] : message.relationType; + if (message.selectQuery != null && message.hasOwnProperty("selectQuery")) + object.selectQuery = message.selectQuery; + if (message.preOperations && message.preOperations.length) { + object.preOperations = []; + for (var j = 0; j < message.preOperations.length; ++j) + object.preOperations[j] = message.preOperations[j]; + } + if (message.postOperations && message.postOperations.length) { + object.postOperations = []; + for (var j = 0; j < message.postOperations.length; ++j) + object.postOperations[j] = message.postOperations[j]; + } + if (message.incrementalTableConfig != null && message.hasOwnProperty("incrementalTableConfig")) + object.incrementalTableConfig = $root.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig.toObject(message.incrementalTableConfig, options); + if (message.partitionExpression != null && message.hasOwnProperty("partitionExpression")) + object.partitionExpression = message.partitionExpression; + if (message.clusterExpressions && message.clusterExpressions.length) { + object.clusterExpressions = []; + for (var j = 0; j < message.clusterExpressions.length; ++j) + object.clusterExpressions[j] = message.clusterExpressions[j]; + } + if (message.partitionExpirationDays != null && message.hasOwnProperty("partitionExpirationDays")) + object.partitionExpirationDays = message.partitionExpirationDays; + if (message.requirePartitionFilter != null && message.hasOwnProperty("requirePartitionFilter")) + object.requirePartitionFilter = message.requirePartitionFilter; + var keys2; + if (message.additionalOptions && (keys2 = Object.keys(message.additionalOptions)).length) { + object.additionalOptions = {}; + for (var j = 0; j < keys2.length; ++j) + object.additionalOptions[keys2[j]] = message.additionalOptions[keys2[j]]; + } + return object; + }; + + /** + * Converts this Relation to JSON. + * @function toJSON + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation + * @instance + * @returns {Object.} JSON object + */ + Relation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Relation + * @function getTypeUrl + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Relation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.CompilationResultAction.Relation"; + }; + + /** + * RelationType enum. + * @name google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType + * @enum {number} + * @property {number} RELATION_TYPE_UNSPECIFIED=0 RELATION_TYPE_UNSPECIFIED value + * @property {number} TABLE=1 TABLE value + * @property {number} VIEW=2 VIEW value + * @property {number} INCREMENTAL_TABLE=3 INCREMENTAL_TABLE value + * @property {number} MATERIALIZED_VIEW=4 MATERIALIZED_VIEW value + */ + Relation.RelationType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "RELATION_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "TABLE"] = 1; + values[valuesById[2] = "VIEW"] = 2; + values[valuesById[3] = "INCREMENTAL_TABLE"] = 3; + values[valuesById[4] = "MATERIALIZED_VIEW"] = 4; + return values; + })(); + + Relation.IncrementalTableConfig = (function() { + + /** + * Properties of an IncrementalTableConfig. + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation + * @interface IIncrementalTableConfig + * @property {string|null} [incrementalSelectQuery] IncrementalTableConfig incrementalSelectQuery + * @property {boolean|null} [refreshDisabled] IncrementalTableConfig refreshDisabled + * @property {Array.|null} [uniqueKeyParts] IncrementalTableConfig uniqueKeyParts + * @property {string|null} [updatePartitionFilter] IncrementalTableConfig updatePartitionFilter + * @property {Array.|null} [incrementalPreOperations] IncrementalTableConfig incrementalPreOperations + * @property {Array.|null} [incrementalPostOperations] IncrementalTableConfig incrementalPostOperations + */ + + /** + * Constructs a new IncrementalTableConfig. + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation + * @classdesc Represents an IncrementalTableConfig. + * @implements IIncrementalTableConfig + * @constructor + * @param {google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IIncrementalTableConfig=} [properties] Properties to set + */ + function IncrementalTableConfig(properties) { + this.uniqueKeyParts = []; + this.incrementalPreOperations = []; + this.incrementalPostOperations = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * IncrementalTableConfig incrementalSelectQuery. + * @member {string} incrementalSelectQuery + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig + * @instance + */ + IncrementalTableConfig.prototype.incrementalSelectQuery = ""; + + /** + * IncrementalTableConfig refreshDisabled. + * @member {boolean} refreshDisabled + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig + * @instance + */ + IncrementalTableConfig.prototype.refreshDisabled = false; + + /** + * IncrementalTableConfig uniqueKeyParts. + * @member {Array.} uniqueKeyParts + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig + * @instance + */ + IncrementalTableConfig.prototype.uniqueKeyParts = $util.emptyArray; + + /** + * IncrementalTableConfig updatePartitionFilter. + * @member {string} updatePartitionFilter + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig + * @instance + */ + IncrementalTableConfig.prototype.updatePartitionFilter = ""; + + /** + * IncrementalTableConfig incrementalPreOperations. + * @member {Array.} incrementalPreOperations + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig + * @instance + */ + IncrementalTableConfig.prototype.incrementalPreOperations = $util.emptyArray; + + /** + * IncrementalTableConfig incrementalPostOperations. + * @member {Array.} incrementalPostOperations + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig + * @instance + */ + IncrementalTableConfig.prototype.incrementalPostOperations = $util.emptyArray; + + /** + * Creates a new IncrementalTableConfig instance using the specified properties. + * @function create + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig + * @static + * @param {google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IIncrementalTableConfig=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig} IncrementalTableConfig instance + */ + IncrementalTableConfig.create = function create(properties) { + return new IncrementalTableConfig(properties); + }; + + /** + * Encodes the specified IncrementalTableConfig message. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig + * @static + * @param {google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IIncrementalTableConfig} message IncrementalTableConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IncrementalTableConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.incrementalSelectQuery != null && Object.hasOwnProperty.call(message, "incrementalSelectQuery")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.incrementalSelectQuery); + if (message.refreshDisabled != null && Object.hasOwnProperty.call(message, "refreshDisabled")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.refreshDisabled); + if (message.uniqueKeyParts != null && message.uniqueKeyParts.length) + for (var i = 0; i < message.uniqueKeyParts.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.uniqueKeyParts[i]); + if (message.updatePartitionFilter != null && Object.hasOwnProperty.call(message, "updatePartitionFilter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.updatePartitionFilter); + if (message.incrementalPreOperations != null && message.incrementalPreOperations.length) + for (var i = 0; i < message.incrementalPreOperations.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.incrementalPreOperations[i]); + if (message.incrementalPostOperations != null && message.incrementalPostOperations.length) + for (var i = 0; i < message.incrementalPostOperations.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.incrementalPostOperations[i]); + return writer; + }; + + /** + * Encodes the specified IncrementalTableConfig message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig + * @static + * @param {google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IIncrementalTableConfig} message IncrementalTableConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IncrementalTableConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an IncrementalTableConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig} IncrementalTableConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IncrementalTableConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.incrementalSelectQuery = reader.string(); + break; + } + case 2: { + message.refreshDisabled = reader.bool(); + break; + } + case 3: { + if (!(message.uniqueKeyParts && message.uniqueKeyParts.length)) + message.uniqueKeyParts = []; + message.uniqueKeyParts.push(reader.string()); + break; + } + case 4: { + message.updatePartitionFilter = reader.string(); + break; + } + case 5: { + if (!(message.incrementalPreOperations && message.incrementalPreOperations.length)) + message.incrementalPreOperations = []; + message.incrementalPreOperations.push(reader.string()); + break; + } + case 6: { + if (!(message.incrementalPostOperations && message.incrementalPostOperations.length)) + message.incrementalPostOperations = []; + message.incrementalPostOperations.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an IncrementalTableConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig} IncrementalTableConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IncrementalTableConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an IncrementalTableConfig message. + * @function verify + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IncrementalTableConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.incrementalSelectQuery != null && message.hasOwnProperty("incrementalSelectQuery")) + if (!$util.isString(message.incrementalSelectQuery)) + return "incrementalSelectQuery: string expected"; + if (message.refreshDisabled != null && message.hasOwnProperty("refreshDisabled")) + if (typeof message.refreshDisabled !== "boolean") + return "refreshDisabled: boolean expected"; + if (message.uniqueKeyParts != null && message.hasOwnProperty("uniqueKeyParts")) { + if (!Array.isArray(message.uniqueKeyParts)) + return "uniqueKeyParts: array expected"; + for (var i = 0; i < message.uniqueKeyParts.length; ++i) + if (!$util.isString(message.uniqueKeyParts[i])) + return "uniqueKeyParts: string[] expected"; + } + if (message.updatePartitionFilter != null && message.hasOwnProperty("updatePartitionFilter")) + if (!$util.isString(message.updatePartitionFilter)) + return "updatePartitionFilter: string expected"; + if (message.incrementalPreOperations != null && message.hasOwnProperty("incrementalPreOperations")) { + if (!Array.isArray(message.incrementalPreOperations)) + return "incrementalPreOperations: array expected"; + for (var i = 0; i < message.incrementalPreOperations.length; ++i) + if (!$util.isString(message.incrementalPreOperations[i])) + return "incrementalPreOperations: string[] expected"; + } + if (message.incrementalPostOperations != null && message.hasOwnProperty("incrementalPostOperations")) { + if (!Array.isArray(message.incrementalPostOperations)) + return "incrementalPostOperations: array expected"; + for (var i = 0; i < message.incrementalPostOperations.length; ++i) + if (!$util.isString(message.incrementalPostOperations[i])) + return "incrementalPostOperations: string[] expected"; + } + return null; + }; + + /** + * Creates an IncrementalTableConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig} IncrementalTableConfig + */ + IncrementalTableConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig) + return object; + var message = new $root.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig(); + if (object.incrementalSelectQuery != null) + message.incrementalSelectQuery = String(object.incrementalSelectQuery); + if (object.refreshDisabled != null) + message.refreshDisabled = Boolean(object.refreshDisabled); + if (object.uniqueKeyParts) { + if (!Array.isArray(object.uniqueKeyParts)) + throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig.uniqueKeyParts: array expected"); + message.uniqueKeyParts = []; + for (var i = 0; i < object.uniqueKeyParts.length; ++i) + message.uniqueKeyParts[i] = String(object.uniqueKeyParts[i]); + } + if (object.updatePartitionFilter != null) + message.updatePartitionFilter = String(object.updatePartitionFilter); + if (object.incrementalPreOperations) { + if (!Array.isArray(object.incrementalPreOperations)) + throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig.incrementalPreOperations: array expected"); + message.incrementalPreOperations = []; + for (var i = 0; i < object.incrementalPreOperations.length; ++i) + message.incrementalPreOperations[i] = String(object.incrementalPreOperations[i]); + } + if (object.incrementalPostOperations) { + if (!Array.isArray(object.incrementalPostOperations)) + throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig.incrementalPostOperations: array expected"); + message.incrementalPostOperations = []; + for (var i = 0; i < object.incrementalPostOperations.length; ++i) + message.incrementalPostOperations[i] = String(object.incrementalPostOperations[i]); + } + return message; + }; + + /** + * Creates a plain object from an IncrementalTableConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig + * @static + * @param {google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig} message IncrementalTableConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + IncrementalTableConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.uniqueKeyParts = []; + object.incrementalPreOperations = []; + object.incrementalPostOperations = []; + } + if (options.defaults) { + object.incrementalSelectQuery = ""; + object.refreshDisabled = false; + object.updatePartitionFilter = ""; + } + if (message.incrementalSelectQuery != null && message.hasOwnProperty("incrementalSelectQuery")) + object.incrementalSelectQuery = message.incrementalSelectQuery; + if (message.refreshDisabled != null && message.hasOwnProperty("refreshDisabled")) + object.refreshDisabled = message.refreshDisabled; + if (message.uniqueKeyParts && message.uniqueKeyParts.length) { + object.uniqueKeyParts = []; + for (var j = 0; j < message.uniqueKeyParts.length; ++j) + object.uniqueKeyParts[j] = message.uniqueKeyParts[j]; + } + if (message.updatePartitionFilter != null && message.hasOwnProperty("updatePartitionFilter")) + object.updatePartitionFilter = message.updatePartitionFilter; + if (message.incrementalPreOperations && message.incrementalPreOperations.length) { + object.incrementalPreOperations = []; + for (var j = 0; j < message.incrementalPreOperations.length; ++j) + object.incrementalPreOperations[j] = message.incrementalPreOperations[j]; + } + if (message.incrementalPostOperations && message.incrementalPostOperations.length) { + object.incrementalPostOperations = []; + for (var j = 0; j < message.incrementalPostOperations.length; ++j) + object.incrementalPostOperations[j] = message.incrementalPostOperations[j]; + } + return object; + }; + + /** + * Converts this IncrementalTableConfig to JSON. + * @function toJSON + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig + * @instance + * @returns {Object.} JSON object + */ + IncrementalTableConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for IncrementalTableConfig + * @function getTypeUrl + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + IncrementalTableConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig"; + }; + + return IncrementalTableConfig; + })(); + + return Relation; + })(); + + CompilationResultAction.Operations = (function() { + + /** + * Properties of an Operations. + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction + * @interface IOperations + * @property {Array.|null} [dependencyTargets] Operations dependencyTargets + * @property {boolean|null} [disabled] Operations disabled + * @property {Array.|null} [tags] Operations tags + * @property {google.cloud.dataform.v1beta1.IRelationDescriptor|null} [relationDescriptor] Operations relationDescriptor + * @property {Array.|null} [queries] Operations queries + * @property {boolean|null} [hasOutput] Operations hasOutput + */ + + /** + * Constructs a new Operations. + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction + * @classdesc Represents an Operations. + * @implements IOperations + * @constructor + * @param {google.cloud.dataform.v1beta1.CompilationResultAction.IOperations=} [properties] Properties to set + */ + function Operations(properties) { + this.dependencyTargets = []; + this.tags = []; + this.queries = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Operations dependencyTargets. + * @member {Array.} dependencyTargets + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Operations + * @instance + */ + Operations.prototype.dependencyTargets = $util.emptyArray; + + /** + * Operations disabled. + * @member {boolean} disabled + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Operations + * @instance + */ + Operations.prototype.disabled = false; + + /** + * Operations tags. + * @member {Array.} tags + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Operations + * @instance + */ + Operations.prototype.tags = $util.emptyArray; + + /** + * Operations relationDescriptor. + * @member {google.cloud.dataform.v1beta1.IRelationDescriptor|null|undefined} relationDescriptor + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Operations + * @instance + */ + Operations.prototype.relationDescriptor = null; + + /** + * Operations queries. + * @member {Array.} queries + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Operations + * @instance + */ + Operations.prototype.queries = $util.emptyArray; + + /** + * Operations hasOutput. + * @member {boolean} hasOutput + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Operations + * @instance + */ + Operations.prototype.hasOutput = false; + + /** + * Creates a new Operations instance using the specified properties. + * @function create + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Operations + * @static + * @param {google.cloud.dataform.v1beta1.CompilationResultAction.IOperations=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.CompilationResultAction.Operations} Operations instance + */ + Operations.create = function create(properties) { + return new Operations(properties); + }; + + /** + * Encodes the specified Operations message. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResultAction.Operations.verify|verify} messages. + * @function encode + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Operations + * @static + * @param {google.cloud.dataform.v1beta1.CompilationResultAction.IOperations} message Operations message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Operations.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.dependencyTargets != null && message.dependencyTargets.length) + for (var i = 0; i < message.dependencyTargets.length; ++i) + $root.google.cloud.dataform.v1beta1.Target.encode(message.dependencyTargets[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.disabled); + if (message.tags != null && message.tags.length) + for (var i = 0; i < message.tags.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.tags[i]); + if (message.queries != null && message.queries.length) + for (var i = 0; i < message.queries.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.queries[i]); + if (message.hasOutput != null && Object.hasOwnProperty.call(message, "hasOutput")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.hasOutput); + if (message.relationDescriptor != null && Object.hasOwnProperty.call(message, "relationDescriptor")) + $root.google.cloud.dataform.v1beta1.RelationDescriptor.encode(message.relationDescriptor, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Operations message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResultAction.Operations.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Operations + * @static + * @param {google.cloud.dataform.v1beta1.CompilationResultAction.IOperations} message Operations message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Operations.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Operations message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Operations + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dataform.v1beta1.CompilationResultAction.Operations} Operations + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Operations.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.CompilationResultAction.Operations(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.dependencyTargets && message.dependencyTargets.length)) + message.dependencyTargets = []; + message.dependencyTargets.push($root.google.cloud.dataform.v1beta1.Target.decode(reader, reader.uint32())); + break; + } + case 2: { + message.disabled = reader.bool(); + break; + } + case 3: { + if (!(message.tags && message.tags.length)) + message.tags = []; + message.tags.push(reader.string()); + break; + } + case 6: { + message.relationDescriptor = $root.google.cloud.dataform.v1beta1.RelationDescriptor.decode(reader, reader.uint32()); + break; + } + case 4: { + if (!(message.queries && message.queries.length)) + message.queries = []; + message.queries.push(reader.string()); + break; + } + case 5: { + message.hasOutput = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Operations message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Operations + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dataform.v1beta1.CompilationResultAction.Operations} Operations + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Operations.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Operations message. + * @function verify + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Operations + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Operations.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.dependencyTargets != null && message.hasOwnProperty("dependencyTargets")) { + if (!Array.isArray(message.dependencyTargets)) + return "dependencyTargets: array expected"; + for (var i = 0; i < message.dependencyTargets.length; ++i) { + var error = $root.google.cloud.dataform.v1beta1.Target.verify(message.dependencyTargets[i]); + if (error) + return "dependencyTargets." + error; + } + } + if (message.disabled != null && message.hasOwnProperty("disabled")) + if (typeof message.disabled !== "boolean") + return "disabled: boolean expected"; + if (message.tags != null && message.hasOwnProperty("tags")) { + if (!Array.isArray(message.tags)) + return "tags: array expected"; + for (var i = 0; i < message.tags.length; ++i) + if (!$util.isString(message.tags[i])) + return "tags: string[] expected"; + } + if (message.relationDescriptor != null && message.hasOwnProperty("relationDescriptor")) { + var error = $root.google.cloud.dataform.v1beta1.RelationDescriptor.verify(message.relationDescriptor); + if (error) + return "relationDescriptor." + error; + } + if (message.queries != null && message.hasOwnProperty("queries")) { + if (!Array.isArray(message.queries)) + return "queries: array expected"; + for (var i = 0; i < message.queries.length; ++i) + if (!$util.isString(message.queries[i])) + return "queries: string[] expected"; + } + if (message.hasOutput != null && message.hasOwnProperty("hasOutput")) + if (typeof message.hasOutput !== "boolean") + return "hasOutput: boolean expected"; + return null; + }; + + /** + * Creates an Operations message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Operations + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dataform.v1beta1.CompilationResultAction.Operations} Operations + */ + Operations.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.CompilationResultAction.Operations) + return object; + var message = new $root.google.cloud.dataform.v1beta1.CompilationResultAction.Operations(); + if (object.dependencyTargets) { + if (!Array.isArray(object.dependencyTargets)) + throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.Operations.dependencyTargets: array expected"); + message.dependencyTargets = []; + for (var i = 0; i < object.dependencyTargets.length; ++i) { + if (typeof object.dependencyTargets[i] !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.Operations.dependencyTargets: object expected"); + message.dependencyTargets[i] = $root.google.cloud.dataform.v1beta1.Target.fromObject(object.dependencyTargets[i]); + } + } + if (object.disabled != null) + message.disabled = Boolean(object.disabled); + if (object.tags) { + if (!Array.isArray(object.tags)) + throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.Operations.tags: array expected"); + message.tags = []; + for (var i = 0; i < object.tags.length; ++i) + message.tags[i] = String(object.tags[i]); + } + if (object.relationDescriptor != null) { + if (typeof object.relationDescriptor !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.Operations.relationDescriptor: object expected"); + message.relationDescriptor = $root.google.cloud.dataform.v1beta1.RelationDescriptor.fromObject(object.relationDescriptor); + } + if (object.queries) { + if (!Array.isArray(object.queries)) + throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.Operations.queries: array expected"); + message.queries = []; + for (var i = 0; i < object.queries.length; ++i) + message.queries[i] = String(object.queries[i]); + } + if (object.hasOutput != null) + message.hasOutput = Boolean(object.hasOutput); + return message; + }; + + /** + * Creates a plain object from an Operations message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Operations + * @static + * @param {google.cloud.dataform.v1beta1.CompilationResultAction.Operations} message Operations + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Operations.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.dependencyTargets = []; + object.tags = []; + object.queries = []; + } + if (options.defaults) { + object.disabled = false; + object.hasOutput = false; + object.relationDescriptor = null; + } + if (message.dependencyTargets && message.dependencyTargets.length) { + object.dependencyTargets = []; + for (var j = 0; j < message.dependencyTargets.length; ++j) + object.dependencyTargets[j] = $root.google.cloud.dataform.v1beta1.Target.toObject(message.dependencyTargets[j], options); + } + if (message.disabled != null && message.hasOwnProperty("disabled")) + object.disabled = message.disabled; + if (message.tags && message.tags.length) { + object.tags = []; + for (var j = 0; j < message.tags.length; ++j) + object.tags[j] = message.tags[j]; + } + if (message.queries && message.queries.length) { + object.queries = []; + for (var j = 0; j < message.queries.length; ++j) + object.queries[j] = message.queries[j]; + } + if (message.hasOutput != null && message.hasOwnProperty("hasOutput")) + object.hasOutput = message.hasOutput; + if (message.relationDescriptor != null && message.hasOwnProperty("relationDescriptor")) + object.relationDescriptor = $root.google.cloud.dataform.v1beta1.RelationDescriptor.toObject(message.relationDescriptor, options); + return object; + }; + + /** + * Converts this Operations to JSON. + * @function toJSON + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Operations + * @instance + * @returns {Object.} JSON object + */ + Operations.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Operations + * @function getTypeUrl + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Operations + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Operations.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.CompilationResultAction.Operations"; + }; + + return Operations; + })(); + + CompilationResultAction.Assertion = (function() { + + /** + * Properties of an Assertion. + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction + * @interface IAssertion + * @property {Array.|null} [dependencyTargets] Assertion dependencyTargets + * @property {google.cloud.dataform.v1beta1.ITarget|null} [parentAction] Assertion parentAction + * @property {boolean|null} [disabled] Assertion disabled + * @property {Array.|null} [tags] Assertion tags + * @property {string|null} [selectQuery] Assertion selectQuery + * @property {google.cloud.dataform.v1beta1.IRelationDescriptor|null} [relationDescriptor] Assertion relationDescriptor + */ + + /** + * Constructs a new Assertion. + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction + * @classdesc Represents an Assertion. + * @implements IAssertion + * @constructor + * @param {google.cloud.dataform.v1beta1.CompilationResultAction.IAssertion=} [properties] Properties to set + */ + function Assertion(properties) { + this.dependencyTargets = []; + this.tags = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Assertion dependencyTargets. + * @member {Array.} dependencyTargets + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Assertion + * @instance + */ + Assertion.prototype.dependencyTargets = $util.emptyArray; + + /** + * Assertion parentAction. + * @member {google.cloud.dataform.v1beta1.ITarget|null|undefined} parentAction + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Assertion + * @instance + */ + Assertion.prototype.parentAction = null; + + /** + * Assertion disabled. + * @member {boolean} disabled + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Assertion + * @instance + */ + Assertion.prototype.disabled = false; + + /** + * Assertion tags. + * @member {Array.} tags + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Assertion + * @instance + */ + Assertion.prototype.tags = $util.emptyArray; + + /** + * Assertion selectQuery. + * @member {string} selectQuery + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Assertion + * @instance + */ + Assertion.prototype.selectQuery = ""; + + /** + * Assertion relationDescriptor. + * @member {google.cloud.dataform.v1beta1.IRelationDescriptor|null|undefined} relationDescriptor + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Assertion + * @instance + */ + Assertion.prototype.relationDescriptor = null; + + /** + * Creates a new Assertion instance using the specified properties. + * @function create + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Assertion + * @static + * @param {google.cloud.dataform.v1beta1.CompilationResultAction.IAssertion=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.CompilationResultAction.Assertion} Assertion instance + */ + Assertion.create = function create(properties) { + return new Assertion(properties); + }; + + /** + * Encodes the specified Assertion message. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.verify|verify} messages. + * @function encode + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Assertion + * @static + * @param {google.cloud.dataform.v1beta1.CompilationResultAction.IAssertion} message Assertion message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Assertion.encode = function encode(message, writer) { + if (!writer) writer = $Writer.create(); if (message.dependencyTargets != null && message.dependencyTargets.length) for (var i = 0; i < message.dependencyTargets.length; ++i) @@ -36022,63 +44147,43 @@ if (message.tags != null && message.tags.length) for (var i = 0; i < message.tags.length; ++i) writer.uint32(/* id 3, wireType 2 =*/26).string(message.tags[i]); - if (message.relationDescriptor != null && Object.hasOwnProperty.call(message, "relationDescriptor")) - $root.google.cloud.dataform.v1beta1.RelationDescriptor.encode(message.relationDescriptor, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.relationType != null && Object.hasOwnProperty.call(message, "relationType")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.relationType); if (message.selectQuery != null && Object.hasOwnProperty.call(message, "selectQuery")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.selectQuery); - if (message.preOperations != null && message.preOperations.length) - for (var i = 0; i < message.preOperations.length; ++i) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.preOperations[i]); - if (message.postOperations != null && message.postOperations.length) - for (var i = 0; i < message.postOperations.length; ++i) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.postOperations[i]); - if (message.incrementalTableConfig != null && Object.hasOwnProperty.call(message, "incrementalTableConfig")) - $root.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig.encode(message.incrementalTableConfig, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.partitionExpression != null && Object.hasOwnProperty.call(message, "partitionExpression")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.partitionExpression); - if (message.clusterExpressions != null && message.clusterExpressions.length) - for (var i = 0; i < message.clusterExpressions.length; ++i) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.clusterExpressions[i]); - if (message.partitionExpirationDays != null && Object.hasOwnProperty.call(message, "partitionExpirationDays")) - writer.uint32(/* id 12, wireType 0 =*/96).int32(message.partitionExpirationDays); - if (message.requirePartitionFilter != null && Object.hasOwnProperty.call(message, "requirePartitionFilter")) - writer.uint32(/* id 13, wireType 0 =*/104).bool(message.requirePartitionFilter); - if (message.additionalOptions != null && Object.hasOwnProperty.call(message, "additionalOptions")) - for (var keys = Object.keys(message.additionalOptions), i = 0; i < keys.length; ++i) - writer.uint32(/* id 14, wireType 2 =*/114).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.additionalOptions[keys[i]]).ldelim(); + writer.uint32(/* id 4, wireType 2 =*/34).string(message.selectQuery); + if (message.parentAction != null && Object.hasOwnProperty.call(message, "parentAction")) + $root.google.cloud.dataform.v1beta1.Target.encode(message.parentAction, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.relationDescriptor != null && Object.hasOwnProperty.call(message, "relationDescriptor")) + $root.google.cloud.dataform.v1beta1.RelationDescriptor.encode(message.relationDescriptor, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; /** - * Encodes the specified Relation message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResultAction.Relation.verify|verify} messages. + * Encodes the specified Assertion message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Assertion * @static - * @param {google.cloud.dataform.v1beta1.CompilationResultAction.IRelation} message Relation message or plain object to encode + * @param {google.cloud.dataform.v1beta1.CompilationResultAction.IAssertion} message Assertion message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Relation.encodeDelimited = function encodeDelimited(message, writer) { + Assertion.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Relation message from the specified reader or buffer. + * Decodes an Assertion message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Assertion * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.CompilationResultAction.Relation} Relation + * @returns {google.cloud.dataform.v1beta1.CompilationResultAction.Assertion} Assertion * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Relation.decode = function decode(reader, length) { + Assertion.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.CompilationResultAction.Relation(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -36088,6 +44193,10 @@ message.dependencyTargets.push($root.google.cloud.dataform.v1beta1.Target.decode(reader, reader.uint32())); break; } + case 5: { + message.parentAction = $root.google.cloud.dataform.v1beta1.Target.decode(reader, reader.uint32()); + break; + } case 2: { message.disabled = reader.bool(); break; @@ -36099,72 +44208,296 @@ break; } case 4: { - message.relationDescriptor = $root.google.cloud.dataform.v1beta1.RelationDescriptor.decode(reader, reader.uint32()); - break; - } - case 5: { - message.relationType = reader.int32(); - break; - } - case 6: { message.selectQuery = reader.string(); break; } - case 7: { - if (!(message.preOperations && message.preOperations.length)) - message.preOperations = []; - message.preOperations.push(reader.string()); - break; - } - case 8: { - if (!(message.postOperations && message.postOperations.length)) - message.postOperations = []; - message.postOperations.push(reader.string()); - break; - } - case 9: { - message.incrementalTableConfig = $root.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig.decode(reader, reader.uint32()); - break; - } - case 10: { - message.partitionExpression = reader.string(); - break; - } - case 11: { - if (!(message.clusterExpressions && message.clusterExpressions.length)) - message.clusterExpressions = []; - message.clusterExpressions.push(reader.string()); - break; - } - case 12: { - message.partitionExpirationDays = reader.int32(); - break; - } - case 13: { - message.requirePartitionFilter = reader.bool(); + case 6: { + message.relationDescriptor = $root.google.cloud.dataform.v1beta1.RelationDescriptor.decode(reader, reader.uint32()); break; } - case 14: { - if (message.additionalOptions === $util.emptyObject) - message.additionalOptions = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.additionalOptions[key] = value; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Assertion message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Assertion + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dataform.v1beta1.CompilationResultAction.Assertion} Assertion + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Assertion.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Assertion message. + * @function verify + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Assertion + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Assertion.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.dependencyTargets != null && message.hasOwnProperty("dependencyTargets")) { + if (!Array.isArray(message.dependencyTargets)) + return "dependencyTargets: array expected"; + for (var i = 0; i < message.dependencyTargets.length; ++i) { + var error = $root.google.cloud.dataform.v1beta1.Target.verify(message.dependencyTargets[i]); + if (error) + return "dependencyTargets." + error; + } + } + if (message.parentAction != null && message.hasOwnProperty("parentAction")) { + var error = $root.google.cloud.dataform.v1beta1.Target.verify(message.parentAction); + if (error) + return "parentAction." + error; + } + if (message.disabled != null && message.hasOwnProperty("disabled")) + if (typeof message.disabled !== "boolean") + return "disabled: boolean expected"; + if (message.tags != null && message.hasOwnProperty("tags")) { + if (!Array.isArray(message.tags)) + return "tags: array expected"; + for (var i = 0; i < message.tags.length; ++i) + if (!$util.isString(message.tags[i])) + return "tags: string[] expected"; + } + if (message.selectQuery != null && message.hasOwnProperty("selectQuery")) + if (!$util.isString(message.selectQuery)) + return "selectQuery: string expected"; + if (message.relationDescriptor != null && message.hasOwnProperty("relationDescriptor")) { + var error = $root.google.cloud.dataform.v1beta1.RelationDescriptor.verify(message.relationDescriptor); + if (error) + return "relationDescriptor." + error; + } + return null; + }; + + /** + * Creates an Assertion message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Assertion + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dataform.v1beta1.CompilationResultAction.Assertion} Assertion + */ + Assertion.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion) + return object; + var message = new $root.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion(); + if (object.dependencyTargets) { + if (!Array.isArray(object.dependencyTargets)) + throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.dependencyTargets: array expected"); + message.dependencyTargets = []; + for (var i = 0; i < object.dependencyTargets.length; ++i) { + if (typeof object.dependencyTargets[i] !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.dependencyTargets: object expected"); + message.dependencyTargets[i] = $root.google.cloud.dataform.v1beta1.Target.fromObject(object.dependencyTargets[i]); + } + } + if (object.parentAction != null) { + if (typeof object.parentAction !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.parentAction: object expected"); + message.parentAction = $root.google.cloud.dataform.v1beta1.Target.fromObject(object.parentAction); + } + if (object.disabled != null) + message.disabled = Boolean(object.disabled); + if (object.tags) { + if (!Array.isArray(object.tags)) + throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.tags: array expected"); + message.tags = []; + for (var i = 0; i < object.tags.length; ++i) + message.tags[i] = String(object.tags[i]); + } + if (object.selectQuery != null) + message.selectQuery = String(object.selectQuery); + if (object.relationDescriptor != null) { + if (typeof object.relationDescriptor !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.relationDescriptor: object expected"); + message.relationDescriptor = $root.google.cloud.dataform.v1beta1.RelationDescriptor.fromObject(object.relationDescriptor); + } + return message; + }; + + /** + * Creates a plain object from an Assertion message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Assertion + * @static + * @param {google.cloud.dataform.v1beta1.CompilationResultAction.Assertion} message Assertion + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Assertion.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.dependencyTargets = []; + object.tags = []; + } + if (options.defaults) { + object.disabled = false; + object.selectQuery = ""; + object.parentAction = null; + object.relationDescriptor = null; + } + if (message.dependencyTargets && message.dependencyTargets.length) { + object.dependencyTargets = []; + for (var j = 0; j < message.dependencyTargets.length; ++j) + object.dependencyTargets[j] = $root.google.cloud.dataform.v1beta1.Target.toObject(message.dependencyTargets[j], options); + } + if (message.disabled != null && message.hasOwnProperty("disabled")) + object.disabled = message.disabled; + if (message.tags && message.tags.length) { + object.tags = []; + for (var j = 0; j < message.tags.length; ++j) + object.tags[j] = message.tags[j]; + } + if (message.selectQuery != null && message.hasOwnProperty("selectQuery")) + object.selectQuery = message.selectQuery; + if (message.parentAction != null && message.hasOwnProperty("parentAction")) + object.parentAction = $root.google.cloud.dataform.v1beta1.Target.toObject(message.parentAction, options); + if (message.relationDescriptor != null && message.hasOwnProperty("relationDescriptor")) + object.relationDescriptor = $root.google.cloud.dataform.v1beta1.RelationDescriptor.toObject(message.relationDescriptor, options); + return object; + }; + + /** + * Converts this Assertion to JSON. + * @function toJSON + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Assertion + * @instance + * @returns {Object.} JSON object + */ + Assertion.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Assertion + * @function getTypeUrl + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Assertion + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Assertion.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.CompilationResultAction.Assertion"; + }; + + return Assertion; + })(); + + CompilationResultAction.Declaration = (function() { + + /** + * Properties of a Declaration. + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction + * @interface IDeclaration + * @property {google.cloud.dataform.v1beta1.IRelationDescriptor|null} [relationDescriptor] Declaration relationDescriptor + */ + + /** + * Constructs a new Declaration. + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction + * @classdesc Represents a Declaration. + * @implements IDeclaration + * @constructor + * @param {google.cloud.dataform.v1beta1.CompilationResultAction.IDeclaration=} [properties] Properties to set + */ + function Declaration(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Declaration relationDescriptor. + * @member {google.cloud.dataform.v1beta1.IRelationDescriptor|null|undefined} relationDescriptor + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Declaration + * @instance + */ + Declaration.prototype.relationDescriptor = null; + + /** + * Creates a new Declaration instance using the specified properties. + * @function create + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Declaration + * @static + * @param {google.cloud.dataform.v1beta1.CompilationResultAction.IDeclaration=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.CompilationResultAction.Declaration} Declaration instance + */ + Declaration.create = function create(properties) { + return new Declaration(properties); + }; + + /** + * Encodes the specified Declaration message. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResultAction.Declaration.verify|verify} messages. + * @function encode + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Declaration + * @static + * @param {google.cloud.dataform.v1beta1.CompilationResultAction.IDeclaration} message Declaration message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Declaration.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.relationDescriptor != null && Object.hasOwnProperty.call(message, "relationDescriptor")) + $root.google.cloud.dataform.v1beta1.RelationDescriptor.encode(message.relationDescriptor, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Declaration message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResultAction.Declaration.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Declaration + * @static + * @param {google.cloud.dataform.v1beta1.CompilationResultAction.IDeclaration} message Declaration message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Declaration.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Declaration message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Declaration + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dataform.v1beta1.CompilationResultAction.Declaration} Declaration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Declaration.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.relationDescriptor = $root.google.cloud.dataform.v1beta1.RelationDescriptor.decode(reader, reader.uint32()); break; } default: @@ -36176,750 +44509,996 @@ }; /** - * Decodes a Relation message from the specified reader or buffer, length delimited. + * Decodes a Declaration message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Declaration * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.CompilationResultAction.Relation} Relation + * @returns {google.cloud.dataform.v1beta1.CompilationResultAction.Declaration} Declaration * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Relation.decodeDelimited = function decodeDelimited(reader) { + Declaration.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Relation message. + * Verifies a Declaration message. * @function verify - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Declaration * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Relation.verify = function verify(message) { + Declaration.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.dependencyTargets != null && message.hasOwnProperty("dependencyTargets")) { - if (!Array.isArray(message.dependencyTargets)) - return "dependencyTargets: array expected"; - for (var i = 0; i < message.dependencyTargets.length; ++i) { - var error = $root.google.cloud.dataform.v1beta1.Target.verify(message.dependencyTargets[i]); - if (error) - return "dependencyTargets." + error; - } - } - if (message.disabled != null && message.hasOwnProperty("disabled")) - if (typeof message.disabled !== "boolean") - return "disabled: boolean expected"; - if (message.tags != null && message.hasOwnProperty("tags")) { - if (!Array.isArray(message.tags)) - return "tags: array expected"; - for (var i = 0; i < message.tags.length; ++i) - if (!$util.isString(message.tags[i])) - return "tags: string[] expected"; - } if (message.relationDescriptor != null && message.hasOwnProperty("relationDescriptor")) { var error = $root.google.cloud.dataform.v1beta1.RelationDescriptor.verify(message.relationDescriptor); if (error) return "relationDescriptor." + error; } - if (message.relationType != null && message.hasOwnProperty("relationType")) - switch (message.relationType) { - default: - return "relationType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.selectQuery != null && message.hasOwnProperty("selectQuery")) - if (!$util.isString(message.selectQuery)) - return "selectQuery: string expected"; - if (message.preOperations != null && message.hasOwnProperty("preOperations")) { - if (!Array.isArray(message.preOperations)) - return "preOperations: array expected"; - for (var i = 0; i < message.preOperations.length; ++i) - if (!$util.isString(message.preOperations[i])) - return "preOperations: string[] expected"; - } - if (message.postOperations != null && message.hasOwnProperty("postOperations")) { - if (!Array.isArray(message.postOperations)) - return "postOperations: array expected"; - for (var i = 0; i < message.postOperations.length; ++i) - if (!$util.isString(message.postOperations[i])) - return "postOperations: string[] expected"; - } - if (message.incrementalTableConfig != null && message.hasOwnProperty("incrementalTableConfig")) { - var error = $root.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig.verify(message.incrementalTableConfig); - if (error) - return "incrementalTableConfig." + error; - } - if (message.partitionExpression != null && message.hasOwnProperty("partitionExpression")) - if (!$util.isString(message.partitionExpression)) - return "partitionExpression: string expected"; - if (message.clusterExpressions != null && message.hasOwnProperty("clusterExpressions")) { - if (!Array.isArray(message.clusterExpressions)) - return "clusterExpressions: array expected"; - for (var i = 0; i < message.clusterExpressions.length; ++i) - if (!$util.isString(message.clusterExpressions[i])) - return "clusterExpressions: string[] expected"; - } - if (message.partitionExpirationDays != null && message.hasOwnProperty("partitionExpirationDays")) - if (!$util.isInteger(message.partitionExpirationDays)) - return "partitionExpirationDays: integer expected"; - if (message.requirePartitionFilter != null && message.hasOwnProperty("requirePartitionFilter")) - if (typeof message.requirePartitionFilter !== "boolean") - return "requirePartitionFilter: boolean expected"; - if (message.additionalOptions != null && message.hasOwnProperty("additionalOptions")) { - if (!$util.isObject(message.additionalOptions)) - return "additionalOptions: object expected"; - var key = Object.keys(message.additionalOptions); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.additionalOptions[key[i]])) - return "additionalOptions: string{k:string} expected"; - } return null; }; /** - * Creates a Relation message from a plain object. Also converts values to their respective internal types. + * Creates a Declaration message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Declaration * @static * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.CompilationResultAction.Relation} Relation + * @returns {google.cloud.dataform.v1beta1.CompilationResultAction.Declaration} Declaration */ - Relation.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.CompilationResultAction.Relation) + Declaration.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration) return object; - var message = new $root.google.cloud.dataform.v1beta1.CompilationResultAction.Relation(); - if (object.dependencyTargets) { - if (!Array.isArray(object.dependencyTargets)) - throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.Relation.dependencyTargets: array expected"); - message.dependencyTargets = []; - for (var i = 0; i < object.dependencyTargets.length; ++i) { - if (typeof object.dependencyTargets[i] !== "object") - throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.Relation.dependencyTargets: object expected"); - message.dependencyTargets[i] = $root.google.cloud.dataform.v1beta1.Target.fromObject(object.dependencyTargets[i]); - } - } - if (object.disabled != null) - message.disabled = Boolean(object.disabled); - if (object.tags) { - if (!Array.isArray(object.tags)) - throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.Relation.tags: array expected"); - message.tags = []; - for (var i = 0; i < object.tags.length; ++i) - message.tags[i] = String(object.tags[i]); - } + var message = new $root.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration(); if (object.relationDescriptor != null) { if (typeof object.relationDescriptor !== "object") - throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.Relation.relationDescriptor: object expected"); + throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.Declaration.relationDescriptor: object expected"); message.relationDescriptor = $root.google.cloud.dataform.v1beta1.RelationDescriptor.fromObject(object.relationDescriptor); } - switch (object.relationType) { - default: - if (typeof object.relationType === "number") { - message.relationType = object.relationType; - break; - } - break; - case "RELATION_TYPE_UNSPECIFIED": - case 0: - message.relationType = 0; - break; - case "TABLE": - case 1: - message.relationType = 1; - break; - case "VIEW": - case 2: - message.relationType = 2; - break; - case "INCREMENTAL_TABLE": - case 3: - message.relationType = 3; - break; - case "MATERIALIZED_VIEW": - case 4: - message.relationType = 4; - break; - } - if (object.selectQuery != null) - message.selectQuery = String(object.selectQuery); - if (object.preOperations) { - if (!Array.isArray(object.preOperations)) - throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.Relation.preOperations: array expected"); - message.preOperations = []; - for (var i = 0; i < object.preOperations.length; ++i) - message.preOperations[i] = String(object.preOperations[i]); - } - if (object.postOperations) { - if (!Array.isArray(object.postOperations)) - throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.Relation.postOperations: array expected"); - message.postOperations = []; - for (var i = 0; i < object.postOperations.length; ++i) - message.postOperations[i] = String(object.postOperations[i]); - } - if (object.incrementalTableConfig != null) { - if (typeof object.incrementalTableConfig !== "object") - throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.Relation.incrementalTableConfig: object expected"); - message.incrementalTableConfig = $root.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig.fromObject(object.incrementalTableConfig); - } - if (object.partitionExpression != null) - message.partitionExpression = String(object.partitionExpression); - if (object.clusterExpressions) { - if (!Array.isArray(object.clusterExpressions)) - throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.Relation.clusterExpressions: array expected"); - message.clusterExpressions = []; - for (var i = 0; i < object.clusterExpressions.length; ++i) - message.clusterExpressions[i] = String(object.clusterExpressions[i]); - } - if (object.partitionExpirationDays != null) - message.partitionExpirationDays = object.partitionExpirationDays | 0; - if (object.requirePartitionFilter != null) - message.requirePartitionFilter = Boolean(object.requirePartitionFilter); - if (object.additionalOptions) { - if (typeof object.additionalOptions !== "object") - throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.Relation.additionalOptions: object expected"); - message.additionalOptions = {}; - for (var keys = Object.keys(object.additionalOptions), i = 0; i < keys.length; ++i) - message.additionalOptions[keys[i]] = String(object.additionalOptions[keys[i]]); - } return message; }; /** - * Creates a plain object from a Relation message. Also converts values to other types if specified. + * Creates a plain object from a Declaration message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Declaration * @static - * @param {google.cloud.dataform.v1beta1.CompilationResultAction.Relation} message Relation + * @param {google.cloud.dataform.v1beta1.CompilationResultAction.Declaration} message Declaration * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Relation.toObject = function toObject(message, options) { + Declaration.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.dependencyTargets = []; - object.tags = []; - object.preOperations = []; - object.postOperations = []; - object.clusterExpressions = []; - } - if (options.objects || options.defaults) - object.additionalOptions = {}; - if (options.defaults) { - object.disabled = false; + if (options.defaults) object.relationDescriptor = null; - object.relationType = options.enums === String ? "RELATION_TYPE_UNSPECIFIED" : 0; - object.selectQuery = ""; - object.incrementalTableConfig = null; - object.partitionExpression = ""; - object.partitionExpirationDays = 0; - object.requirePartitionFilter = false; - } - if (message.dependencyTargets && message.dependencyTargets.length) { - object.dependencyTargets = []; - for (var j = 0; j < message.dependencyTargets.length; ++j) - object.dependencyTargets[j] = $root.google.cloud.dataform.v1beta1.Target.toObject(message.dependencyTargets[j], options); - } - if (message.disabled != null && message.hasOwnProperty("disabled")) - object.disabled = message.disabled; - if (message.tags && message.tags.length) { - object.tags = []; - for (var j = 0; j < message.tags.length; ++j) - object.tags[j] = message.tags[j]; - } if (message.relationDescriptor != null && message.hasOwnProperty("relationDescriptor")) object.relationDescriptor = $root.google.cloud.dataform.v1beta1.RelationDescriptor.toObject(message.relationDescriptor, options); - if (message.relationType != null && message.hasOwnProperty("relationType")) - object.relationType = options.enums === String ? $root.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType[message.relationType] === undefined ? message.relationType : $root.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType[message.relationType] : message.relationType; - if (message.selectQuery != null && message.hasOwnProperty("selectQuery")) - object.selectQuery = message.selectQuery; - if (message.preOperations && message.preOperations.length) { - object.preOperations = []; - for (var j = 0; j < message.preOperations.length; ++j) - object.preOperations[j] = message.preOperations[j]; - } - if (message.postOperations && message.postOperations.length) { - object.postOperations = []; - for (var j = 0; j < message.postOperations.length; ++j) - object.postOperations[j] = message.postOperations[j]; - } - if (message.incrementalTableConfig != null && message.hasOwnProperty("incrementalTableConfig")) - object.incrementalTableConfig = $root.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig.toObject(message.incrementalTableConfig, options); - if (message.partitionExpression != null && message.hasOwnProperty("partitionExpression")) - object.partitionExpression = message.partitionExpression; - if (message.clusterExpressions && message.clusterExpressions.length) { - object.clusterExpressions = []; - for (var j = 0; j < message.clusterExpressions.length; ++j) - object.clusterExpressions[j] = message.clusterExpressions[j]; + return object; + }; + + /** + * Converts this Declaration to JSON. + * @function toJSON + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Declaration + * @instance + * @returns {Object.} JSON object + */ + Declaration.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Declaration + * @function getTypeUrl + * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Declaration + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Declaration.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } - if (message.partitionExpirationDays != null && message.hasOwnProperty("partitionExpirationDays")) - object.partitionExpirationDays = message.partitionExpirationDays; - if (message.requirePartitionFilter != null && message.hasOwnProperty("requirePartitionFilter")) - object.requirePartitionFilter = message.requirePartitionFilter; - var keys2; - if (message.additionalOptions && (keys2 = Object.keys(message.additionalOptions)).length) { - object.additionalOptions = {}; - for (var j = 0; j < keys2.length; ++j) - object.additionalOptions[keys2[j]] = message.additionalOptions[keys2[j]]; + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.CompilationResultAction.Declaration"; + }; + + return Declaration; + })(); + + return CompilationResultAction; + })(); + + v1beta1.QueryCompilationResultActionsRequest = (function() { + + /** + * Properties of a QueryCompilationResultActionsRequest. + * @memberof google.cloud.dataform.v1beta1 + * @interface IQueryCompilationResultActionsRequest + * @property {string|null} [name] QueryCompilationResultActionsRequest name + * @property {number|null} [pageSize] QueryCompilationResultActionsRequest pageSize + * @property {string|null} [pageToken] QueryCompilationResultActionsRequest pageToken + * @property {string|null} [filter] QueryCompilationResultActionsRequest filter + */ + + /** + * Constructs a new QueryCompilationResultActionsRequest. + * @memberof google.cloud.dataform.v1beta1 + * @classdesc Represents a QueryCompilationResultActionsRequest. + * @implements IQueryCompilationResultActionsRequest + * @constructor + * @param {google.cloud.dataform.v1beta1.IQueryCompilationResultActionsRequest=} [properties] Properties to set + */ + function QueryCompilationResultActionsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * QueryCompilationResultActionsRequest name. + * @member {string} name + * @memberof google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest + * @instance + */ + QueryCompilationResultActionsRequest.prototype.name = ""; + + /** + * QueryCompilationResultActionsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest + * @instance + */ + QueryCompilationResultActionsRequest.prototype.pageSize = 0; + + /** + * QueryCompilationResultActionsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest + * @instance + */ + QueryCompilationResultActionsRequest.prototype.pageToken = ""; + + /** + * QueryCompilationResultActionsRequest filter. + * @member {string} filter + * @memberof google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest + * @instance + */ + QueryCompilationResultActionsRequest.prototype.filter = ""; + + /** + * Creates a new QueryCompilationResultActionsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest + * @static + * @param {google.cloud.dataform.v1beta1.IQueryCompilationResultActionsRequest=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest} QueryCompilationResultActionsRequest instance + */ + QueryCompilationResultActionsRequest.create = function create(properties) { + return new QueryCompilationResultActionsRequest(properties); + }; + + /** + * Encodes the specified QueryCompilationResultActionsRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest + * @static + * @param {google.cloud.dataform.v1beta1.IQueryCompilationResultActionsRequest} message QueryCompilationResultActionsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryCompilationResultActionsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + return writer; + }; + + /** + * Encodes the specified QueryCompilationResultActionsRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest + * @static + * @param {google.cloud.dataform.v1beta1.IQueryCompilationResultActionsRequest} message QueryCompilationResultActionsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryCompilationResultActionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a QueryCompilationResultActionsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest} QueryCompilationResultActionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryCompilationResultActionsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + case 4: { + message.filter = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; } + } + return message; + }; + + /** + * Decodes a QueryCompilationResultActionsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest} QueryCompilationResultActionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryCompilationResultActionsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a QueryCompilationResultActionsRequest message. + * @function verify + * @memberof google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QueryCompilationResultActionsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + return null; + }; + + /** + * Creates a QueryCompilationResultActionsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest} QueryCompilationResultActionsRequest + */ + QueryCompilationResultActionsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest) return object; - }; + var message = new $root.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.filter != null) + message.filter = String(object.filter); + return message; + }; + + /** + * Creates a plain object from a QueryCompilationResultActionsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest + * @static + * @param {google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest} message QueryCompilationResultActionsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QueryCompilationResultActionsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + return object; + }; - /** - * Converts this Relation to JSON. - * @function toJSON - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation - * @instance - * @returns {Object.} JSON object - */ - Relation.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this QueryCompilationResultActionsRequest to JSON. + * @function toJSON + * @memberof google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest + * @instance + * @returns {Object.} JSON object + */ + QueryCompilationResultActionsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Gets the default type url for Relation - * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Relation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.CompilationResultAction.Relation"; - }; + /** + * Gets the default type url for QueryCompilationResultActionsRequest + * @function getTypeUrl + * @memberof google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + QueryCompilationResultActionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest"; + }; - /** - * RelationType enum. - * @name google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType - * @enum {number} - * @property {number} RELATION_TYPE_UNSPECIFIED=0 RELATION_TYPE_UNSPECIFIED value - * @property {number} TABLE=1 TABLE value - * @property {number} VIEW=2 VIEW value - * @property {number} INCREMENTAL_TABLE=3 INCREMENTAL_TABLE value - * @property {number} MATERIALIZED_VIEW=4 MATERIALIZED_VIEW value - */ - Relation.RelationType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "RELATION_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "TABLE"] = 1; - values[valuesById[2] = "VIEW"] = 2; - values[valuesById[3] = "INCREMENTAL_TABLE"] = 3; - values[valuesById[4] = "MATERIALIZED_VIEW"] = 4; - return values; - })(); + return QueryCompilationResultActionsRequest; + })(); - Relation.IncrementalTableConfig = (function() { + v1beta1.QueryCompilationResultActionsResponse = (function() { - /** - * Properties of an IncrementalTableConfig. - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation - * @interface IIncrementalTableConfig - * @property {string|null} [incrementalSelectQuery] IncrementalTableConfig incrementalSelectQuery - * @property {boolean|null} [refreshDisabled] IncrementalTableConfig refreshDisabled - * @property {Array.|null} [uniqueKeyParts] IncrementalTableConfig uniqueKeyParts - * @property {string|null} [updatePartitionFilter] IncrementalTableConfig updatePartitionFilter - * @property {Array.|null} [incrementalPreOperations] IncrementalTableConfig incrementalPreOperations - * @property {Array.|null} [incrementalPostOperations] IncrementalTableConfig incrementalPostOperations - */ + /** + * Properties of a QueryCompilationResultActionsResponse. + * @memberof google.cloud.dataform.v1beta1 + * @interface IQueryCompilationResultActionsResponse + * @property {Array.|null} [compilationResultActions] QueryCompilationResultActionsResponse compilationResultActions + * @property {string|null} [nextPageToken] QueryCompilationResultActionsResponse nextPageToken + */ - /** - * Constructs a new IncrementalTableConfig. - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation - * @classdesc Represents an IncrementalTableConfig. - * @implements IIncrementalTableConfig - * @constructor - * @param {google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IIncrementalTableConfig=} [properties] Properties to set - */ - function IncrementalTableConfig(properties) { - this.uniqueKeyParts = []; - this.incrementalPreOperations = []; - this.incrementalPostOperations = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + /** + * Constructs a new QueryCompilationResultActionsResponse. + * @memberof google.cloud.dataform.v1beta1 + * @classdesc Represents a QueryCompilationResultActionsResponse. + * @implements IQueryCompilationResultActionsResponse + * @constructor + * @param {google.cloud.dataform.v1beta1.IQueryCompilationResultActionsResponse=} [properties] Properties to set + */ + function QueryCompilationResultActionsResponse(properties) { + this.compilationResultActions = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * QueryCompilationResultActionsResponse compilationResultActions. + * @member {Array.} compilationResultActions + * @memberof google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse + * @instance + */ + QueryCompilationResultActionsResponse.prototype.compilationResultActions = $util.emptyArray; + + /** + * QueryCompilationResultActionsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse + * @instance + */ + QueryCompilationResultActionsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new QueryCompilationResultActionsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse + * @static + * @param {google.cloud.dataform.v1beta1.IQueryCompilationResultActionsResponse=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse} QueryCompilationResultActionsResponse instance + */ + QueryCompilationResultActionsResponse.create = function create(properties) { + return new QueryCompilationResultActionsResponse(properties); + }; + + /** + * Encodes the specified QueryCompilationResultActionsResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse + * @static + * @param {google.cloud.dataform.v1beta1.IQueryCompilationResultActionsResponse} message QueryCompilationResultActionsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryCompilationResultActionsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.compilationResultActions != null && message.compilationResultActions.length) + for (var i = 0; i < message.compilationResultActions.length; ++i) + $root.google.cloud.dataform.v1beta1.CompilationResultAction.encode(message.compilationResultActions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + return writer; + }; + + /** + * Encodes the specified QueryCompilationResultActionsResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse + * @static + * @param {google.cloud.dataform.v1beta1.IQueryCompilationResultActionsResponse} message QueryCompilationResultActionsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryCompilationResultActionsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a QueryCompilationResultActionsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse} QueryCompilationResultActionsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryCompilationResultActionsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.compilationResultActions && message.compilationResultActions.length)) + message.compilationResultActions = []; + message.compilationResultActions.push($root.google.cloud.dataform.v1beta1.CompilationResultAction.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; } + } + return message; + }; - /** - * IncrementalTableConfig incrementalSelectQuery. - * @member {string} incrementalSelectQuery - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig - * @instance - */ - IncrementalTableConfig.prototype.incrementalSelectQuery = ""; + /** + * Decodes a QueryCompilationResultActionsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse} QueryCompilationResultActionsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryCompilationResultActionsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * IncrementalTableConfig refreshDisabled. - * @member {boolean} refreshDisabled - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig - * @instance - */ - IncrementalTableConfig.prototype.refreshDisabled = false; + /** + * Verifies a QueryCompilationResultActionsResponse message. + * @function verify + * @memberof google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QueryCompilationResultActionsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.compilationResultActions != null && message.hasOwnProperty("compilationResultActions")) { + if (!Array.isArray(message.compilationResultActions)) + return "compilationResultActions: array expected"; + for (var i = 0; i < message.compilationResultActions.length; ++i) { + var error = $root.google.cloud.dataform.v1beta1.CompilationResultAction.verify(message.compilationResultActions[i]); + if (error) + return "compilationResultActions." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; - /** - * IncrementalTableConfig uniqueKeyParts. - * @member {Array.} uniqueKeyParts - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig - * @instance - */ - IncrementalTableConfig.prototype.uniqueKeyParts = $util.emptyArray; + /** + * Creates a QueryCompilationResultActionsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse} QueryCompilationResultActionsResponse + */ + QueryCompilationResultActionsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse) + return object; + var message = new $root.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse(); + if (object.compilationResultActions) { + if (!Array.isArray(object.compilationResultActions)) + throw TypeError(".google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse.compilationResultActions: array expected"); + message.compilationResultActions = []; + for (var i = 0; i < object.compilationResultActions.length; ++i) { + if (typeof object.compilationResultActions[i] !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse.compilationResultActions: object expected"); + message.compilationResultActions[i] = $root.google.cloud.dataform.v1beta1.CompilationResultAction.fromObject(object.compilationResultActions[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; - /** - * IncrementalTableConfig updatePartitionFilter. - * @member {string} updatePartitionFilter - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig - * @instance - */ - IncrementalTableConfig.prototype.updatePartitionFilter = ""; + /** + * Creates a plain object from a QueryCompilationResultActionsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse + * @static + * @param {google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse} message QueryCompilationResultActionsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QueryCompilationResultActionsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.compilationResultActions = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.compilationResultActions && message.compilationResultActions.length) { + object.compilationResultActions = []; + for (var j = 0; j < message.compilationResultActions.length; ++j) + object.compilationResultActions[j] = $root.google.cloud.dataform.v1beta1.CompilationResultAction.toObject(message.compilationResultActions[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; - /** - * IncrementalTableConfig incrementalPreOperations. - * @member {Array.} incrementalPreOperations - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig - * @instance - */ - IncrementalTableConfig.prototype.incrementalPreOperations = $util.emptyArray; + /** + * Converts this QueryCompilationResultActionsResponse to JSON. + * @function toJSON + * @memberof google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse + * @instance + * @returns {Object.} JSON object + */ + QueryCompilationResultActionsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * IncrementalTableConfig incrementalPostOperations. - * @member {Array.} incrementalPostOperations - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig - * @instance - */ - IncrementalTableConfig.prototype.incrementalPostOperations = $util.emptyArray; + /** + * Gets the default type url for QueryCompilationResultActionsResponse + * @function getTypeUrl + * @memberof google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + QueryCompilationResultActionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse"; + }; - /** - * Creates a new IncrementalTableConfig instance using the specified properties. - * @function create - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig - * @static - * @param {google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IIncrementalTableConfig=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig} IncrementalTableConfig instance - */ - IncrementalTableConfig.create = function create(properties) { - return new IncrementalTableConfig(properties); - }; + return QueryCompilationResultActionsResponse; + })(); - /** - * Encodes the specified IncrementalTableConfig message. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig - * @static - * @param {google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IIncrementalTableConfig} message IncrementalTableConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - IncrementalTableConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.incrementalSelectQuery != null && Object.hasOwnProperty.call(message, "incrementalSelectQuery")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.incrementalSelectQuery); - if (message.refreshDisabled != null && Object.hasOwnProperty.call(message, "refreshDisabled")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.refreshDisabled); - if (message.uniqueKeyParts != null && message.uniqueKeyParts.length) - for (var i = 0; i < message.uniqueKeyParts.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.uniqueKeyParts[i]); - if (message.updatePartitionFilter != null && Object.hasOwnProperty.call(message, "updatePartitionFilter")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.updatePartitionFilter); - if (message.incrementalPreOperations != null && message.incrementalPreOperations.length) - for (var i = 0; i < message.incrementalPreOperations.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.incrementalPreOperations[i]); - if (message.incrementalPostOperations != null && message.incrementalPostOperations.length) - for (var i = 0; i < message.incrementalPostOperations.length; ++i) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.incrementalPostOperations[i]); - return writer; - }; + v1beta1.WorkflowConfig = (function() { - /** - * Encodes the specified IncrementalTableConfig message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig - * @static - * @param {google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IIncrementalTableConfig} message IncrementalTableConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - IncrementalTableConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Properties of a WorkflowConfig. + * @memberof google.cloud.dataform.v1beta1 + * @interface IWorkflowConfig + * @property {string|null} [name] WorkflowConfig name + * @property {string|null} [releaseConfig] WorkflowConfig releaseConfig + * @property {google.cloud.dataform.v1beta1.IInvocationConfig|null} [invocationConfig] WorkflowConfig invocationConfig + * @property {string|null} [cronSchedule] WorkflowConfig cronSchedule + * @property {string|null} [timeZone] WorkflowConfig timeZone + * @property {Array.|null} [recentScheduledExecutionRecords] WorkflowConfig recentScheduledExecutionRecords + */ - /** - * Decodes an IncrementalTableConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig} IncrementalTableConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - IncrementalTableConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.incrementalSelectQuery = reader.string(); - break; - } - case 2: { - message.refreshDisabled = reader.bool(); - break; - } - case 3: { - if (!(message.uniqueKeyParts && message.uniqueKeyParts.length)) - message.uniqueKeyParts = []; - message.uniqueKeyParts.push(reader.string()); - break; - } - case 4: { - message.updatePartitionFilter = reader.string(); - break; - } - case 5: { - if (!(message.incrementalPreOperations && message.incrementalPreOperations.length)) - message.incrementalPreOperations = []; - message.incrementalPreOperations.push(reader.string()); - break; - } - case 6: { - if (!(message.incrementalPostOperations && message.incrementalPostOperations.length)) - message.incrementalPostOperations = []; - message.incrementalPostOperations.push(reader.string()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Constructs a new WorkflowConfig. + * @memberof google.cloud.dataform.v1beta1 + * @classdesc Represents a WorkflowConfig. + * @implements IWorkflowConfig + * @constructor + * @param {google.cloud.dataform.v1beta1.IWorkflowConfig=} [properties] Properties to set + */ + function WorkflowConfig(properties) { + this.recentScheduledExecutionRecords = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowConfig name. + * @member {string} name + * @memberof google.cloud.dataform.v1beta1.WorkflowConfig + * @instance + */ + WorkflowConfig.prototype.name = ""; - /** - * Decodes an IncrementalTableConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig} IncrementalTableConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - IncrementalTableConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * WorkflowConfig releaseConfig. + * @member {string} releaseConfig + * @memberof google.cloud.dataform.v1beta1.WorkflowConfig + * @instance + */ + WorkflowConfig.prototype.releaseConfig = ""; - /** - * Verifies an IncrementalTableConfig message. - * @function verify - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - IncrementalTableConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.incrementalSelectQuery != null && message.hasOwnProperty("incrementalSelectQuery")) - if (!$util.isString(message.incrementalSelectQuery)) - return "incrementalSelectQuery: string expected"; - if (message.refreshDisabled != null && message.hasOwnProperty("refreshDisabled")) - if (typeof message.refreshDisabled !== "boolean") - return "refreshDisabled: boolean expected"; - if (message.uniqueKeyParts != null && message.hasOwnProperty("uniqueKeyParts")) { - if (!Array.isArray(message.uniqueKeyParts)) - return "uniqueKeyParts: array expected"; - for (var i = 0; i < message.uniqueKeyParts.length; ++i) - if (!$util.isString(message.uniqueKeyParts[i])) - return "uniqueKeyParts: string[] expected"; - } - if (message.updatePartitionFilter != null && message.hasOwnProperty("updatePartitionFilter")) - if (!$util.isString(message.updatePartitionFilter)) - return "updatePartitionFilter: string expected"; - if (message.incrementalPreOperations != null && message.hasOwnProperty("incrementalPreOperations")) { - if (!Array.isArray(message.incrementalPreOperations)) - return "incrementalPreOperations: array expected"; - for (var i = 0; i < message.incrementalPreOperations.length; ++i) - if (!$util.isString(message.incrementalPreOperations[i])) - return "incrementalPreOperations: string[] expected"; - } - if (message.incrementalPostOperations != null && message.hasOwnProperty("incrementalPostOperations")) { - if (!Array.isArray(message.incrementalPostOperations)) - return "incrementalPostOperations: array expected"; - for (var i = 0; i < message.incrementalPostOperations.length; ++i) - if (!$util.isString(message.incrementalPostOperations[i])) - return "incrementalPostOperations: string[] expected"; - } - return null; - }; + /** + * WorkflowConfig invocationConfig. + * @member {google.cloud.dataform.v1beta1.IInvocationConfig|null|undefined} invocationConfig + * @memberof google.cloud.dataform.v1beta1.WorkflowConfig + * @instance + */ + WorkflowConfig.prototype.invocationConfig = null; - /** - * Creates an IncrementalTableConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig} IncrementalTableConfig - */ - IncrementalTableConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig) - return object; - var message = new $root.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig(); - if (object.incrementalSelectQuery != null) - message.incrementalSelectQuery = String(object.incrementalSelectQuery); - if (object.refreshDisabled != null) - message.refreshDisabled = Boolean(object.refreshDisabled); - if (object.uniqueKeyParts) { - if (!Array.isArray(object.uniqueKeyParts)) - throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig.uniqueKeyParts: array expected"); - message.uniqueKeyParts = []; - for (var i = 0; i < object.uniqueKeyParts.length; ++i) - message.uniqueKeyParts[i] = String(object.uniqueKeyParts[i]); - } - if (object.updatePartitionFilter != null) - message.updatePartitionFilter = String(object.updatePartitionFilter); - if (object.incrementalPreOperations) { - if (!Array.isArray(object.incrementalPreOperations)) - throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig.incrementalPreOperations: array expected"); - message.incrementalPreOperations = []; - for (var i = 0; i < object.incrementalPreOperations.length; ++i) - message.incrementalPreOperations[i] = String(object.incrementalPreOperations[i]); - } - if (object.incrementalPostOperations) { - if (!Array.isArray(object.incrementalPostOperations)) - throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig.incrementalPostOperations: array expected"); - message.incrementalPostOperations = []; - for (var i = 0; i < object.incrementalPostOperations.length; ++i) - message.incrementalPostOperations[i] = String(object.incrementalPostOperations[i]); - } - return message; - }; + /** + * WorkflowConfig cronSchedule. + * @member {string} cronSchedule + * @memberof google.cloud.dataform.v1beta1.WorkflowConfig + * @instance + */ + WorkflowConfig.prototype.cronSchedule = ""; - /** - * Creates a plain object from an IncrementalTableConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig - * @static - * @param {google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig} message IncrementalTableConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - IncrementalTableConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.uniqueKeyParts = []; - object.incrementalPreOperations = []; - object.incrementalPostOperations = []; + /** + * WorkflowConfig timeZone. + * @member {string} timeZone + * @memberof google.cloud.dataform.v1beta1.WorkflowConfig + * @instance + */ + WorkflowConfig.prototype.timeZone = ""; + + /** + * WorkflowConfig recentScheduledExecutionRecords. + * @member {Array.} recentScheduledExecutionRecords + * @memberof google.cloud.dataform.v1beta1.WorkflowConfig + * @instance + */ + WorkflowConfig.prototype.recentScheduledExecutionRecords = $util.emptyArray; + + /** + * Creates a new WorkflowConfig instance using the specified properties. + * @function create + * @memberof google.cloud.dataform.v1beta1.WorkflowConfig + * @static + * @param {google.cloud.dataform.v1beta1.IWorkflowConfig=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.WorkflowConfig} WorkflowConfig instance + */ + WorkflowConfig.create = function create(properties) { + return new WorkflowConfig(properties); + }; + + /** + * Encodes the specified WorkflowConfig message. Does not implicitly {@link google.cloud.dataform.v1beta1.WorkflowConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.dataform.v1beta1.WorkflowConfig + * @static + * @param {google.cloud.dataform.v1beta1.IWorkflowConfig} message WorkflowConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.releaseConfig != null && Object.hasOwnProperty.call(message, "releaseConfig")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.releaseConfig); + if (message.invocationConfig != null && Object.hasOwnProperty.call(message, "invocationConfig")) + $root.google.cloud.dataform.v1beta1.InvocationConfig.encode(message.invocationConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.cronSchedule != null && Object.hasOwnProperty.call(message, "cronSchedule")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.cronSchedule); + if (message.recentScheduledExecutionRecords != null && message.recentScheduledExecutionRecords.length) + for (var i = 0; i < message.recentScheduledExecutionRecords.length; ++i) + $root.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord.encode(message.recentScheduledExecutionRecords[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.timeZone != null && Object.hasOwnProperty.call(message, "timeZone")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.timeZone); + return writer; + }; + + /** + * Encodes the specified WorkflowConfig message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.WorkflowConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dataform.v1beta1.WorkflowConfig + * @static + * @param {google.cloud.dataform.v1beta1.IWorkflowConfig} message WorkflowConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a WorkflowConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dataform.v1beta1.WorkflowConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dataform.v1beta1.WorkflowConfig} WorkflowConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.WorkflowConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; } - if (options.defaults) { - object.incrementalSelectQuery = ""; - object.refreshDisabled = false; - object.updatePartitionFilter = ""; + case 2: { + message.releaseConfig = reader.string(); + break; } - if (message.incrementalSelectQuery != null && message.hasOwnProperty("incrementalSelectQuery")) - object.incrementalSelectQuery = message.incrementalSelectQuery; - if (message.refreshDisabled != null && message.hasOwnProperty("refreshDisabled")) - object.refreshDisabled = message.refreshDisabled; - if (message.uniqueKeyParts && message.uniqueKeyParts.length) { - object.uniqueKeyParts = []; - for (var j = 0; j < message.uniqueKeyParts.length; ++j) - object.uniqueKeyParts[j] = message.uniqueKeyParts[j]; + case 3: { + message.invocationConfig = $root.google.cloud.dataform.v1beta1.InvocationConfig.decode(reader, reader.uint32()); + break; } - if (message.updatePartitionFilter != null && message.hasOwnProperty("updatePartitionFilter")) - object.updatePartitionFilter = message.updatePartitionFilter; - if (message.incrementalPreOperations && message.incrementalPreOperations.length) { - object.incrementalPreOperations = []; - for (var j = 0; j < message.incrementalPreOperations.length; ++j) - object.incrementalPreOperations[j] = message.incrementalPreOperations[j]; + case 4: { + message.cronSchedule = reader.string(); + break; } - if (message.incrementalPostOperations && message.incrementalPostOperations.length) { - object.incrementalPostOperations = []; - for (var j = 0; j < message.incrementalPostOperations.length; ++j) - object.incrementalPostOperations[j] = message.incrementalPostOperations[j]; + case 7: { + message.timeZone = reader.string(); + break; } - return object; - }; + case 5: { + if (!(message.recentScheduledExecutionRecords && message.recentScheduledExecutionRecords.length)) + message.recentScheduledExecutionRecords = []; + message.recentScheduledExecutionRecords.push($root.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Converts this IncrementalTableConfig to JSON. - * @function toJSON - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig - * @instance - * @returns {Object.} JSON object - */ - IncrementalTableConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes a WorkflowConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dataform.v1beta1.WorkflowConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dataform.v1beta1.WorkflowConfig} WorkflowConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Gets the default type url for IncrementalTableConfig - * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - IncrementalTableConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig"; - }; + /** + * Verifies a WorkflowConfig message. + * @function verify + * @memberof google.cloud.dataform.v1beta1.WorkflowConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.releaseConfig != null && message.hasOwnProperty("releaseConfig")) + if (!$util.isString(message.releaseConfig)) + return "releaseConfig: string expected"; + if (message.invocationConfig != null && message.hasOwnProperty("invocationConfig")) { + var error = $root.google.cloud.dataform.v1beta1.InvocationConfig.verify(message.invocationConfig); + if (error) + return "invocationConfig." + error; + } + if (message.cronSchedule != null && message.hasOwnProperty("cronSchedule")) + if (!$util.isString(message.cronSchedule)) + return "cronSchedule: string expected"; + if (message.timeZone != null && message.hasOwnProperty("timeZone")) + if (!$util.isString(message.timeZone)) + return "timeZone: string expected"; + if (message.recentScheduledExecutionRecords != null && message.hasOwnProperty("recentScheduledExecutionRecords")) { + if (!Array.isArray(message.recentScheduledExecutionRecords)) + return "recentScheduledExecutionRecords: array expected"; + for (var i = 0; i < message.recentScheduledExecutionRecords.length; ++i) { + var error = $root.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord.verify(message.recentScheduledExecutionRecords[i]); + if (error) + return "recentScheduledExecutionRecords." + error; + } + } + return null; + }; - return IncrementalTableConfig; - })(); + /** + * Creates a WorkflowConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dataform.v1beta1.WorkflowConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dataform.v1beta1.WorkflowConfig} WorkflowConfig + */ + WorkflowConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.WorkflowConfig) + return object; + var message = new $root.google.cloud.dataform.v1beta1.WorkflowConfig(); + if (object.name != null) + message.name = String(object.name); + if (object.releaseConfig != null) + message.releaseConfig = String(object.releaseConfig); + if (object.invocationConfig != null) { + if (typeof object.invocationConfig !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.WorkflowConfig.invocationConfig: object expected"); + message.invocationConfig = $root.google.cloud.dataform.v1beta1.InvocationConfig.fromObject(object.invocationConfig); + } + if (object.cronSchedule != null) + message.cronSchedule = String(object.cronSchedule); + if (object.timeZone != null) + message.timeZone = String(object.timeZone); + if (object.recentScheduledExecutionRecords) { + if (!Array.isArray(object.recentScheduledExecutionRecords)) + throw TypeError(".google.cloud.dataform.v1beta1.WorkflowConfig.recentScheduledExecutionRecords: array expected"); + message.recentScheduledExecutionRecords = []; + for (var i = 0; i < object.recentScheduledExecutionRecords.length; ++i) { + if (typeof object.recentScheduledExecutionRecords[i] !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.WorkflowConfig.recentScheduledExecutionRecords: object expected"); + message.recentScheduledExecutionRecords[i] = $root.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord.fromObject(object.recentScheduledExecutionRecords[i]); + } + } + return message; + }; - return Relation; - })(); + /** + * Creates a plain object from a WorkflowConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dataform.v1beta1.WorkflowConfig + * @static + * @param {google.cloud.dataform.v1beta1.WorkflowConfig} message WorkflowConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + WorkflowConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.recentScheduledExecutionRecords = []; + if (options.defaults) { + object.name = ""; + object.releaseConfig = ""; + object.invocationConfig = null; + object.cronSchedule = ""; + object.timeZone = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.releaseConfig != null && message.hasOwnProperty("releaseConfig")) + object.releaseConfig = message.releaseConfig; + if (message.invocationConfig != null && message.hasOwnProperty("invocationConfig")) + object.invocationConfig = $root.google.cloud.dataform.v1beta1.InvocationConfig.toObject(message.invocationConfig, options); + if (message.cronSchedule != null && message.hasOwnProperty("cronSchedule")) + object.cronSchedule = message.cronSchedule; + if (message.recentScheduledExecutionRecords && message.recentScheduledExecutionRecords.length) { + object.recentScheduledExecutionRecords = []; + for (var j = 0; j < message.recentScheduledExecutionRecords.length; ++j) + object.recentScheduledExecutionRecords[j] = $root.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord.toObject(message.recentScheduledExecutionRecords[j], options); + } + if (message.timeZone != null && message.hasOwnProperty("timeZone")) + object.timeZone = message.timeZone; + return object; + }; - CompilationResultAction.Operations = (function() { + /** + * Converts this WorkflowConfig to JSON. + * @function toJSON + * @memberof google.cloud.dataform.v1beta1.WorkflowConfig + * @instance + * @returns {Object.} JSON object + */ + WorkflowConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for WorkflowConfig + * @function getTypeUrl + * @memberof google.cloud.dataform.v1beta1.WorkflowConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + WorkflowConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.WorkflowConfig"; + }; + + WorkflowConfig.ScheduledExecutionRecord = (function() { /** - * Properties of an Operations. - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction - * @interface IOperations - * @property {Array.|null} [dependencyTargets] Operations dependencyTargets - * @property {boolean|null} [disabled] Operations disabled - * @property {Array.|null} [tags] Operations tags - * @property {google.cloud.dataform.v1beta1.IRelationDescriptor|null} [relationDescriptor] Operations relationDescriptor - * @property {Array.|null} [queries] Operations queries - * @property {boolean|null} [hasOutput] Operations hasOutput + * Properties of a ScheduledExecutionRecord. + * @memberof google.cloud.dataform.v1beta1.WorkflowConfig + * @interface IScheduledExecutionRecord + * @property {google.protobuf.ITimestamp|null} [executionTime] ScheduledExecutionRecord executionTime + * @property {string|null} [workflowInvocation] ScheduledExecutionRecord workflowInvocation + * @property {google.rpc.IStatus|null} [errorStatus] ScheduledExecutionRecord errorStatus */ /** - * Constructs a new Operations. - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction - * @classdesc Represents an Operations. - * @implements IOperations + * Constructs a new ScheduledExecutionRecord. + * @memberof google.cloud.dataform.v1beta1.WorkflowConfig + * @classdesc Represents a ScheduledExecutionRecord. + * @implements IScheduledExecutionRecord * @constructor - * @param {google.cloud.dataform.v1beta1.CompilationResultAction.IOperations=} [properties] Properties to set + * @param {google.cloud.dataform.v1beta1.WorkflowConfig.IScheduledExecutionRecord=} [properties] Properties to set */ - function Operations(properties) { - this.dependencyTargets = []; - this.tags = []; - this.queries = []; + function ScheduledExecutionRecord(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -36927,154 +45506,117 @@ } /** - * Operations dependencyTargets. - * @member {Array.} dependencyTargets - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Operations - * @instance - */ - Operations.prototype.dependencyTargets = $util.emptyArray; - - /** - * Operations disabled. - * @member {boolean} disabled - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Operations + * ScheduledExecutionRecord executionTime. + * @member {google.protobuf.ITimestamp|null|undefined} executionTime + * @memberof google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord * @instance */ - Operations.prototype.disabled = false; + ScheduledExecutionRecord.prototype.executionTime = null; /** - * Operations tags. - * @member {Array.} tags - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Operations + * ScheduledExecutionRecord workflowInvocation. + * @member {string|null|undefined} workflowInvocation + * @memberof google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord * @instance */ - Operations.prototype.tags = $util.emptyArray; + ScheduledExecutionRecord.prototype.workflowInvocation = null; /** - * Operations relationDescriptor. - * @member {google.cloud.dataform.v1beta1.IRelationDescriptor|null|undefined} relationDescriptor - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Operations + * ScheduledExecutionRecord errorStatus. + * @member {google.rpc.IStatus|null|undefined} errorStatus + * @memberof google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord * @instance */ - Operations.prototype.relationDescriptor = null; + ScheduledExecutionRecord.prototype.errorStatus = null; - /** - * Operations queries. - * @member {Array.} queries - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Operations - * @instance - */ - Operations.prototype.queries = $util.emptyArray; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * Operations hasOutput. - * @member {boolean} hasOutput - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Operations + * ScheduledExecutionRecord result. + * @member {"workflowInvocation"|"errorStatus"|undefined} result + * @memberof google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord * @instance */ - Operations.prototype.hasOutput = false; + Object.defineProperty(ScheduledExecutionRecord.prototype, "result", { + get: $util.oneOfGetter($oneOfFields = ["workflowInvocation", "errorStatus"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new Operations instance using the specified properties. + * Creates a new ScheduledExecutionRecord instance using the specified properties. * @function create - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Operations + * @memberof google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord * @static - * @param {google.cloud.dataform.v1beta1.CompilationResultAction.IOperations=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.CompilationResultAction.Operations} Operations instance + * @param {google.cloud.dataform.v1beta1.WorkflowConfig.IScheduledExecutionRecord=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord} ScheduledExecutionRecord instance */ - Operations.create = function create(properties) { - return new Operations(properties); + ScheduledExecutionRecord.create = function create(properties) { + return new ScheduledExecutionRecord(properties); }; /** - * Encodes the specified Operations message. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResultAction.Operations.verify|verify} messages. + * Encodes the specified ScheduledExecutionRecord message. Does not implicitly {@link google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord.verify|verify} messages. * @function encode - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Operations + * @memberof google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord * @static - * @param {google.cloud.dataform.v1beta1.CompilationResultAction.IOperations} message Operations message or plain object to encode + * @param {google.cloud.dataform.v1beta1.WorkflowConfig.IScheduledExecutionRecord} message ScheduledExecutionRecord message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Operations.encode = function encode(message, writer) { + ScheduledExecutionRecord.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.dependencyTargets != null && message.dependencyTargets.length) - for (var i = 0; i < message.dependencyTargets.length; ++i) - $root.google.cloud.dataform.v1beta1.Target.encode(message.dependencyTargets[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.disabled); - if (message.tags != null && message.tags.length) - for (var i = 0; i < message.tags.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.tags[i]); - if (message.queries != null && message.queries.length) - for (var i = 0; i < message.queries.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.queries[i]); - if (message.hasOutput != null && Object.hasOwnProperty.call(message, "hasOutput")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.hasOutput); - if (message.relationDescriptor != null && Object.hasOwnProperty.call(message, "relationDescriptor")) - $root.google.cloud.dataform.v1beta1.RelationDescriptor.encode(message.relationDescriptor, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.executionTime != null && Object.hasOwnProperty.call(message, "executionTime")) + $root.google.protobuf.Timestamp.encode(message.executionTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.workflowInvocation != null && Object.hasOwnProperty.call(message, "workflowInvocation")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.workflowInvocation); + if (message.errorStatus != null && Object.hasOwnProperty.call(message, "errorStatus")) + $root.google.rpc.Status.encode(message.errorStatus, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified Operations message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResultAction.Operations.verify|verify} messages. + * Encodes the specified ScheduledExecutionRecord message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Operations + * @memberof google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord * @static - * @param {google.cloud.dataform.v1beta1.CompilationResultAction.IOperations} message Operations message or plain object to encode + * @param {google.cloud.dataform.v1beta1.WorkflowConfig.IScheduledExecutionRecord} message ScheduledExecutionRecord message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Operations.encodeDelimited = function encodeDelimited(message, writer) { + ScheduledExecutionRecord.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Operations message from the specified reader or buffer. + * Decodes a ScheduledExecutionRecord message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Operations + * @memberof google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.CompilationResultAction.Operations} Operations + * @returns {google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord} ScheduledExecutionRecord * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Operations.decode = function decode(reader, length) { + ScheduledExecutionRecord.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.CompilationResultAction.Operations(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.dependencyTargets && message.dependencyTargets.length)) - message.dependencyTargets = []; - message.dependencyTargets.push($root.google.cloud.dataform.v1beta1.Target.decode(reader, reader.uint32())); + message.executionTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } case 2: { - message.disabled = reader.bool(); + message.workflowInvocation = reader.string(); break; } case 3: { - if (!(message.tags && message.tags.length)) - message.tags = []; - message.tags.push(reader.string()); - break; - } - case 6: { - message.relationDescriptor = $root.google.cloud.dataform.v1beta1.RelationDescriptor.decode(reader, reader.uint32()); - break; - } - case 4: { - if (!(message.queries && message.queries.length)) - message.queries = []; - message.queries.push(reader.string()); - break; - } - case 5: { - message.hasOutput = reader.bool(); + message.errorStatus = $root.google.rpc.Status.decode(reader, reader.uint32()); break; } default: @@ -37086,793 +45628,1264 @@ }; /** - * Decodes an Operations message from the specified reader or buffer, length delimited. + * Decodes a ScheduledExecutionRecord message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Operations + * @memberof google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.CompilationResultAction.Operations} Operations + * @returns {google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord} ScheduledExecutionRecord * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Operations.decodeDelimited = function decodeDelimited(reader) { + ScheduledExecutionRecord.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Operations message. + * Verifies a ScheduledExecutionRecord message. * @function verify - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Operations + * @memberof google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Operations.verify = function verify(message) { + ScheduledExecutionRecord.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.dependencyTargets != null && message.hasOwnProperty("dependencyTargets")) { - if (!Array.isArray(message.dependencyTargets)) - return "dependencyTargets: array expected"; - for (var i = 0; i < message.dependencyTargets.length; ++i) { - var error = $root.google.cloud.dataform.v1beta1.Target.verify(message.dependencyTargets[i]); - if (error) - return "dependencyTargets." + error; - } - } - if (message.disabled != null && message.hasOwnProperty("disabled")) - if (typeof message.disabled !== "boolean") - return "disabled: boolean expected"; - if (message.tags != null && message.hasOwnProperty("tags")) { - if (!Array.isArray(message.tags)) - return "tags: array expected"; - for (var i = 0; i < message.tags.length; ++i) - if (!$util.isString(message.tags[i])) - return "tags: string[] expected"; - } - if (message.relationDescriptor != null && message.hasOwnProperty("relationDescriptor")) { - var error = $root.google.cloud.dataform.v1beta1.RelationDescriptor.verify(message.relationDescriptor); + var properties = {}; + if (message.executionTime != null && message.hasOwnProperty("executionTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.executionTime); if (error) - return "relationDescriptor." + error; + return "executionTime." + error; } - if (message.queries != null && message.hasOwnProperty("queries")) { - if (!Array.isArray(message.queries)) - return "queries: array expected"; - for (var i = 0; i < message.queries.length; ++i) - if (!$util.isString(message.queries[i])) - return "queries: string[] expected"; + if (message.workflowInvocation != null && message.hasOwnProperty("workflowInvocation")) { + properties.result = 1; + if (!$util.isString(message.workflowInvocation)) + return "workflowInvocation: string expected"; } - if (message.hasOutput != null && message.hasOwnProperty("hasOutput")) - if (typeof message.hasOutput !== "boolean") - return "hasOutput: boolean expected"; - return null; - }; - - /** - * Creates an Operations message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Operations - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.CompilationResultAction.Operations} Operations - */ - Operations.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.CompilationResultAction.Operations) - return object; - var message = new $root.google.cloud.dataform.v1beta1.CompilationResultAction.Operations(); - if (object.dependencyTargets) { - if (!Array.isArray(object.dependencyTargets)) - throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.Operations.dependencyTargets: array expected"); - message.dependencyTargets = []; - for (var i = 0; i < object.dependencyTargets.length; ++i) { - if (typeof object.dependencyTargets[i] !== "object") - throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.Operations.dependencyTargets: object expected"); - message.dependencyTargets[i] = $root.google.cloud.dataform.v1beta1.Target.fromObject(object.dependencyTargets[i]); + if (message.errorStatus != null && message.hasOwnProperty("errorStatus")) { + if (properties.result === 1) + return "result: multiple values"; + properties.result = 1; + { + var error = $root.google.rpc.Status.verify(message.errorStatus); + if (error) + return "errorStatus." + error; } } - if (object.disabled != null) - message.disabled = Boolean(object.disabled); - if (object.tags) { - if (!Array.isArray(object.tags)) - throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.Operations.tags: array expected"); - message.tags = []; - for (var i = 0; i < object.tags.length; ++i) - message.tags[i] = String(object.tags[i]); - } - if (object.relationDescriptor != null) { - if (typeof object.relationDescriptor !== "object") - throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.Operations.relationDescriptor: object expected"); - message.relationDescriptor = $root.google.cloud.dataform.v1beta1.RelationDescriptor.fromObject(object.relationDescriptor); + return null; + }; + + /** + * Creates a ScheduledExecutionRecord message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord} ScheduledExecutionRecord + */ + ScheduledExecutionRecord.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord) + return object; + var message = new $root.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord(); + if (object.executionTime != null) { + if (typeof object.executionTime !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord.executionTime: object expected"); + message.executionTime = $root.google.protobuf.Timestamp.fromObject(object.executionTime); } - if (object.queries) { - if (!Array.isArray(object.queries)) - throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.Operations.queries: array expected"); - message.queries = []; - for (var i = 0; i < object.queries.length; ++i) - message.queries[i] = String(object.queries[i]); + if (object.workflowInvocation != null) + message.workflowInvocation = String(object.workflowInvocation); + if (object.errorStatus != null) { + if (typeof object.errorStatus !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord.errorStatus: object expected"); + message.errorStatus = $root.google.rpc.Status.fromObject(object.errorStatus); } - if (object.hasOutput != null) - message.hasOutput = Boolean(object.hasOutput); return message; }; /** - * Creates a plain object from an Operations message. Also converts values to other types if specified. + * Creates a plain object from a ScheduledExecutionRecord message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Operations + * @memberof google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord * @static - * @param {google.cloud.dataform.v1beta1.CompilationResultAction.Operations} message Operations + * @param {google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord} message ScheduledExecutionRecord * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Operations.toObject = function toObject(message, options) { + ScheduledExecutionRecord.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.dependencyTargets = []; - object.tags = []; - object.queries = []; - } - if (options.defaults) { - object.disabled = false; - object.hasOutput = false; - object.relationDescriptor = null; - } - if (message.dependencyTargets && message.dependencyTargets.length) { - object.dependencyTargets = []; - for (var j = 0; j < message.dependencyTargets.length; ++j) - object.dependencyTargets[j] = $root.google.cloud.dataform.v1beta1.Target.toObject(message.dependencyTargets[j], options); - } - if (message.disabled != null && message.hasOwnProperty("disabled")) - object.disabled = message.disabled; - if (message.tags && message.tags.length) { - object.tags = []; - for (var j = 0; j < message.tags.length; ++j) - object.tags[j] = message.tags[j]; + if (options.defaults) + object.executionTime = null; + if (message.executionTime != null && message.hasOwnProperty("executionTime")) + object.executionTime = $root.google.protobuf.Timestamp.toObject(message.executionTime, options); + if (message.workflowInvocation != null && message.hasOwnProperty("workflowInvocation")) { + object.workflowInvocation = message.workflowInvocation; + if (options.oneofs) + object.result = "workflowInvocation"; } - if (message.queries && message.queries.length) { - object.queries = []; - for (var j = 0; j < message.queries.length; ++j) - object.queries[j] = message.queries[j]; + if (message.errorStatus != null && message.hasOwnProperty("errorStatus")) { + object.errorStatus = $root.google.rpc.Status.toObject(message.errorStatus, options); + if (options.oneofs) + object.result = "errorStatus"; } - if (message.hasOutput != null && message.hasOwnProperty("hasOutput")) - object.hasOutput = message.hasOutput; - if (message.relationDescriptor != null && message.hasOwnProperty("relationDescriptor")) - object.relationDescriptor = $root.google.cloud.dataform.v1beta1.RelationDescriptor.toObject(message.relationDescriptor, options); return object; }; /** - * Converts this Operations to JSON. + * Converts this ScheduledExecutionRecord to JSON. * @function toJSON - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Operations + * @memberof google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord * @instance * @returns {Object.} JSON object */ - Operations.prototype.toJSON = function toJSON() { + ScheduledExecutionRecord.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Operations + * Gets the default type url for ScheduledExecutionRecord * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Operations + * @memberof google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Operations.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ScheduledExecutionRecord.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.CompilationResultAction.Operations"; + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord"; }; - return Operations; + return ScheduledExecutionRecord; })(); - CompilationResultAction.Assertion = (function() { + return WorkflowConfig; + })(); - /** - * Properties of an Assertion. - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction - * @interface IAssertion - * @property {Array.|null} [dependencyTargets] Assertion dependencyTargets - * @property {google.cloud.dataform.v1beta1.ITarget|null} [parentAction] Assertion parentAction - * @property {boolean|null} [disabled] Assertion disabled - * @property {Array.|null} [tags] Assertion tags - * @property {string|null} [selectQuery] Assertion selectQuery - * @property {google.cloud.dataform.v1beta1.IRelationDescriptor|null} [relationDescriptor] Assertion relationDescriptor - */ + v1beta1.InvocationConfig = (function() { - /** - * Constructs a new Assertion. - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction - * @classdesc Represents an Assertion. - * @implements IAssertion - * @constructor - * @param {google.cloud.dataform.v1beta1.CompilationResultAction.IAssertion=} [properties] Properties to set - */ - function Assertion(properties) { - this.dependencyTargets = []; - this.tags = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + /** + * Properties of an InvocationConfig. + * @memberof google.cloud.dataform.v1beta1 + * @interface IInvocationConfig + * @property {Array.|null} [includedTargets] InvocationConfig includedTargets + * @property {Array.|null} [includedTags] InvocationConfig includedTags + * @property {boolean|null} [transitiveDependenciesIncluded] InvocationConfig transitiveDependenciesIncluded + * @property {boolean|null} [transitiveDependentsIncluded] InvocationConfig transitiveDependentsIncluded + * @property {boolean|null} [fullyRefreshIncrementalTablesEnabled] InvocationConfig fullyRefreshIncrementalTablesEnabled + * @property {string|null} [serviceAccount] InvocationConfig serviceAccount + */ + + /** + * Constructs a new InvocationConfig. + * @memberof google.cloud.dataform.v1beta1 + * @classdesc Represents an InvocationConfig. + * @implements IInvocationConfig + * @constructor + * @param {google.cloud.dataform.v1beta1.IInvocationConfig=} [properties] Properties to set + */ + function InvocationConfig(properties) { + this.includedTargets = []; + this.includedTags = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * InvocationConfig includedTargets. + * @member {Array.} includedTargets + * @memberof google.cloud.dataform.v1beta1.InvocationConfig + * @instance + */ + InvocationConfig.prototype.includedTargets = $util.emptyArray; + + /** + * InvocationConfig includedTags. + * @member {Array.} includedTags + * @memberof google.cloud.dataform.v1beta1.InvocationConfig + * @instance + */ + InvocationConfig.prototype.includedTags = $util.emptyArray; + + /** + * InvocationConfig transitiveDependenciesIncluded. + * @member {boolean} transitiveDependenciesIncluded + * @memberof google.cloud.dataform.v1beta1.InvocationConfig + * @instance + */ + InvocationConfig.prototype.transitiveDependenciesIncluded = false; + + /** + * InvocationConfig transitiveDependentsIncluded. + * @member {boolean} transitiveDependentsIncluded + * @memberof google.cloud.dataform.v1beta1.InvocationConfig + * @instance + */ + InvocationConfig.prototype.transitiveDependentsIncluded = false; + + /** + * InvocationConfig fullyRefreshIncrementalTablesEnabled. + * @member {boolean} fullyRefreshIncrementalTablesEnabled + * @memberof google.cloud.dataform.v1beta1.InvocationConfig + * @instance + */ + InvocationConfig.prototype.fullyRefreshIncrementalTablesEnabled = false; + + /** + * InvocationConfig serviceAccount. + * @member {string} serviceAccount + * @memberof google.cloud.dataform.v1beta1.InvocationConfig + * @instance + */ + InvocationConfig.prototype.serviceAccount = ""; + + /** + * Creates a new InvocationConfig instance using the specified properties. + * @function create + * @memberof google.cloud.dataform.v1beta1.InvocationConfig + * @static + * @param {google.cloud.dataform.v1beta1.IInvocationConfig=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.InvocationConfig} InvocationConfig instance + */ + InvocationConfig.create = function create(properties) { + return new InvocationConfig(properties); + }; + + /** + * Encodes the specified InvocationConfig message. Does not implicitly {@link google.cloud.dataform.v1beta1.InvocationConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.dataform.v1beta1.InvocationConfig + * @static + * @param {google.cloud.dataform.v1beta1.IInvocationConfig} message InvocationConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InvocationConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.includedTargets != null && message.includedTargets.length) + for (var i = 0; i < message.includedTargets.length; ++i) + $root.google.cloud.dataform.v1beta1.Target.encode(message.includedTargets[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.includedTags != null && message.includedTags.length) + for (var i = 0; i < message.includedTags.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.includedTags[i]); + if (message.transitiveDependenciesIncluded != null && Object.hasOwnProperty.call(message, "transitiveDependenciesIncluded")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.transitiveDependenciesIncluded); + if (message.transitiveDependentsIncluded != null && Object.hasOwnProperty.call(message, "transitiveDependentsIncluded")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.transitiveDependentsIncluded); + if (message.fullyRefreshIncrementalTablesEnabled != null && Object.hasOwnProperty.call(message, "fullyRefreshIncrementalTablesEnabled")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.fullyRefreshIncrementalTablesEnabled); + if (message.serviceAccount != null && Object.hasOwnProperty.call(message, "serviceAccount")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.serviceAccount); + return writer; + }; + + /** + * Encodes the specified InvocationConfig message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.InvocationConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dataform.v1beta1.InvocationConfig + * @static + * @param {google.cloud.dataform.v1beta1.IInvocationConfig} message InvocationConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InvocationConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InvocationConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dataform.v1beta1.InvocationConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dataform.v1beta1.InvocationConfig} InvocationConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InvocationConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.InvocationConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.includedTargets && message.includedTargets.length)) + message.includedTargets = []; + message.includedTargets.push($root.google.cloud.dataform.v1beta1.Target.decode(reader, reader.uint32())); + break; + } + case 2: { + if (!(message.includedTags && message.includedTags.length)) + message.includedTags = []; + message.includedTags.push(reader.string()); + break; + } + case 3: { + message.transitiveDependenciesIncluded = reader.bool(); + break; + } + case 4: { + message.transitiveDependentsIncluded = reader.bool(); + break; + } + case 5: { + message.fullyRefreshIncrementalTablesEnabled = reader.bool(); + break; + } + case 6: { + message.serviceAccount = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } } + return message; + }; - /** - * Assertion dependencyTargets. - * @member {Array.} dependencyTargets - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Assertion - * @instance - */ - Assertion.prototype.dependencyTargets = $util.emptyArray; + /** + * Decodes an InvocationConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dataform.v1beta1.InvocationConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dataform.v1beta1.InvocationConfig} InvocationConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InvocationConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Assertion parentAction. - * @member {google.cloud.dataform.v1beta1.ITarget|null|undefined} parentAction - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Assertion - * @instance - */ - Assertion.prototype.parentAction = null; + /** + * Verifies an InvocationConfig message. + * @function verify + * @memberof google.cloud.dataform.v1beta1.InvocationConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InvocationConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.includedTargets != null && message.hasOwnProperty("includedTargets")) { + if (!Array.isArray(message.includedTargets)) + return "includedTargets: array expected"; + for (var i = 0; i < message.includedTargets.length; ++i) { + var error = $root.google.cloud.dataform.v1beta1.Target.verify(message.includedTargets[i]); + if (error) + return "includedTargets." + error; + } + } + if (message.includedTags != null && message.hasOwnProperty("includedTags")) { + if (!Array.isArray(message.includedTags)) + return "includedTags: array expected"; + for (var i = 0; i < message.includedTags.length; ++i) + if (!$util.isString(message.includedTags[i])) + return "includedTags: string[] expected"; + } + if (message.transitiveDependenciesIncluded != null && message.hasOwnProperty("transitiveDependenciesIncluded")) + if (typeof message.transitiveDependenciesIncluded !== "boolean") + return "transitiveDependenciesIncluded: boolean expected"; + if (message.transitiveDependentsIncluded != null && message.hasOwnProperty("transitiveDependentsIncluded")) + if (typeof message.transitiveDependentsIncluded !== "boolean") + return "transitiveDependentsIncluded: boolean expected"; + if (message.fullyRefreshIncrementalTablesEnabled != null && message.hasOwnProperty("fullyRefreshIncrementalTablesEnabled")) + if (typeof message.fullyRefreshIncrementalTablesEnabled !== "boolean") + return "fullyRefreshIncrementalTablesEnabled: boolean expected"; + if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) + if (!$util.isString(message.serviceAccount)) + return "serviceAccount: string expected"; + return null; + }; - /** - * Assertion disabled. - * @member {boolean} disabled - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Assertion - * @instance - */ - Assertion.prototype.disabled = false; + /** + * Creates an InvocationConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dataform.v1beta1.InvocationConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dataform.v1beta1.InvocationConfig} InvocationConfig + */ + InvocationConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.InvocationConfig) + return object; + var message = new $root.google.cloud.dataform.v1beta1.InvocationConfig(); + if (object.includedTargets) { + if (!Array.isArray(object.includedTargets)) + throw TypeError(".google.cloud.dataform.v1beta1.InvocationConfig.includedTargets: array expected"); + message.includedTargets = []; + for (var i = 0; i < object.includedTargets.length; ++i) { + if (typeof object.includedTargets[i] !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.InvocationConfig.includedTargets: object expected"); + message.includedTargets[i] = $root.google.cloud.dataform.v1beta1.Target.fromObject(object.includedTargets[i]); + } + } + if (object.includedTags) { + if (!Array.isArray(object.includedTags)) + throw TypeError(".google.cloud.dataform.v1beta1.InvocationConfig.includedTags: array expected"); + message.includedTags = []; + for (var i = 0; i < object.includedTags.length; ++i) + message.includedTags[i] = String(object.includedTags[i]); + } + if (object.transitiveDependenciesIncluded != null) + message.transitiveDependenciesIncluded = Boolean(object.transitiveDependenciesIncluded); + if (object.transitiveDependentsIncluded != null) + message.transitiveDependentsIncluded = Boolean(object.transitiveDependentsIncluded); + if (object.fullyRefreshIncrementalTablesEnabled != null) + message.fullyRefreshIncrementalTablesEnabled = Boolean(object.fullyRefreshIncrementalTablesEnabled); + if (object.serviceAccount != null) + message.serviceAccount = String(object.serviceAccount); + return message; + }; - /** - * Assertion tags. - * @member {Array.} tags - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Assertion - * @instance - */ - Assertion.prototype.tags = $util.emptyArray; + /** + * Creates a plain object from an InvocationConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dataform.v1beta1.InvocationConfig + * @static + * @param {google.cloud.dataform.v1beta1.InvocationConfig} message InvocationConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InvocationConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.includedTargets = []; + object.includedTags = []; + } + if (options.defaults) { + object.transitiveDependenciesIncluded = false; + object.transitiveDependentsIncluded = false; + object.fullyRefreshIncrementalTablesEnabled = false; + object.serviceAccount = ""; + } + if (message.includedTargets && message.includedTargets.length) { + object.includedTargets = []; + for (var j = 0; j < message.includedTargets.length; ++j) + object.includedTargets[j] = $root.google.cloud.dataform.v1beta1.Target.toObject(message.includedTargets[j], options); + } + if (message.includedTags && message.includedTags.length) { + object.includedTags = []; + for (var j = 0; j < message.includedTags.length; ++j) + object.includedTags[j] = message.includedTags[j]; + } + if (message.transitiveDependenciesIncluded != null && message.hasOwnProperty("transitiveDependenciesIncluded")) + object.transitiveDependenciesIncluded = message.transitiveDependenciesIncluded; + if (message.transitiveDependentsIncluded != null && message.hasOwnProperty("transitiveDependentsIncluded")) + object.transitiveDependentsIncluded = message.transitiveDependentsIncluded; + if (message.fullyRefreshIncrementalTablesEnabled != null && message.hasOwnProperty("fullyRefreshIncrementalTablesEnabled")) + object.fullyRefreshIncrementalTablesEnabled = message.fullyRefreshIncrementalTablesEnabled; + if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) + object.serviceAccount = message.serviceAccount; + return object; + }; - /** - * Assertion selectQuery. - * @member {string} selectQuery - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Assertion - * @instance - */ - Assertion.prototype.selectQuery = ""; + /** + * Converts this InvocationConfig to JSON. + * @function toJSON + * @memberof google.cloud.dataform.v1beta1.InvocationConfig + * @instance + * @returns {Object.} JSON object + */ + InvocationConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Assertion relationDescriptor. - * @member {google.cloud.dataform.v1beta1.IRelationDescriptor|null|undefined} relationDescriptor - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Assertion - * @instance - */ - Assertion.prototype.relationDescriptor = null; + /** + * Gets the default type url for InvocationConfig + * @function getTypeUrl + * @memberof google.cloud.dataform.v1beta1.InvocationConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InvocationConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.InvocationConfig"; + }; + + return InvocationConfig; + })(); + + v1beta1.ListWorkflowConfigsRequest = (function() { + + /** + * Properties of a ListWorkflowConfigsRequest. + * @memberof google.cloud.dataform.v1beta1 + * @interface IListWorkflowConfigsRequest + * @property {string|null} [parent] ListWorkflowConfigsRequest parent + * @property {number|null} [pageSize] ListWorkflowConfigsRequest pageSize + * @property {string|null} [pageToken] ListWorkflowConfigsRequest pageToken + */ + + /** + * Constructs a new ListWorkflowConfigsRequest. + * @memberof google.cloud.dataform.v1beta1 + * @classdesc Represents a ListWorkflowConfigsRequest. + * @implements IListWorkflowConfigsRequest + * @constructor + * @param {google.cloud.dataform.v1beta1.IListWorkflowConfigsRequest=} [properties] Properties to set + */ + function ListWorkflowConfigsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListWorkflowConfigsRequest parent. + * @member {string} parent + * @memberof google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest + * @instance + */ + ListWorkflowConfigsRequest.prototype.parent = ""; + + /** + * ListWorkflowConfigsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest + * @instance + */ + ListWorkflowConfigsRequest.prototype.pageSize = 0; + + /** + * ListWorkflowConfigsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest + * @instance + */ + ListWorkflowConfigsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListWorkflowConfigsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest + * @static + * @param {google.cloud.dataform.v1beta1.IListWorkflowConfigsRequest=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest} ListWorkflowConfigsRequest instance + */ + ListWorkflowConfigsRequest.create = function create(properties) { + return new ListWorkflowConfigsRequest(properties); + }; + + /** + * Encodes the specified ListWorkflowConfigsRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest + * @static + * @param {google.cloud.dataform.v1beta1.IListWorkflowConfigsRequest} message ListWorkflowConfigsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListWorkflowConfigsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + return writer; + }; + + /** + * Encodes the specified ListWorkflowConfigsRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest + * @static + * @param {google.cloud.dataform.v1beta1.IListWorkflowConfigsRequest} message ListWorkflowConfigsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListWorkflowConfigsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListWorkflowConfigsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest} ListWorkflowConfigsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListWorkflowConfigsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListWorkflowConfigsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest} ListWorkflowConfigsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListWorkflowConfigsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListWorkflowConfigsRequest message. + * @function verify + * @memberof google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListWorkflowConfigsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + return null; + }; + + /** + * Creates a ListWorkflowConfigsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest} ListWorkflowConfigsRequest + */ + ListWorkflowConfigsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest) + return object; + var message = new $root.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + return message; + }; + + /** + * Creates a plain object from a ListWorkflowConfigsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest + * @static + * @param {google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest} message ListWorkflowConfigsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListWorkflowConfigsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + return object; + }; + + /** + * Converts this ListWorkflowConfigsRequest to JSON. + * @function toJSON + * @memberof google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest + * @instance + * @returns {Object.} JSON object + */ + ListWorkflowConfigsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListWorkflowConfigsRequest + * @function getTypeUrl + * @memberof google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListWorkflowConfigsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest"; + }; + + return ListWorkflowConfigsRequest; + })(); + + v1beta1.ListWorkflowConfigsResponse = (function() { + + /** + * Properties of a ListWorkflowConfigsResponse. + * @memberof google.cloud.dataform.v1beta1 + * @interface IListWorkflowConfigsResponse + * @property {Array.|null} [workflowConfigs] ListWorkflowConfigsResponse workflowConfigs + * @property {string|null} [nextPageToken] ListWorkflowConfigsResponse nextPageToken + * @property {Array.|null} [unreachable] ListWorkflowConfigsResponse unreachable + */ + + /** + * Constructs a new ListWorkflowConfigsResponse. + * @memberof google.cloud.dataform.v1beta1 + * @classdesc Represents a ListWorkflowConfigsResponse. + * @implements IListWorkflowConfigsResponse + * @constructor + * @param {google.cloud.dataform.v1beta1.IListWorkflowConfigsResponse=} [properties] Properties to set + */ + function ListWorkflowConfigsResponse(properties) { + this.workflowConfigs = []; + this.unreachable = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListWorkflowConfigsResponse workflowConfigs. + * @member {Array.} workflowConfigs + * @memberof google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse + * @instance + */ + ListWorkflowConfigsResponse.prototype.workflowConfigs = $util.emptyArray; + + /** + * ListWorkflowConfigsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse + * @instance + */ + ListWorkflowConfigsResponse.prototype.nextPageToken = ""; - /** - * Creates a new Assertion instance using the specified properties. - * @function create - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Assertion - * @static - * @param {google.cloud.dataform.v1beta1.CompilationResultAction.IAssertion=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.CompilationResultAction.Assertion} Assertion instance - */ - Assertion.create = function create(properties) { - return new Assertion(properties); - }; + /** + * ListWorkflowConfigsResponse unreachable. + * @member {Array.} unreachable + * @memberof google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse + * @instance + */ + ListWorkflowConfigsResponse.prototype.unreachable = $util.emptyArray; - /** - * Encodes the specified Assertion message. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.verify|verify} messages. - * @function encode - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Assertion - * @static - * @param {google.cloud.dataform.v1beta1.CompilationResultAction.IAssertion} message Assertion message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Assertion.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.dependencyTargets != null && message.dependencyTargets.length) - for (var i = 0; i < message.dependencyTargets.length; ++i) - $root.google.cloud.dataform.v1beta1.Target.encode(message.dependencyTargets[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.disabled); - if (message.tags != null && message.tags.length) - for (var i = 0; i < message.tags.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.tags[i]); - if (message.selectQuery != null && Object.hasOwnProperty.call(message, "selectQuery")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.selectQuery); - if (message.parentAction != null && Object.hasOwnProperty.call(message, "parentAction")) - $root.google.cloud.dataform.v1beta1.Target.encode(message.parentAction, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.relationDescriptor != null && Object.hasOwnProperty.call(message, "relationDescriptor")) - $root.google.cloud.dataform.v1beta1.RelationDescriptor.encode(message.relationDescriptor, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - return writer; - }; + /** + * Creates a new ListWorkflowConfigsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse + * @static + * @param {google.cloud.dataform.v1beta1.IListWorkflowConfigsResponse=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse} ListWorkflowConfigsResponse instance + */ + ListWorkflowConfigsResponse.create = function create(properties) { + return new ListWorkflowConfigsResponse(properties); + }; - /** - * Encodes the specified Assertion message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Assertion - * @static - * @param {google.cloud.dataform.v1beta1.CompilationResultAction.IAssertion} message Assertion message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Assertion.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified ListWorkflowConfigsResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse + * @static + * @param {google.cloud.dataform.v1beta1.IListWorkflowConfigsResponse} message ListWorkflowConfigsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListWorkflowConfigsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.workflowConfigs != null && message.workflowConfigs.length) + for (var i = 0; i < message.workflowConfigs.length; ++i) + $root.google.cloud.dataform.v1beta1.WorkflowConfig.encode(message.workflowConfigs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.unreachable != null && message.unreachable.length) + for (var i = 0; i < message.unreachable.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); + return writer; + }; - /** - * Decodes an Assertion message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Assertion - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.CompilationResultAction.Assertion} Assertion - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Assertion.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.dependencyTargets && message.dependencyTargets.length)) - message.dependencyTargets = []; - message.dependencyTargets.push($root.google.cloud.dataform.v1beta1.Target.decode(reader, reader.uint32())); - break; - } - case 5: { - message.parentAction = $root.google.cloud.dataform.v1beta1.Target.decode(reader, reader.uint32()); - break; - } - case 2: { - message.disabled = reader.bool(); - break; - } - case 3: { - if (!(message.tags && message.tags.length)) - message.tags = []; - message.tags.push(reader.string()); - break; - } - case 4: { - message.selectQuery = reader.string(); - break; - } - case 6: { - message.relationDescriptor = $root.google.cloud.dataform.v1beta1.RelationDescriptor.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); + /** + * Encodes the specified ListWorkflowConfigsResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse + * @static + * @param {google.cloud.dataform.v1beta1.IListWorkflowConfigsResponse} message ListWorkflowConfigsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListWorkflowConfigsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListWorkflowConfigsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse} ListWorkflowConfigsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListWorkflowConfigsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.workflowConfigs && message.workflowConfigs.length)) + message.workflowConfigs = []; + message.workflowConfigs.push($root.google.cloud.dataform.v1beta1.WorkflowConfig.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); break; } + case 3: { + if (!(message.unreachable && message.unreachable.length)) + message.unreachable = []; + message.unreachable.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; } - return message; - }; + } + return message; + }; - /** - * Decodes an Assertion message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Assertion - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.CompilationResultAction.Assertion} Assertion - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Assertion.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a ListWorkflowConfigsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse} ListWorkflowConfigsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListWorkflowConfigsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies an Assertion message. - * @function verify - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Assertion - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Assertion.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.dependencyTargets != null && message.hasOwnProperty("dependencyTargets")) { - if (!Array.isArray(message.dependencyTargets)) - return "dependencyTargets: array expected"; - for (var i = 0; i < message.dependencyTargets.length; ++i) { - var error = $root.google.cloud.dataform.v1beta1.Target.verify(message.dependencyTargets[i]); - if (error) - return "dependencyTargets." + error; - } - } - if (message.parentAction != null && message.hasOwnProperty("parentAction")) { - var error = $root.google.cloud.dataform.v1beta1.Target.verify(message.parentAction); - if (error) - return "parentAction." + error; - } - if (message.disabled != null && message.hasOwnProperty("disabled")) - if (typeof message.disabled !== "boolean") - return "disabled: boolean expected"; - if (message.tags != null && message.hasOwnProperty("tags")) { - if (!Array.isArray(message.tags)) - return "tags: array expected"; - for (var i = 0; i < message.tags.length; ++i) - if (!$util.isString(message.tags[i])) - return "tags: string[] expected"; - } - if (message.selectQuery != null && message.hasOwnProperty("selectQuery")) - if (!$util.isString(message.selectQuery)) - return "selectQuery: string expected"; - if (message.relationDescriptor != null && message.hasOwnProperty("relationDescriptor")) { - var error = $root.google.cloud.dataform.v1beta1.RelationDescriptor.verify(message.relationDescriptor); + /** + * Verifies a ListWorkflowConfigsResponse message. + * @function verify + * @memberof google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListWorkflowConfigsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.workflowConfigs != null && message.hasOwnProperty("workflowConfigs")) { + if (!Array.isArray(message.workflowConfigs)) + return "workflowConfigs: array expected"; + for (var i = 0; i < message.workflowConfigs.length; ++i) { + var error = $root.google.cloud.dataform.v1beta1.WorkflowConfig.verify(message.workflowConfigs[i]); if (error) - return "relationDescriptor." + error; + return "workflowConfigs." + error; } - return null; - }; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + if (message.unreachable != null && message.hasOwnProperty("unreachable")) { + if (!Array.isArray(message.unreachable)) + return "unreachable: array expected"; + for (var i = 0; i < message.unreachable.length; ++i) + if (!$util.isString(message.unreachable[i])) + return "unreachable: string[] expected"; + } + return null; + }; - /** - * Creates an Assertion message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Assertion - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.CompilationResultAction.Assertion} Assertion - */ - Assertion.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion) - return object; - var message = new $root.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion(); - if (object.dependencyTargets) { - if (!Array.isArray(object.dependencyTargets)) - throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.dependencyTargets: array expected"); - message.dependencyTargets = []; - for (var i = 0; i < object.dependencyTargets.length; ++i) { - if (typeof object.dependencyTargets[i] !== "object") - throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.dependencyTargets: object expected"); - message.dependencyTargets[i] = $root.google.cloud.dataform.v1beta1.Target.fromObject(object.dependencyTargets[i]); - } - } - if (object.parentAction != null) { - if (typeof object.parentAction !== "object") - throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.parentAction: object expected"); - message.parentAction = $root.google.cloud.dataform.v1beta1.Target.fromObject(object.parentAction); - } - if (object.disabled != null) - message.disabled = Boolean(object.disabled); - if (object.tags) { - if (!Array.isArray(object.tags)) - throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.tags: array expected"); - message.tags = []; - for (var i = 0; i < object.tags.length; ++i) - message.tags[i] = String(object.tags[i]); - } - if (object.selectQuery != null) - message.selectQuery = String(object.selectQuery); - if (object.relationDescriptor != null) { - if (typeof object.relationDescriptor !== "object") - throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.relationDescriptor: object expected"); - message.relationDescriptor = $root.google.cloud.dataform.v1beta1.RelationDescriptor.fromObject(object.relationDescriptor); + /** + * Creates a ListWorkflowConfigsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse} ListWorkflowConfigsResponse + */ + ListWorkflowConfigsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse) + return object; + var message = new $root.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse(); + if (object.workflowConfigs) { + if (!Array.isArray(object.workflowConfigs)) + throw TypeError(".google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse.workflowConfigs: array expected"); + message.workflowConfigs = []; + for (var i = 0; i < object.workflowConfigs.length; ++i) { + if (typeof object.workflowConfigs[i] !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse.workflowConfigs: object expected"); + message.workflowConfigs[i] = $root.google.cloud.dataform.v1beta1.WorkflowConfig.fromObject(object.workflowConfigs[i]); } - return message; - }; + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.unreachable) { + if (!Array.isArray(object.unreachable)) + throw TypeError(".google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse.unreachable: array expected"); + message.unreachable = []; + for (var i = 0; i < object.unreachable.length; ++i) + message.unreachable[i] = String(object.unreachable[i]); + } + return message; + }; - /** - * Creates a plain object from an Assertion message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Assertion - * @static - * @param {google.cloud.dataform.v1beta1.CompilationResultAction.Assertion} message Assertion - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Assertion.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.dependencyTargets = []; - object.tags = []; - } - if (options.defaults) { - object.disabled = false; - object.selectQuery = ""; - object.parentAction = null; - object.relationDescriptor = null; - } - if (message.dependencyTargets && message.dependencyTargets.length) { - object.dependencyTargets = []; - for (var j = 0; j < message.dependencyTargets.length; ++j) - object.dependencyTargets[j] = $root.google.cloud.dataform.v1beta1.Target.toObject(message.dependencyTargets[j], options); - } - if (message.disabled != null && message.hasOwnProperty("disabled")) - object.disabled = message.disabled; - if (message.tags && message.tags.length) { - object.tags = []; - for (var j = 0; j < message.tags.length; ++j) - object.tags[j] = message.tags[j]; - } - if (message.selectQuery != null && message.hasOwnProperty("selectQuery")) - object.selectQuery = message.selectQuery; - if (message.parentAction != null && message.hasOwnProperty("parentAction")) - object.parentAction = $root.google.cloud.dataform.v1beta1.Target.toObject(message.parentAction, options); - if (message.relationDescriptor != null && message.hasOwnProperty("relationDescriptor")) - object.relationDescriptor = $root.google.cloud.dataform.v1beta1.RelationDescriptor.toObject(message.relationDescriptor, options); - return object; - }; + /** + * Creates a plain object from a ListWorkflowConfigsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse + * @static + * @param {google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse} message ListWorkflowConfigsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListWorkflowConfigsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.workflowConfigs = []; + object.unreachable = []; + } + if (options.defaults) + object.nextPageToken = ""; + if (message.workflowConfigs && message.workflowConfigs.length) { + object.workflowConfigs = []; + for (var j = 0; j < message.workflowConfigs.length; ++j) + object.workflowConfigs[j] = $root.google.cloud.dataform.v1beta1.WorkflowConfig.toObject(message.workflowConfigs[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + if (message.unreachable && message.unreachable.length) { + object.unreachable = []; + for (var j = 0; j < message.unreachable.length; ++j) + object.unreachable[j] = message.unreachable[j]; + } + return object; + }; - /** - * Converts this Assertion to JSON. - * @function toJSON - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Assertion - * @instance - * @returns {Object.} JSON object - */ - Assertion.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this ListWorkflowConfigsResponse to JSON. + * @function toJSON + * @memberof google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse + * @instance + * @returns {Object.} JSON object + */ + ListWorkflowConfigsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Gets the default type url for Assertion - * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Assertion - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Assertion.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.CompilationResultAction.Assertion"; - }; + /** + * Gets the default type url for ListWorkflowConfigsResponse + * @function getTypeUrl + * @memberof google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListWorkflowConfigsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse"; + }; - return Assertion; - })(); + return ListWorkflowConfigsResponse; + })(); - CompilationResultAction.Declaration = (function() { + v1beta1.GetWorkflowConfigRequest = (function() { - /** - * Properties of a Declaration. - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction - * @interface IDeclaration - * @property {google.cloud.dataform.v1beta1.IRelationDescriptor|null} [relationDescriptor] Declaration relationDescriptor - */ + /** + * Properties of a GetWorkflowConfigRequest. + * @memberof google.cloud.dataform.v1beta1 + * @interface IGetWorkflowConfigRequest + * @property {string|null} [name] GetWorkflowConfigRequest name + */ - /** - * Constructs a new Declaration. - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction - * @classdesc Represents a Declaration. - * @implements IDeclaration - * @constructor - * @param {google.cloud.dataform.v1beta1.CompilationResultAction.IDeclaration=} [properties] Properties to set - */ - function Declaration(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Constructs a new GetWorkflowConfigRequest. + * @memberof google.cloud.dataform.v1beta1 + * @classdesc Represents a GetWorkflowConfigRequest. + * @implements IGetWorkflowConfigRequest + * @constructor + * @param {google.cloud.dataform.v1beta1.IGetWorkflowConfigRequest=} [properties] Properties to set + */ + function GetWorkflowConfigRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Declaration relationDescriptor. - * @member {google.cloud.dataform.v1beta1.IRelationDescriptor|null|undefined} relationDescriptor - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Declaration - * @instance - */ - Declaration.prototype.relationDescriptor = null; + /** + * GetWorkflowConfigRequest name. + * @member {string} name + * @memberof google.cloud.dataform.v1beta1.GetWorkflowConfigRequest + * @instance + */ + GetWorkflowConfigRequest.prototype.name = ""; - /** - * Creates a new Declaration instance using the specified properties. - * @function create - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Declaration - * @static - * @param {google.cloud.dataform.v1beta1.CompilationResultAction.IDeclaration=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.CompilationResultAction.Declaration} Declaration instance - */ - Declaration.create = function create(properties) { - return new Declaration(properties); - }; + /** + * Creates a new GetWorkflowConfigRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dataform.v1beta1.GetWorkflowConfigRequest + * @static + * @param {google.cloud.dataform.v1beta1.IGetWorkflowConfigRequest=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.GetWorkflowConfigRequest} GetWorkflowConfigRequest instance + */ + GetWorkflowConfigRequest.create = function create(properties) { + return new GetWorkflowConfigRequest(properties); + }; - /** - * Encodes the specified Declaration message. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResultAction.Declaration.verify|verify} messages. - * @function encode - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Declaration - * @static - * @param {google.cloud.dataform.v1beta1.CompilationResultAction.IDeclaration} message Declaration message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Declaration.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.relationDescriptor != null && Object.hasOwnProperty.call(message, "relationDescriptor")) - $root.google.cloud.dataform.v1beta1.RelationDescriptor.encode(message.relationDescriptor, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified GetWorkflowConfigRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.GetWorkflowConfigRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dataform.v1beta1.GetWorkflowConfigRequest + * @static + * @param {google.cloud.dataform.v1beta1.IGetWorkflowConfigRequest} message GetWorkflowConfigRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetWorkflowConfigRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; - /** - * Encodes the specified Declaration message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CompilationResultAction.Declaration.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Declaration - * @static - * @param {google.cloud.dataform.v1beta1.CompilationResultAction.IDeclaration} message Declaration message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Declaration.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified GetWorkflowConfigRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.GetWorkflowConfigRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dataform.v1beta1.GetWorkflowConfigRequest + * @static + * @param {google.cloud.dataform.v1beta1.IGetWorkflowConfigRequest} message GetWorkflowConfigRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetWorkflowConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a Declaration message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Declaration - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.CompilationResultAction.Declaration} Declaration - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Declaration.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.relationDescriptor = $root.google.cloud.dataform.v1beta1.RelationDescriptor.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); + /** + * Decodes a GetWorkflowConfigRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dataform.v1beta1.GetWorkflowConfigRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dataform.v1beta1.GetWorkflowConfigRequest} GetWorkflowConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetWorkflowConfigRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a Declaration message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Declaration - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.CompilationResultAction.Declaration} Declaration - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Declaration.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a Declaration message. - * @function verify - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Declaration - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Declaration.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.relationDescriptor != null && message.hasOwnProperty("relationDescriptor")) { - var error = $root.google.cloud.dataform.v1beta1.RelationDescriptor.verify(message.relationDescriptor); - if (error) - return "relationDescriptor." + error; - } - return null; - }; + /** + * Decodes a GetWorkflowConfigRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dataform.v1beta1.GetWorkflowConfigRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dataform.v1beta1.GetWorkflowConfigRequest} GetWorkflowConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetWorkflowConfigRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a Declaration message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Declaration - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.CompilationResultAction.Declaration} Declaration - */ - Declaration.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration) - return object; - var message = new $root.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration(); - if (object.relationDescriptor != null) { - if (typeof object.relationDescriptor !== "object") - throw TypeError(".google.cloud.dataform.v1beta1.CompilationResultAction.Declaration.relationDescriptor: object expected"); - message.relationDescriptor = $root.google.cloud.dataform.v1beta1.RelationDescriptor.fromObject(object.relationDescriptor); - } - return message; - }; + /** + * Verifies a GetWorkflowConfigRequest message. + * @function verify + * @memberof google.cloud.dataform.v1beta1.GetWorkflowConfigRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetWorkflowConfigRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; - /** - * Creates a plain object from a Declaration message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Declaration - * @static - * @param {google.cloud.dataform.v1beta1.CompilationResultAction.Declaration} message Declaration - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Declaration.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.relationDescriptor = null; - if (message.relationDescriptor != null && message.hasOwnProperty("relationDescriptor")) - object.relationDescriptor = $root.google.cloud.dataform.v1beta1.RelationDescriptor.toObject(message.relationDescriptor, options); + /** + * Creates a GetWorkflowConfigRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dataform.v1beta1.GetWorkflowConfigRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dataform.v1beta1.GetWorkflowConfigRequest} GetWorkflowConfigRequest + */ + GetWorkflowConfigRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest) return object; - }; + var message = new $root.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; - /** - * Converts this Declaration to JSON. - * @function toJSON - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Declaration - * @instance - * @returns {Object.} JSON object - */ - Declaration.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a GetWorkflowConfigRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dataform.v1beta1.GetWorkflowConfigRequest + * @static + * @param {google.cloud.dataform.v1beta1.GetWorkflowConfigRequest} message GetWorkflowConfigRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetWorkflowConfigRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; - /** - * Gets the default type url for Declaration - * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.CompilationResultAction.Declaration - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Declaration.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.CompilationResultAction.Declaration"; - }; + /** + * Converts this GetWorkflowConfigRequest to JSON. + * @function toJSON + * @memberof google.cloud.dataform.v1beta1.GetWorkflowConfigRequest + * @instance + * @returns {Object.} JSON object + */ + GetWorkflowConfigRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return Declaration; - })(); + /** + * Gets the default type url for GetWorkflowConfigRequest + * @function getTypeUrl + * @memberof google.cloud.dataform.v1beta1.GetWorkflowConfigRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetWorkflowConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.GetWorkflowConfigRequest"; + }; - return CompilationResultAction; + return GetWorkflowConfigRequest; })(); - v1beta1.QueryCompilationResultActionsRequest = (function() { + v1beta1.CreateWorkflowConfigRequest = (function() { /** - * Properties of a QueryCompilationResultActionsRequest. + * Properties of a CreateWorkflowConfigRequest. * @memberof google.cloud.dataform.v1beta1 - * @interface IQueryCompilationResultActionsRequest - * @property {string|null} [name] QueryCompilationResultActionsRequest name - * @property {number|null} [pageSize] QueryCompilationResultActionsRequest pageSize - * @property {string|null} [pageToken] QueryCompilationResultActionsRequest pageToken - * @property {string|null} [filter] QueryCompilationResultActionsRequest filter + * @interface ICreateWorkflowConfigRequest + * @property {string|null} [parent] CreateWorkflowConfigRequest parent + * @property {google.cloud.dataform.v1beta1.IWorkflowConfig|null} [workflowConfig] CreateWorkflowConfigRequest workflowConfig + * @property {string|null} [workflowConfigId] CreateWorkflowConfigRequest workflowConfigId */ /** - * Constructs a new QueryCompilationResultActionsRequest. + * Constructs a new CreateWorkflowConfigRequest. * @memberof google.cloud.dataform.v1beta1 - * @classdesc Represents a QueryCompilationResultActionsRequest. - * @implements IQueryCompilationResultActionsRequest + * @classdesc Represents a CreateWorkflowConfigRequest. + * @implements ICreateWorkflowConfigRequest * @constructor - * @param {google.cloud.dataform.v1beta1.IQueryCompilationResultActionsRequest=} [properties] Properties to set + * @param {google.cloud.dataform.v1beta1.ICreateWorkflowConfigRequest=} [properties] Properties to set */ - function QueryCompilationResultActionsRequest(properties) { + function CreateWorkflowConfigRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -37880,117 +46893,103 @@ } /** - * QueryCompilationResultActionsRequest name. - * @member {string} name - * @memberof google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest - * @instance - */ - QueryCompilationResultActionsRequest.prototype.name = ""; - - /** - * QueryCompilationResultActionsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest + * CreateWorkflowConfigRequest parent. + * @member {string} parent + * @memberof google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest * @instance */ - QueryCompilationResultActionsRequest.prototype.pageSize = 0; + CreateWorkflowConfigRequest.prototype.parent = ""; /** - * QueryCompilationResultActionsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest + * CreateWorkflowConfigRequest workflowConfig. + * @member {google.cloud.dataform.v1beta1.IWorkflowConfig|null|undefined} workflowConfig + * @memberof google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest * @instance */ - QueryCompilationResultActionsRequest.prototype.pageToken = ""; + CreateWorkflowConfigRequest.prototype.workflowConfig = null; /** - * QueryCompilationResultActionsRequest filter. - * @member {string} filter - * @memberof google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest + * CreateWorkflowConfigRequest workflowConfigId. + * @member {string} workflowConfigId + * @memberof google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest * @instance */ - QueryCompilationResultActionsRequest.prototype.filter = ""; + CreateWorkflowConfigRequest.prototype.workflowConfigId = ""; /** - * Creates a new QueryCompilationResultActionsRequest instance using the specified properties. + * Creates a new CreateWorkflowConfigRequest instance using the specified properties. * @function create - * @memberof google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest + * @memberof google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest * @static - * @param {google.cloud.dataform.v1beta1.IQueryCompilationResultActionsRequest=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest} QueryCompilationResultActionsRequest instance + * @param {google.cloud.dataform.v1beta1.ICreateWorkflowConfigRequest=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest} CreateWorkflowConfigRequest instance */ - QueryCompilationResultActionsRequest.create = function create(properties) { - return new QueryCompilationResultActionsRequest(properties); + CreateWorkflowConfigRequest.create = function create(properties) { + return new CreateWorkflowConfigRequest(properties); }; /** - * Encodes the specified QueryCompilationResultActionsRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest.verify|verify} messages. + * Encodes the specified CreateWorkflowConfigRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest + * @memberof google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest * @static - * @param {google.cloud.dataform.v1beta1.IQueryCompilationResultActionsRequest} message QueryCompilationResultActionsRequest message or plain object to encode + * @param {google.cloud.dataform.v1beta1.ICreateWorkflowConfigRequest} message CreateWorkflowConfigRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryCompilationResultActionsRequest.encode = function encode(message, writer) { + CreateWorkflowConfigRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.workflowConfig != null && Object.hasOwnProperty.call(message, "workflowConfig")) + $root.google.cloud.dataform.v1beta1.WorkflowConfig.encode(message.workflowConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.workflowConfigId != null && Object.hasOwnProperty.call(message, "workflowConfigId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.workflowConfigId); return writer; }; /** - * Encodes the specified QueryCompilationResultActionsRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest.verify|verify} messages. + * Encodes the specified CreateWorkflowConfigRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest + * @memberof google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest * @static - * @param {google.cloud.dataform.v1beta1.IQueryCompilationResultActionsRequest} message QueryCompilationResultActionsRequest message or plain object to encode + * @param {google.cloud.dataform.v1beta1.ICreateWorkflowConfigRequest} message CreateWorkflowConfigRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryCompilationResultActionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateWorkflowConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryCompilationResultActionsRequest message from the specified reader or buffer. + * Decodes a CreateWorkflowConfigRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest + * @memberof google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest} QueryCompilationResultActionsRequest + * @returns {google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest} CreateWorkflowConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryCompilationResultActionsRequest.decode = function decode(reader, length) { + CreateWorkflowConfigRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.parent = reader.string(); break; } case 2: { - message.pageSize = reader.int32(); + message.workflowConfig = $root.google.cloud.dataform.v1beta1.WorkflowConfig.decode(reader, reader.uint32()); break; } case 3: { - message.pageToken = reader.string(); - break; - } - case 4: { - message.filter = reader.string(); + message.workflowConfigId = reader.string(); break; } default: @@ -38002,149 +47001,381 @@ }; /** - * Decodes a QueryCompilationResultActionsRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateWorkflowConfigRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest + * @memberof google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest} QueryCompilationResultActionsRequest + * @returns {google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest} CreateWorkflowConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryCompilationResultActionsRequest.decodeDelimited = function decodeDelimited(reader) { + CreateWorkflowConfigRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryCompilationResultActionsRequest message. + * Verifies a CreateWorkflowConfigRequest message. * @function verify - * @memberof google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest + * @memberof google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryCompilationResultActionsRequest.verify = function verify(message) { + CreateWorkflowConfigRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.workflowConfig != null && message.hasOwnProperty("workflowConfig")) { + var error = $root.google.cloud.dataform.v1beta1.WorkflowConfig.verify(message.workflowConfig); + if (error) + return "workflowConfig." + error; + } + if (message.workflowConfigId != null && message.hasOwnProperty("workflowConfigId")) + if (!$util.isString(message.workflowConfigId)) + return "workflowConfigId: string expected"; return null; }; /** - * Creates a QueryCompilationResultActionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateWorkflowConfigRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest + * @memberof google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest} QueryCompilationResultActionsRequest + * @returns {google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest} CreateWorkflowConfigRequest */ - QueryCompilationResultActionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest) + CreateWorkflowConfigRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest) return object; - var message = new $root.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.filter != null) - message.filter = String(object.filter); + var message = new $root.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.workflowConfig != null) { + if (typeof object.workflowConfig !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest.workflowConfig: object expected"); + message.workflowConfig = $root.google.cloud.dataform.v1beta1.WorkflowConfig.fromObject(object.workflowConfig); + } + if (object.workflowConfigId != null) + message.workflowConfigId = String(object.workflowConfigId); return message; }; /** - * Creates a plain object from a QueryCompilationResultActionsRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateWorkflowConfigRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest + * @memberof google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest * @static - * @param {google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest} message QueryCompilationResultActionsRequest + * @param {google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest} message CreateWorkflowConfigRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryCompilationResultActionsRequest.toObject = function toObject(message, options) { + CreateWorkflowConfigRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.pageSize = 0; - object.pageToken = ""; - object.filter = ""; + object.parent = ""; + object.workflowConfig = null; + object.workflowConfigId = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.workflowConfig != null && message.hasOwnProperty("workflowConfig")) + object.workflowConfig = $root.google.cloud.dataform.v1beta1.WorkflowConfig.toObject(message.workflowConfig, options); + if (message.workflowConfigId != null && message.hasOwnProperty("workflowConfigId")) + object.workflowConfigId = message.workflowConfigId; + return object; + }; + + /** + * Converts this CreateWorkflowConfigRequest to JSON. + * @function toJSON + * @memberof google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest + * @instance + * @returns {Object.} JSON object + */ + CreateWorkflowConfigRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CreateWorkflowConfigRequest + * @function getTypeUrl + * @memberof google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateWorkflowConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest"; + }; + + return CreateWorkflowConfigRequest; + })(); + + v1beta1.UpdateWorkflowConfigRequest = (function() { + + /** + * Properties of an UpdateWorkflowConfigRequest. + * @memberof google.cloud.dataform.v1beta1 + * @interface IUpdateWorkflowConfigRequest + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateWorkflowConfigRequest updateMask + * @property {google.cloud.dataform.v1beta1.IWorkflowConfig|null} [workflowConfig] UpdateWorkflowConfigRequest workflowConfig + */ + + /** + * Constructs a new UpdateWorkflowConfigRequest. + * @memberof google.cloud.dataform.v1beta1 + * @classdesc Represents an UpdateWorkflowConfigRequest. + * @implements IUpdateWorkflowConfigRequest + * @constructor + * @param {google.cloud.dataform.v1beta1.IUpdateWorkflowConfigRequest=} [properties] Properties to set + */ + function UpdateWorkflowConfigRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * UpdateWorkflowConfigRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest + * @instance + */ + UpdateWorkflowConfigRequest.prototype.updateMask = null; + + /** + * UpdateWorkflowConfigRequest workflowConfig. + * @member {google.cloud.dataform.v1beta1.IWorkflowConfig|null|undefined} workflowConfig + * @memberof google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest + * @instance + */ + UpdateWorkflowConfigRequest.prototype.workflowConfig = null; + + /** + * Creates a new UpdateWorkflowConfigRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest + * @static + * @param {google.cloud.dataform.v1beta1.IUpdateWorkflowConfigRequest=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest} UpdateWorkflowConfigRequest instance + */ + UpdateWorkflowConfigRequest.create = function create(properties) { + return new UpdateWorkflowConfigRequest(properties); + }; + + /** + * Encodes the specified UpdateWorkflowConfigRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest + * @static + * @param {google.cloud.dataform.v1beta1.IUpdateWorkflowConfigRequest} message UpdateWorkflowConfigRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateWorkflowConfigRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.workflowConfig != null && Object.hasOwnProperty.call(message, "workflowConfig")) + $root.google.cloud.dataform.v1beta1.WorkflowConfig.encode(message.workflowConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified UpdateWorkflowConfigRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest + * @static + * @param {google.cloud.dataform.v1beta1.IUpdateWorkflowConfigRequest} message UpdateWorkflowConfigRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateWorkflowConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateWorkflowConfigRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest} UpdateWorkflowConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateWorkflowConfigRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } + case 2: { + message.workflowConfig = $root.google.cloud.dataform.v1beta1.WorkflowConfig.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpdateWorkflowConfigRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest} UpdateWorkflowConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateWorkflowConfigRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateWorkflowConfigRequest message. + * @function verify + * @memberof google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateWorkflowConfigRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } + if (message.workflowConfig != null && message.hasOwnProperty("workflowConfig")) { + var error = $root.google.cloud.dataform.v1beta1.WorkflowConfig.verify(message.workflowConfig); + if (error) + return "workflowConfig." + error; + } + return null; + }; + + /** + * Creates an UpdateWorkflowConfigRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest} UpdateWorkflowConfigRequest + */ + UpdateWorkflowConfigRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest) + return object; + var message = new $root.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest(); + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + if (object.workflowConfig != null) { + if (typeof object.workflowConfig !== "object") + throw TypeError(".google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest.workflowConfig: object expected"); + message.workflowConfig = $root.google.cloud.dataform.v1beta1.WorkflowConfig.fromObject(object.workflowConfig); + } + return message; + }; + + /** + * Creates a plain object from an UpdateWorkflowConfigRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest + * @static + * @param {google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest} message UpdateWorkflowConfigRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateWorkflowConfigRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.updateMask = null; + object.workflowConfig = null; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.workflowConfig != null && message.hasOwnProperty("workflowConfig")) + object.workflowConfig = $root.google.cloud.dataform.v1beta1.WorkflowConfig.toObject(message.workflowConfig, options); return object; }; /** - * Converts this QueryCompilationResultActionsRequest to JSON. + * Converts this UpdateWorkflowConfigRequest to JSON. * @function toJSON - * @memberof google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest + * @memberof google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest * @instance * @returns {Object.} JSON object */ - QueryCompilationResultActionsRequest.prototype.toJSON = function toJSON() { + UpdateWorkflowConfigRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for QueryCompilationResultActionsRequest + * Gets the default type url for UpdateWorkflowConfigRequest * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest + * @memberof google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - QueryCompilationResultActionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateWorkflowConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest"; + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest"; }; - return QueryCompilationResultActionsRequest; + return UpdateWorkflowConfigRequest; })(); - v1beta1.QueryCompilationResultActionsResponse = (function() { + v1beta1.DeleteWorkflowConfigRequest = (function() { /** - * Properties of a QueryCompilationResultActionsResponse. + * Properties of a DeleteWorkflowConfigRequest. * @memberof google.cloud.dataform.v1beta1 - * @interface IQueryCompilationResultActionsResponse - * @property {Array.|null} [compilationResultActions] QueryCompilationResultActionsResponse compilationResultActions - * @property {string|null} [nextPageToken] QueryCompilationResultActionsResponse nextPageToken + * @interface IDeleteWorkflowConfigRequest + * @property {string|null} [name] DeleteWorkflowConfigRequest name */ /** - * Constructs a new QueryCompilationResultActionsResponse. + * Constructs a new DeleteWorkflowConfigRequest. * @memberof google.cloud.dataform.v1beta1 - * @classdesc Represents a QueryCompilationResultActionsResponse. - * @implements IQueryCompilationResultActionsResponse + * @classdesc Represents a DeleteWorkflowConfigRequest. + * @implements IDeleteWorkflowConfigRequest * @constructor - * @param {google.cloud.dataform.v1beta1.IQueryCompilationResultActionsResponse=} [properties] Properties to set + * @param {google.cloud.dataform.v1beta1.IDeleteWorkflowConfigRequest=} [properties] Properties to set */ - function QueryCompilationResultActionsResponse(properties) { - this.compilationResultActions = []; + function DeleteWorkflowConfigRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -38152,92 +47383,75 @@ } /** - * QueryCompilationResultActionsResponse compilationResultActions. - * @member {Array.} compilationResultActions - * @memberof google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse - * @instance - */ - QueryCompilationResultActionsResponse.prototype.compilationResultActions = $util.emptyArray; - - /** - * QueryCompilationResultActionsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse + * DeleteWorkflowConfigRequest name. + * @member {string} name + * @memberof google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest * @instance */ - QueryCompilationResultActionsResponse.prototype.nextPageToken = ""; + DeleteWorkflowConfigRequest.prototype.name = ""; /** - * Creates a new QueryCompilationResultActionsResponse instance using the specified properties. + * Creates a new DeleteWorkflowConfigRequest instance using the specified properties. * @function create - * @memberof google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse + * @memberof google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest * @static - * @param {google.cloud.dataform.v1beta1.IQueryCompilationResultActionsResponse=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse} QueryCompilationResultActionsResponse instance + * @param {google.cloud.dataform.v1beta1.IDeleteWorkflowConfigRequest=} [properties] Properties to set + * @returns {google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest} DeleteWorkflowConfigRequest instance */ - QueryCompilationResultActionsResponse.create = function create(properties) { - return new QueryCompilationResultActionsResponse(properties); + DeleteWorkflowConfigRequest.create = function create(properties) { + return new DeleteWorkflowConfigRequest(properties); }; /** - * Encodes the specified QueryCompilationResultActionsResponse message. Does not implicitly {@link google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse.verify|verify} messages. + * Encodes the specified DeleteWorkflowConfigRequest message. Does not implicitly {@link google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse + * @memberof google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest * @static - * @param {google.cloud.dataform.v1beta1.IQueryCompilationResultActionsResponse} message QueryCompilationResultActionsResponse message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IDeleteWorkflowConfigRequest} message DeleteWorkflowConfigRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryCompilationResultActionsResponse.encode = function encode(message, writer) { + DeleteWorkflowConfigRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.compilationResultActions != null && message.compilationResultActions.length) - for (var i = 0; i < message.compilationResultActions.length; ++i) - $root.google.cloud.dataform.v1beta1.CompilationResultAction.encode(message.compilationResultActions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified QueryCompilationResultActionsResponse message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse.verify|verify} messages. + * Encodes the specified DeleteWorkflowConfigRequest message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse + * @memberof google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest * @static - * @param {google.cloud.dataform.v1beta1.IQueryCompilationResultActionsResponse} message QueryCompilationResultActionsResponse message or plain object to encode + * @param {google.cloud.dataform.v1beta1.IDeleteWorkflowConfigRequest} message DeleteWorkflowConfigRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryCompilationResultActionsResponse.encodeDelimited = function encodeDelimited(message, writer) { + DeleteWorkflowConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryCompilationResultActionsResponse message from the specified reader or buffer. + * Decodes a DeleteWorkflowConfigRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse + * @memberof google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse} QueryCompilationResultActionsResponse + * @returns {google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest} DeleteWorkflowConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryCompilationResultActionsResponse.decode = function decode(reader, length) { + DeleteWorkflowConfigRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.compilationResultActions && message.compilationResultActions.length)) - message.compilationResultActions = []; - message.compilationResultActions.push($root.google.cloud.dataform.v1beta1.CompilationResultAction.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); + message.name = reader.string(); break; } default: @@ -38249,128 +47463,102 @@ }; /** - * Decodes a QueryCompilationResultActionsResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteWorkflowConfigRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse + * @memberof google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse} QueryCompilationResultActionsResponse + * @returns {google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest} DeleteWorkflowConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryCompilationResultActionsResponse.decodeDelimited = function decodeDelimited(reader) { + DeleteWorkflowConfigRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryCompilationResultActionsResponse message. + * Verifies a DeleteWorkflowConfigRequest message. * @function verify - * @memberof google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse + * @memberof google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryCompilationResultActionsResponse.verify = function verify(message) { + DeleteWorkflowConfigRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.compilationResultActions != null && message.hasOwnProperty("compilationResultActions")) { - if (!Array.isArray(message.compilationResultActions)) - return "compilationResultActions: array expected"; - for (var i = 0; i < message.compilationResultActions.length; ++i) { - var error = $root.google.cloud.dataform.v1beta1.CompilationResultAction.verify(message.compilationResultActions[i]); - if (error) - return "compilationResultActions." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a QueryCompilationResultActionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteWorkflowConfigRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse + * @memberof google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse} QueryCompilationResultActionsResponse + * @returns {google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest} DeleteWorkflowConfigRequest */ - QueryCompilationResultActionsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse) + DeleteWorkflowConfigRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest) return object; - var message = new $root.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse(); - if (object.compilationResultActions) { - if (!Array.isArray(object.compilationResultActions)) - throw TypeError(".google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse.compilationResultActions: array expected"); - message.compilationResultActions = []; - for (var i = 0; i < object.compilationResultActions.length; ++i) { - if (typeof object.compilationResultActions[i] !== "object") - throw TypeError(".google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse.compilationResultActions: object expected"); - message.compilationResultActions[i] = $root.google.cloud.dataform.v1beta1.CompilationResultAction.fromObject(object.compilationResultActions[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a QueryCompilationResultActionsResponse message. Also converts values to other types if specified. + * Creates a plain object from a DeleteWorkflowConfigRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse + * @memberof google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest * @static - * @param {google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse} message QueryCompilationResultActionsResponse + * @param {google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest} message DeleteWorkflowConfigRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryCompilationResultActionsResponse.toObject = function toObject(message, options) { + DeleteWorkflowConfigRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.compilationResultActions = []; if (options.defaults) - object.nextPageToken = ""; - if (message.compilationResultActions && message.compilationResultActions.length) { - object.compilationResultActions = []; - for (var j = 0; j < message.compilationResultActions.length; ++j) - object.compilationResultActions[j] = $root.google.cloud.dataform.v1beta1.CompilationResultAction.toObject(message.compilationResultActions[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this QueryCompilationResultActionsResponse to JSON. + * Converts this DeleteWorkflowConfigRequest to JSON. * @function toJSON - * @memberof google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse + * @memberof google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest * @instance * @returns {Object.} JSON object */ - QueryCompilationResultActionsResponse.prototype.toJSON = function toJSON() { + DeleteWorkflowConfigRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for QueryCompilationResultActionsResponse + * Gets the default type url for DeleteWorkflowConfigRequest * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse + * @memberof google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - QueryCompilationResultActionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteWorkflowConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse"; + return typeUrlPrefix + "/google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest"; }; - return QueryCompilationResultActionsResponse; + return DeleteWorkflowConfigRequest; })(); v1beta1.WorkflowInvocation = (function() { @@ -38381,7 +47569,8 @@ * @interface IWorkflowInvocation * @property {string|null} [name] WorkflowInvocation name * @property {string|null} [compilationResult] WorkflowInvocation compilationResult - * @property {google.cloud.dataform.v1beta1.WorkflowInvocation.IInvocationConfig|null} [invocationConfig] WorkflowInvocation invocationConfig + * @property {string|null} [workflowConfig] WorkflowInvocation workflowConfig + * @property {google.cloud.dataform.v1beta1.IInvocationConfig|null} [invocationConfig] WorkflowInvocation invocationConfig * @property {google.cloud.dataform.v1beta1.WorkflowInvocation.State|null} [state] WorkflowInvocation state * @property {google.type.IInterval|null} [invocationTiming] WorkflowInvocation invocationTiming */ @@ -38411,15 +47600,23 @@ /** * WorkflowInvocation compilationResult. - * @member {string} compilationResult + * @member {string|null|undefined} compilationResult * @memberof google.cloud.dataform.v1beta1.WorkflowInvocation * @instance */ - WorkflowInvocation.prototype.compilationResult = ""; + WorkflowInvocation.prototype.compilationResult = null; + + /** + * WorkflowInvocation workflowConfig. + * @member {string|null|undefined} workflowConfig + * @memberof google.cloud.dataform.v1beta1.WorkflowInvocation + * @instance + */ + WorkflowInvocation.prototype.workflowConfig = null; /** * WorkflowInvocation invocationConfig. - * @member {google.cloud.dataform.v1beta1.WorkflowInvocation.IInvocationConfig|null|undefined} invocationConfig + * @member {google.cloud.dataform.v1beta1.IInvocationConfig|null|undefined} invocationConfig * @memberof google.cloud.dataform.v1beta1.WorkflowInvocation * @instance */ @@ -38441,6 +47638,20 @@ */ WorkflowInvocation.prototype.invocationTiming = null; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * WorkflowInvocation compilationSource. + * @member {"compilationResult"|"workflowConfig"|undefined} compilationSource + * @memberof google.cloud.dataform.v1beta1.WorkflowInvocation + * @instance + */ + Object.defineProperty(WorkflowInvocation.prototype, "compilationSource", { + get: $util.oneOfGetter($oneOfFields = ["compilationResult", "workflowConfig"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new WorkflowInvocation instance using the specified properties. * @function create @@ -38470,11 +47681,13 @@ if (message.compilationResult != null && Object.hasOwnProperty.call(message, "compilationResult")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.compilationResult); if (message.invocationConfig != null && Object.hasOwnProperty.call(message, "invocationConfig")) - $root.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig.encode(message.invocationConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + $root.google.cloud.dataform.v1beta1.InvocationConfig.encode(message.invocationConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.state != null && Object.hasOwnProperty.call(message, "state")) writer.uint32(/* id 4, wireType 0 =*/32).int32(message.state); if (message.invocationTiming != null && Object.hasOwnProperty.call(message, "invocationTiming")) $root.google.type.Interval.encode(message.invocationTiming, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.workflowConfig != null && Object.hasOwnProperty.call(message, "workflowConfig")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.workflowConfig); return writer; }; @@ -38517,8 +47730,12 @@ message.compilationResult = reader.string(); break; } + case 6: { + message.workflowConfig = reader.string(); + break; + } case 3: { - message.invocationConfig = $root.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig.decode(reader, reader.uint32()); + message.invocationConfig = $root.google.cloud.dataform.v1beta1.InvocationConfig.decode(reader, reader.uint32()); break; } case 4: { @@ -38564,14 +47781,24 @@ WorkflowInvocation.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + var properties = {}; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.compilationResult != null && message.hasOwnProperty("compilationResult")) + if (message.compilationResult != null && message.hasOwnProperty("compilationResult")) { + properties.compilationSource = 1; if (!$util.isString(message.compilationResult)) return "compilationResult: string expected"; + } + if (message.workflowConfig != null && message.hasOwnProperty("workflowConfig")) { + if (properties.compilationSource === 1) + return "compilationSource: multiple values"; + properties.compilationSource = 1; + if (!$util.isString(message.workflowConfig)) + return "workflowConfig: string expected"; + } if (message.invocationConfig != null && message.hasOwnProperty("invocationConfig")) { - var error = $root.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig.verify(message.invocationConfig); + var error = $root.google.cloud.dataform.v1beta1.InvocationConfig.verify(message.invocationConfig); if (error) return "invocationConfig." + error; } @@ -38611,10 +47838,12 @@ message.name = String(object.name); if (object.compilationResult != null) message.compilationResult = String(object.compilationResult); + if (object.workflowConfig != null) + message.workflowConfig = String(object.workflowConfig); if (object.invocationConfig != null) { if (typeof object.invocationConfig !== "object") throw TypeError(".google.cloud.dataform.v1beta1.WorkflowInvocation.invocationConfig: object expected"); - message.invocationConfig = $root.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig.fromObject(object.invocationConfig); + message.invocationConfig = $root.google.cloud.dataform.v1beta1.InvocationConfig.fromObject(object.invocationConfig); } switch (object.state) { default: @@ -38671,21 +47900,28 @@ var object = {}; if (options.defaults) { object.name = ""; - object.compilationResult = ""; object.invocationConfig = null; object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; object.invocationTiming = null; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.compilationResult != null && message.hasOwnProperty("compilationResult")) + if (message.compilationResult != null && message.hasOwnProperty("compilationResult")) { object.compilationResult = message.compilationResult; + if (options.oneofs) + object.compilationSource = "compilationResult"; + } if (message.invocationConfig != null && message.hasOwnProperty("invocationConfig")) - object.invocationConfig = $root.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig.toObject(message.invocationConfig, options); + object.invocationConfig = $root.google.cloud.dataform.v1beta1.InvocationConfig.toObject(message.invocationConfig, options); if (message.state != null && message.hasOwnProperty("state")) object.state = options.enums === String ? $root.google.cloud.dataform.v1beta1.WorkflowInvocation.State[message.state] === undefined ? message.state : $root.google.cloud.dataform.v1beta1.WorkflowInvocation.State[message.state] : message.state; if (message.invocationTiming != null && message.hasOwnProperty("invocationTiming")) object.invocationTiming = $root.google.type.Interval.toObject(message.invocationTiming, options); + if (message.workflowConfig != null && message.hasOwnProperty("workflowConfig")) { + object.workflowConfig = message.workflowConfig; + if (options.oneofs) + object.compilationSource = "workflowConfig"; + } return object; }; @@ -38715,341 +47951,6 @@ return typeUrlPrefix + "/google.cloud.dataform.v1beta1.WorkflowInvocation"; }; - WorkflowInvocation.InvocationConfig = (function() { - - /** - * Properties of an InvocationConfig. - * @memberof google.cloud.dataform.v1beta1.WorkflowInvocation - * @interface IInvocationConfig - * @property {Array.|null} [includedTargets] InvocationConfig includedTargets - * @property {Array.|null} [includedTags] InvocationConfig includedTags - * @property {boolean|null} [transitiveDependenciesIncluded] InvocationConfig transitiveDependenciesIncluded - * @property {boolean|null} [transitiveDependentsIncluded] InvocationConfig transitiveDependentsIncluded - * @property {boolean|null} [fullyRefreshIncrementalTablesEnabled] InvocationConfig fullyRefreshIncrementalTablesEnabled - */ - - /** - * Constructs a new InvocationConfig. - * @memberof google.cloud.dataform.v1beta1.WorkflowInvocation - * @classdesc Represents an InvocationConfig. - * @implements IInvocationConfig - * @constructor - * @param {google.cloud.dataform.v1beta1.WorkflowInvocation.IInvocationConfig=} [properties] Properties to set - */ - function InvocationConfig(properties) { - this.includedTargets = []; - this.includedTags = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * InvocationConfig includedTargets. - * @member {Array.} includedTargets - * @memberof google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig - * @instance - */ - InvocationConfig.prototype.includedTargets = $util.emptyArray; - - /** - * InvocationConfig includedTags. - * @member {Array.} includedTags - * @memberof google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig - * @instance - */ - InvocationConfig.prototype.includedTags = $util.emptyArray; - - /** - * InvocationConfig transitiveDependenciesIncluded. - * @member {boolean} transitiveDependenciesIncluded - * @memberof google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig - * @instance - */ - InvocationConfig.prototype.transitiveDependenciesIncluded = false; - - /** - * InvocationConfig transitiveDependentsIncluded. - * @member {boolean} transitiveDependentsIncluded - * @memberof google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig - * @instance - */ - InvocationConfig.prototype.transitiveDependentsIncluded = false; - - /** - * InvocationConfig fullyRefreshIncrementalTablesEnabled. - * @member {boolean} fullyRefreshIncrementalTablesEnabled - * @memberof google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig - * @instance - */ - InvocationConfig.prototype.fullyRefreshIncrementalTablesEnabled = false; - - /** - * Creates a new InvocationConfig instance using the specified properties. - * @function create - * @memberof google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig - * @static - * @param {google.cloud.dataform.v1beta1.WorkflowInvocation.IInvocationConfig=} [properties] Properties to set - * @returns {google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig} InvocationConfig instance - */ - InvocationConfig.create = function create(properties) { - return new InvocationConfig(properties); - }; - - /** - * Encodes the specified InvocationConfig message. Does not implicitly {@link google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig - * @static - * @param {google.cloud.dataform.v1beta1.WorkflowInvocation.IInvocationConfig} message InvocationConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InvocationConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.includedTargets != null && message.includedTargets.length) - for (var i = 0; i < message.includedTargets.length; ++i) - $root.google.cloud.dataform.v1beta1.Target.encode(message.includedTargets[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.includedTags != null && message.includedTags.length) - for (var i = 0; i < message.includedTags.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.includedTags[i]); - if (message.transitiveDependenciesIncluded != null && Object.hasOwnProperty.call(message, "transitiveDependenciesIncluded")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.transitiveDependenciesIncluded); - if (message.transitiveDependentsIncluded != null && Object.hasOwnProperty.call(message, "transitiveDependentsIncluded")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.transitiveDependentsIncluded); - if (message.fullyRefreshIncrementalTablesEnabled != null && Object.hasOwnProperty.call(message, "fullyRefreshIncrementalTablesEnabled")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.fullyRefreshIncrementalTablesEnabled); - return writer; - }; - - /** - * Encodes the specified InvocationConfig message, length delimited. Does not implicitly {@link google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig - * @static - * @param {google.cloud.dataform.v1beta1.WorkflowInvocation.IInvocationConfig} message InvocationConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InvocationConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an InvocationConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig} InvocationConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - InvocationConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.includedTargets && message.includedTargets.length)) - message.includedTargets = []; - message.includedTargets.push($root.google.cloud.dataform.v1beta1.Target.decode(reader, reader.uint32())); - break; - } - case 2: { - if (!(message.includedTags && message.includedTags.length)) - message.includedTags = []; - message.includedTags.push(reader.string()); - break; - } - case 3: { - message.transitiveDependenciesIncluded = reader.bool(); - break; - } - case 4: { - message.transitiveDependentsIncluded = reader.bool(); - break; - } - case 5: { - message.fullyRefreshIncrementalTablesEnabled = reader.bool(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an InvocationConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig} InvocationConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - InvocationConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an InvocationConfig message. - * @function verify - * @memberof google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - InvocationConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.includedTargets != null && message.hasOwnProperty("includedTargets")) { - if (!Array.isArray(message.includedTargets)) - return "includedTargets: array expected"; - for (var i = 0; i < message.includedTargets.length; ++i) { - var error = $root.google.cloud.dataform.v1beta1.Target.verify(message.includedTargets[i]); - if (error) - return "includedTargets." + error; - } - } - if (message.includedTags != null && message.hasOwnProperty("includedTags")) { - if (!Array.isArray(message.includedTags)) - return "includedTags: array expected"; - for (var i = 0; i < message.includedTags.length; ++i) - if (!$util.isString(message.includedTags[i])) - return "includedTags: string[] expected"; - } - if (message.transitiveDependenciesIncluded != null && message.hasOwnProperty("transitiveDependenciesIncluded")) - if (typeof message.transitiveDependenciesIncluded !== "boolean") - return "transitiveDependenciesIncluded: boolean expected"; - if (message.transitiveDependentsIncluded != null && message.hasOwnProperty("transitiveDependentsIncluded")) - if (typeof message.transitiveDependentsIncluded !== "boolean") - return "transitiveDependentsIncluded: boolean expected"; - if (message.fullyRefreshIncrementalTablesEnabled != null && message.hasOwnProperty("fullyRefreshIncrementalTablesEnabled")) - if (typeof message.fullyRefreshIncrementalTablesEnabled !== "boolean") - return "fullyRefreshIncrementalTablesEnabled: boolean expected"; - return null; - }; - - /** - * Creates an InvocationConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig} InvocationConfig - */ - InvocationConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig) - return object; - var message = new $root.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig(); - if (object.includedTargets) { - if (!Array.isArray(object.includedTargets)) - throw TypeError(".google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig.includedTargets: array expected"); - message.includedTargets = []; - for (var i = 0; i < object.includedTargets.length; ++i) { - if (typeof object.includedTargets[i] !== "object") - throw TypeError(".google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig.includedTargets: object expected"); - message.includedTargets[i] = $root.google.cloud.dataform.v1beta1.Target.fromObject(object.includedTargets[i]); - } - } - if (object.includedTags) { - if (!Array.isArray(object.includedTags)) - throw TypeError(".google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig.includedTags: array expected"); - message.includedTags = []; - for (var i = 0; i < object.includedTags.length; ++i) - message.includedTags[i] = String(object.includedTags[i]); - } - if (object.transitiveDependenciesIncluded != null) - message.transitiveDependenciesIncluded = Boolean(object.transitiveDependenciesIncluded); - if (object.transitiveDependentsIncluded != null) - message.transitiveDependentsIncluded = Boolean(object.transitiveDependentsIncluded); - if (object.fullyRefreshIncrementalTablesEnabled != null) - message.fullyRefreshIncrementalTablesEnabled = Boolean(object.fullyRefreshIncrementalTablesEnabled); - return message; - }; - - /** - * Creates a plain object from an InvocationConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig - * @static - * @param {google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig} message InvocationConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - InvocationConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.includedTargets = []; - object.includedTags = []; - } - if (options.defaults) { - object.transitiveDependenciesIncluded = false; - object.transitiveDependentsIncluded = false; - object.fullyRefreshIncrementalTablesEnabled = false; - } - if (message.includedTargets && message.includedTargets.length) { - object.includedTargets = []; - for (var j = 0; j < message.includedTargets.length; ++j) - object.includedTargets[j] = $root.google.cloud.dataform.v1beta1.Target.toObject(message.includedTargets[j], options); - } - if (message.includedTags && message.includedTags.length) { - object.includedTags = []; - for (var j = 0; j < message.includedTags.length; ++j) - object.includedTags[j] = message.includedTags[j]; - } - if (message.transitiveDependenciesIncluded != null && message.hasOwnProperty("transitiveDependenciesIncluded")) - object.transitiveDependenciesIncluded = message.transitiveDependenciesIncluded; - if (message.transitiveDependentsIncluded != null && message.hasOwnProperty("transitiveDependentsIncluded")) - object.transitiveDependentsIncluded = message.transitiveDependentsIncluded; - if (message.fullyRefreshIncrementalTablesEnabled != null && message.hasOwnProperty("fullyRefreshIncrementalTablesEnabled")) - object.fullyRefreshIncrementalTablesEnabled = message.fullyRefreshIncrementalTablesEnabled; - return object; - }; - - /** - * Converts this InvocationConfig to JSON. - * @function toJSON - * @memberof google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig - * @instance - * @returns {Object.} JSON object - */ - InvocationConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for InvocationConfig - * @function getTypeUrl - * @memberof google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - InvocationConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig"; - }; - - return InvocationConfig; - })(); - /** * State enum. * @name google.cloud.dataform.v1beta1.WorkflowInvocation.State @@ -39084,6 +47985,8 @@ * @property {string|null} [parent] ListWorkflowInvocationsRequest parent * @property {number|null} [pageSize] ListWorkflowInvocationsRequest pageSize * @property {string|null} [pageToken] ListWorkflowInvocationsRequest pageToken + * @property {string|null} [orderBy] ListWorkflowInvocationsRequest orderBy + * @property {string|null} [filter] ListWorkflowInvocationsRequest filter */ /** @@ -39125,6 +48028,22 @@ */ ListWorkflowInvocationsRequest.prototype.pageToken = ""; + /** + * ListWorkflowInvocationsRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest + * @instance + */ + ListWorkflowInvocationsRequest.prototype.orderBy = ""; + + /** + * ListWorkflowInvocationsRequest filter. + * @member {string} filter + * @memberof google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest + * @instance + */ + ListWorkflowInvocationsRequest.prototype.filter = ""; + /** * Creates a new ListWorkflowInvocationsRequest instance using the specified properties. * @function create @@ -39155,6 +48074,10 @@ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.orderBy); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.filter); return writer; }; @@ -39201,6 +48124,14 @@ message.pageToken = reader.string(); break; } + case 4: { + message.orderBy = reader.string(); + break; + } + case 5: { + message.filter = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -39245,6 +48176,12 @@ if (message.pageToken != null && message.hasOwnProperty("pageToken")) if (!$util.isString(message.pageToken)) return "pageToken: string expected"; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; return null; }; @@ -39266,6 +48203,10 @@ message.pageSize = object.pageSize | 0; if (object.pageToken != null) message.pageToken = String(object.pageToken); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); + if (object.filter != null) + message.filter = String(object.filter); return message; }; @@ -39286,6 +48227,8 @@ object.parent = ""; object.pageSize = 0; object.pageToken = ""; + object.orderBy = ""; + object.filter = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; @@ -39293,6 +48236,10 @@ object.pageSize = message.pageSize; if (message.pageToken != null && message.hasOwnProperty("pageToken")) object.pageToken = message.pageToken; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; return object; }; @@ -57366,6 +66313,242 @@ return Timestamp; })(); + protobuf.Any = (function() { + + /** + * Properties of an Any. + * @memberof google.protobuf + * @interface IAny + * @property {string|null} [type_url] Any type_url + * @property {Uint8Array|null} [value] Any value + */ + + /** + * Constructs a new Any. + * @memberof google.protobuf + * @classdesc Represents an Any. + * @implements IAny + * @constructor + * @param {google.protobuf.IAny=} [properties] Properties to set + */ + function Any(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Any type_url. + * @member {string} type_url + * @memberof google.protobuf.Any + * @instance + */ + Any.prototype.type_url = ""; + + /** + * Any value. + * @member {Uint8Array} value + * @memberof google.protobuf.Any + * @instance + */ + Any.prototype.value = $util.newBuffer([]); + + /** + * Creates a new Any instance using the specified properties. + * @function create + * @memberof google.protobuf.Any + * @static + * @param {google.protobuf.IAny=} [properties] Properties to set + * @returns {google.protobuf.Any} Any instance + */ + Any.create = function create(properties) { + return new Any(properties); + }; + + /** + * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Any + * @static + * @param {google.protobuf.IAny} message Any message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Any.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type_url != null && Object.hasOwnProperty.call(message, "type_url")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.type_url); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value); + return writer; + }; + + /** + * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.Any + * @static + * @param {google.protobuf.IAny} message Any message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Any.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Any message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Any + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Any} Any + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Any.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Any(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.type_url = reader.string(); + break; + } + case 2: { + message.value = reader.bytes(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Any message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.Any + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.Any} Any + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Any.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Any message. + * @function verify + * @memberof google.protobuf.Any + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Any.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.type_url != null && message.hasOwnProperty("type_url")) + if (!$util.isString(message.type_url)) + return "type_url: string expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) + return "value: buffer expected"; + return null; + }; + + /** + * Creates an Any message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.Any + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.Any} Any + */ + Any.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Any) + return object; + var message = new $root.google.protobuf.Any(); + if (object.type_url != null) + message.type_url = String(object.type_url); + if (object.value != null) + if (typeof object.value === "string") + $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); + else if (object.value.length >= 0) + message.value = object.value; + return message; + }; + + /** + * Creates a plain object from an Any message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.Any + * @static + * @param {google.protobuf.Any} message Any + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Any.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.type_url = ""; + if (options.bytes === String) + object.value = ""; + else { + object.value = []; + if (options.bytes !== Array) + object.value = $util.newBuffer(object.value); + } + } + if (message.type_url != null && message.hasOwnProperty("type_url")) + object.type_url = message.type_url; + if (message.value != null && message.hasOwnProperty("value")) + object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; + return object; + }; + + /** + * Converts this Any to JSON. + * @function toJSON + * @memberof google.protobuf.Any + * @instance + * @returns {Object.} JSON object + */ + Any.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Any + * @function getTypeUrl + * @memberof google.protobuf.Any + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Any.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.Any"; + }; + + return Any; + })(); + return protobuf; })(); @@ -57618,6 +66801,290 @@ return type; })(); + google.rpc = (function() { + + /** + * Namespace rpc. + * @memberof google + * @namespace + */ + var rpc = {}; + + rpc.Status = (function() { + + /** + * Properties of a Status. + * @memberof google.rpc + * @interface IStatus + * @property {number|null} [code] Status code + * @property {string|null} [message] Status message + * @property {Array.|null} [details] Status details + */ + + /** + * Constructs a new Status. + * @memberof google.rpc + * @classdesc Represents a Status. + * @implements IStatus + * @constructor + * @param {google.rpc.IStatus=} [properties] Properties to set + */ + function Status(properties) { + this.details = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Status code. + * @member {number} code + * @memberof google.rpc.Status + * @instance + */ + Status.prototype.code = 0; + + /** + * Status message. + * @member {string} message + * @memberof google.rpc.Status + * @instance + */ + Status.prototype.message = ""; + + /** + * Status details. + * @member {Array.} details + * @memberof google.rpc.Status + * @instance + */ + Status.prototype.details = $util.emptyArray; + + /** + * Creates a new Status instance using the specified properties. + * @function create + * @memberof google.rpc.Status + * @static + * @param {google.rpc.IStatus=} [properties] Properties to set + * @returns {google.rpc.Status} Status instance + */ + Status.create = function create(properties) { + return new Status(properties); + }; + + /** + * Encodes the specified Status message. Does not implicitly {@link google.rpc.Status.verify|verify} messages. + * @function encode + * @memberof google.rpc.Status + * @static + * @param {google.rpc.IStatus} message Status message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Status.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.code != null && Object.hasOwnProperty.call(message, "code")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.code); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); + if (message.details != null && message.details.length) + for (var i = 0; i < message.details.length; ++i) + $root.google.protobuf.Any.encode(message.details[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Status message, length delimited. Does not implicitly {@link google.rpc.Status.verify|verify} messages. + * @function encodeDelimited + * @memberof google.rpc.Status + * @static + * @param {google.rpc.IStatus} message Status message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Status.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Status message from the specified reader or buffer. + * @function decode + * @memberof google.rpc.Status + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.rpc.Status} Status + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Status.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.rpc.Status(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.code = reader.int32(); + break; + } + case 2: { + message.message = reader.string(); + break; + } + case 3: { + if (!(message.details && message.details.length)) + message.details = []; + message.details.push($root.google.protobuf.Any.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Status message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.rpc.Status + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.rpc.Status} Status + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Status.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Status message. + * @function verify + * @memberof google.rpc.Status + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Status.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.code != null && message.hasOwnProperty("code")) + if (!$util.isInteger(message.code)) + return "code: integer expected"; + if (message.message != null && message.hasOwnProperty("message")) + if (!$util.isString(message.message)) + return "message: string expected"; + if (message.details != null && message.hasOwnProperty("details")) { + if (!Array.isArray(message.details)) + return "details: array expected"; + for (var i = 0; i < message.details.length; ++i) { + var error = $root.google.protobuf.Any.verify(message.details[i]); + if (error) + return "details." + error; + } + } + return null; + }; + + /** + * Creates a Status message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.rpc.Status + * @static + * @param {Object.} object Plain object + * @returns {google.rpc.Status} Status + */ + Status.fromObject = function fromObject(object) { + if (object instanceof $root.google.rpc.Status) + return object; + var message = new $root.google.rpc.Status(); + if (object.code != null) + message.code = object.code | 0; + if (object.message != null) + message.message = String(object.message); + if (object.details) { + if (!Array.isArray(object.details)) + throw TypeError(".google.rpc.Status.details: array expected"); + message.details = []; + for (var i = 0; i < object.details.length; ++i) { + if (typeof object.details[i] !== "object") + throw TypeError(".google.rpc.Status.details: object expected"); + message.details[i] = $root.google.protobuf.Any.fromObject(object.details[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a Status message. Also converts values to other types if specified. + * @function toObject + * @memberof google.rpc.Status + * @static + * @param {google.rpc.Status} message Status + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Status.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.details = []; + if (options.defaults) { + object.code = 0; + object.message = ""; + } + if (message.code != null && message.hasOwnProperty("code")) + object.code = message.code; + if (message.message != null && message.hasOwnProperty("message")) + object.message = message.message; + if (message.details && message.details.length) { + object.details = []; + for (var j = 0; j < message.details.length; ++j) + object.details[j] = $root.google.protobuf.Any.toObject(message.details[j], options); + } + return object; + }; + + /** + * Converts this Status to JSON. + * @function toJSON + * @memberof google.rpc.Status + * @instance + * @returns {Object.} JSON object + */ + Status.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Status + * @function getTypeUrl + * @memberof google.rpc.Status + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Status.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.rpc.Status"; + }; + + return Status; + })(); + + return rpc; + })(); + return google; })(); diff --git a/packages/google-cloud-dataform/protos/protos.json b/packages/google-cloud-dataform/protos/protos.json index 0b03c613c1f..3a4e4b241e4 100644 --- a/packages/google-cloud-dataform/protos/protos.json +++ b/packages/google-cloud-dataform/protos/protos.json @@ -2426,6 +2426,78 @@ } ] }, + "CommitRepositoryChanges": { + "requestType": "CommitRepositoryChangesRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).post": "/v1beta1/{name=projects/*/locations/*/repositories/*}:commit", + "(google.api.http).body": "*" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta1/{name=projects/*/locations/*/repositories/*}:commit", + "body": "*" + } + } + ] + }, + "ReadRepositoryFile": { + "requestType": "ReadRepositoryFileRequest", + "responseType": "ReadRepositoryFileResponse", + "options": { + "(google.api.http).get": "/v1beta1/{name=projects/*/locations/*/repositories/*}:readFile" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta1/{name=projects/*/locations/*/repositories/*}:readFile" + } + } + ] + }, + "QueryRepositoryDirectoryContents": { + "requestType": "QueryRepositoryDirectoryContentsRequest", + "responseType": "QueryRepositoryDirectoryContentsResponse", + "options": { + "(google.api.http).get": "/v1beta1/{name=projects/*/locations/*/repositories/*}:queryDirectoryContents" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta1/{name=projects/*/locations/*/repositories/*}:queryDirectoryContents" + } + } + ] + }, + "FetchRepositoryHistory": { + "requestType": "FetchRepositoryHistoryRequest", + "responseType": "FetchRepositoryHistoryResponse", + "options": { + "(google.api.http).get": "/v1beta1/{name=projects/*/locations/*/repositories/*}:fetchHistory" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta1/{name=projects/*/locations/*/repositories/*}:fetchHistory" + } + } + ] + }, + "ComputeRepositoryAccessTokenStatus": { + "requestType": "ComputeRepositoryAccessTokenStatusRequest", + "responseType": "ComputeRepositoryAccessTokenStatusResponse", + "options": { + "(google.api.http).get": "/v1beta1/{name=projects/*/locations/*/repositories/*}:computeAccessTokenStatus" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta1/{name=projects/*/locations/*/repositories/*}:computeAccessTokenStatus" + } + } + ] + }, "FetchRemoteBranches": { "requestType": "FetchRemoteBranchesRequest", "responseType": "FetchRemoteBranchesResponse", @@ -2760,6 +2832,100 @@ } ] }, + "ListReleaseConfigs": { + "requestType": "ListReleaseConfigsRequest", + "responseType": "ListReleaseConfigsResponse", + "options": { + "(google.api.http).get": "/v1beta1/{parent=projects/*/locations/*/repositories/*}/releaseConfigs", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta1/{parent=projects/*/locations/*/repositories/*}/releaseConfigs" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "GetReleaseConfig": { + "requestType": "GetReleaseConfigRequest", + "responseType": "ReleaseConfig", + "options": { + "(google.api.http).get": "/v1beta1/{name=projects/*/locations/*/repositories/*/releaseConfigs/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta1/{name=projects/*/locations/*/repositories/*/releaseConfigs/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "CreateReleaseConfig": { + "requestType": "CreateReleaseConfigRequest", + "responseType": "ReleaseConfig", + "options": { + "(google.api.http).post": "/v1beta1/{parent=projects/*/locations/*/repositories/*}/releaseConfigs", + "(google.api.http).body": "release_config", + "(google.api.method_signature)": "parent,release_config,release_config_id" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta1/{parent=projects/*/locations/*/repositories/*}/releaseConfigs", + "body": "release_config" + } + }, + { + "(google.api.method_signature)": "parent,release_config,release_config_id" + } + ] + }, + "UpdateReleaseConfig": { + "requestType": "UpdateReleaseConfigRequest", + "responseType": "ReleaseConfig", + "options": { + "(google.api.http).patch": "/v1beta1/{release_config.name=projects/*/locations/*/repositories/*/releaseConfigs/*}", + "(google.api.http).body": "release_config", + "(google.api.method_signature)": "release_config,update_mask" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1beta1/{release_config.name=projects/*/locations/*/repositories/*/releaseConfigs/*}", + "body": "release_config" + } + }, + { + "(google.api.method_signature)": "release_config,update_mask" + } + ] + }, + "DeleteReleaseConfig": { + "requestType": "DeleteReleaseConfigRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).delete": "/v1beta1/{name=projects/*/locations/*/repositories/*/releaseConfigs/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1beta1/{name=projects/*/locations/*/repositories/*/releaseConfigs/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, "ListCompilationResults": { "requestType": "ListCompilationResultsRequest", "responseType": "ListCompilationResultsResponse", @@ -2830,6 +2996,100 @@ } ] }, + "ListWorkflowConfigs": { + "requestType": "ListWorkflowConfigsRequest", + "responseType": "ListWorkflowConfigsResponse", + "options": { + "(google.api.http).get": "/v1beta1/{parent=projects/*/locations/*/repositories/*}/workflowConfigs", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta1/{parent=projects/*/locations/*/repositories/*}/workflowConfigs" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "GetWorkflowConfig": { + "requestType": "GetWorkflowConfigRequest", + "responseType": "WorkflowConfig", + "options": { + "(google.api.http).get": "/v1beta1/{name=projects/*/locations/*/repositories/*/workflowConfigs/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta1/{name=projects/*/locations/*/repositories/*/workflowConfigs/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "CreateWorkflowConfig": { + "requestType": "CreateWorkflowConfigRequest", + "responseType": "WorkflowConfig", + "options": { + "(google.api.http).post": "/v1beta1/{parent=projects/*/locations/*/repositories/*}/workflowConfigs", + "(google.api.http).body": "workflow_config", + "(google.api.method_signature)": "parent,workflow_config,workflow_config_id" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta1/{parent=projects/*/locations/*/repositories/*}/workflowConfigs", + "body": "workflow_config" + } + }, + { + "(google.api.method_signature)": "parent,workflow_config,workflow_config_id" + } + ] + }, + "UpdateWorkflowConfig": { + "requestType": "UpdateWorkflowConfigRequest", + "responseType": "WorkflowConfig", + "options": { + "(google.api.http).patch": "/v1beta1/{workflow_config.name=projects/*/locations/*/repositories/*/workflowConfigs/*}", + "(google.api.http).body": "workflow_config", + "(google.api.method_signature)": "workflow_config,update_mask" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1beta1/{workflow_config.name=projects/*/locations/*/repositories/*/workflowConfigs/*}", + "body": "workflow_config" + } + }, + { + "(google.api.method_signature)": "workflow_config,update_mask" + } + ] + }, + "DeleteWorkflowConfig": { + "requestType": "DeleteWorkflowConfigRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).delete": "/v1beta1/{name=projects/*/locations/*/repositories/*/workflowConfigs/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1beta1/{name=projects/*/locations/*/repositories/*/workflowConfigs/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, "ListWorkflowInvocations": { "requestType": "ListWorkflowInvocationsRequest", "responseType": "ListWorkflowInvocationsResponse", @@ -2949,12 +3209,56 @@ "(google.api.field_behavior)": "OUTPUT_ONLY" } }, + "displayName": { + "type": "string", + "id": 8, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, "gitRemoteSettings": { "type": "GitRemoteSettings", "id": 2, "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "npmrcEnvironmentVariablesSecretVersion": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "(google.api.resource_reference).type": "secretmanager.googleapis.com/SecretVersion" + } + }, + "workspaceCompilationOverrides": { + "type": "WorkspaceCompilationOverrides", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "labels": { + "keyType": "string", + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "setAuthenticatedUserAdmin": { + "type": "bool", + "id": 9, + "options": { + "(google.api.field_behavior)": "INPUT_ONLY" + } + }, + "serviceAccount": { + "type": "string", + "id": 10, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } }, "nested": { @@ -2978,19 +3282,46 @@ "type": "string", "id": 3, "options": { - "(google.api.field_behavior)": "REQUIRED", + "(google.api.field_behavior)": "OPTIONAL", "(google.api.resource_reference).type": "secretmanager.googleapis.com/SecretVersion" } }, + "sshAuthenticationConfig": { + "type": "SshAuthenticationConfig", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, "tokenStatus": { "type": "TokenStatus", "id": 4, "options": { + "deprecated": true, "(google.api.field_behavior)": "OUTPUT_ONLY" } } }, "nested": { + "SshAuthenticationConfig": { + "fields": { + "userPrivateKeySecretVersion": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "secretmanager.googleapis.com/SecretVersion" + } + }, + "hostPublicKey": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "TokenStatus": { "values": { "TOKEN_STATUS_UNSPECIFIED": 0, @@ -3000,6 +3331,31 @@ } } } + }, + "WorkspaceCompilationOverrides": { + "fields": { + "defaultDatabase": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "schemaSuffix": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "tablePrefix": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } } } }, @@ -3133,7 +3489,7 @@ } } }, - "FetchRemoteBranchesRequest": { + "CommitRepositoryChangesRequest": { "fields": { "name": { "type": "string", @@ -3142,16 +3498,276 @@ "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).type": "dataform.googleapis.com/Repository" } - } - } - }, - "FetchRemoteBranchesResponse": { - "fields": { - "branches": { - "rule": "repeated", + }, + "commitMetadata": { + "type": "CommitMetadata", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "requiredHeadCommitSha": { "type": "string", - "id": 1 - } + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "fileOperations": { + "keyType": "string", + "type": "FileOperation", + "id": 3 + } + }, + "nested": { + "FileOperation": { + "oneofs": { + "operation": { + "oneof": [ + "writeFile", + "deleteFile" + ] + } + }, + "fields": { + "writeFile": { + "type": "WriteFile", + "id": 1 + }, + "deleteFile": { + "type": "DeleteFile", + "id": 2 + } + }, + "nested": { + "WriteFile": { + "fields": { + "contents": { + "type": "bytes", + "id": 1 + } + } + }, + "DeleteFile": { + "fields": {} + } + } + } + } + }, + "ReadRepositoryFileRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dataform.googleapis.com/Repository" + } + }, + "commitSha": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "path": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "ReadRepositoryFileResponse": { + "fields": { + "contents": { + "type": "bytes", + "id": 1 + } + } + }, + "QueryRepositoryDirectoryContentsRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dataform.googleapis.com/Repository" + } + }, + "commitSha": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "path": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "pageSize": { + "type": "int32", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "pageToken": { + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "QueryRepositoryDirectoryContentsResponse": { + "fields": { + "directoryEntries": { + "rule": "repeated", + "type": "DirectoryEntry", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "FetchRepositoryHistoryRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dataform.googleapis.com/Repository" + } + }, + "pageSize": { + "type": "int32", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "pageToken": { + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "FetchRepositoryHistoryResponse": { + "fields": { + "commits": { + "rule": "repeated", + "type": "CommitLogEntry", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "CommitLogEntry": { + "fields": { + "commitTime": { + "type": "google.protobuf.Timestamp", + "id": 1 + }, + "commitSha": { + "type": "string", + "id": 2 + }, + "author": { + "type": "CommitAuthor", + "id": 3 + }, + "commitMessage": { + "type": "string", + "id": 4 + } + } + }, + "CommitMetadata": { + "fields": { + "author": { + "type": "CommitAuthor", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "commitMessage": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "ComputeRepositoryAccessTokenStatusRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dataform.googleapis.com/Repository" + } + } + } + }, + "ComputeRepositoryAccessTokenStatusResponse": { + "fields": { + "tokenStatus": { + "type": "TokenStatus", + "id": 1 + } + }, + "nested": { + "TokenStatus": { + "values": { + "TOKEN_STATUS_UNSPECIFIED": 0, + "NOT_FOUND": 1, + "INVALID": 2, + "VALID": 3 + } + } + } + }, + "FetchRemoteBranchesRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dataform.googleapis.com/Repository" + } + } + } + }, + "FetchRemoteBranchesResponse": { + "fields": { + "branches": { + "rule": "repeated", + "type": "string", + "id": 1 + } } }, "Workspace": { @@ -3549,27 +4165,25 @@ "type": "string", "id": 2 } + } + }, + "DirectoryEntry": { + "oneofs": { + "entry": { + "oneof": [ + "file", + "directory" + ] + } }, - "nested": { - "DirectoryEntry": { - "oneofs": { - "entry": { - "oneof": [ - "file", - "directory" - ] - } - }, - "fields": { - "file": { - "type": "string", - "id": 1 - }, - "directory": { - "type": "string", - "id": 2 - } - } + "fields": { + "file": { + "type": "string", + "id": 1 + }, + "directory": { + "type": "string", + "id": 2 } } }, @@ -3762,16 +4376,217 @@ "InstallNpmPackagesResponse": { "fields": {} }, - "CompilationResult": { + "ReleaseConfig": { "options": { - "(google.api.resource).type": "dataform.googleapis.com/CompilationResult", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/repositories/{repository}/compilationResults/{compilation_result}" + "(google.api.resource).type": "dataform.googleapis.com/ReleaseConfig", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/repositories/{repository}/releaseConfigs/{release_config}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "gitCommitish": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "codeCompilationConfig": { + "type": "CodeCompilationConfig", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "cronSchedule": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "timeZone": { + "type": "string", + "id": 7, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "recentScheduledReleaseRecords": { + "rule": "repeated", + "type": "ScheduledReleaseRecord", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "releaseCompilationResult": { + "type": "string", + "id": 6, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "(google.api.resource_reference).type": "dataform.googleapis.com/CompilationResult" + } + } + }, + "nested": { + "ScheduledReleaseRecord": { + "oneofs": { + "result": { + "oneof": [ + "compilationResult", + "errorStatus" + ] + } + }, + "fields": { + "releaseTime": { + "type": "google.protobuf.Timestamp", + "id": 1 + }, + "compilationResult": { + "type": "string", + "id": 2, + "options": { + "(google.api.resource_reference).type": "dataform.googleapis.com/CompilationResult" + } + }, + "errorStatus": { + "type": "google.rpc.Status", + "id": 3 + } + } + } + } + }, + "ListReleaseConfigsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dataform.googleapis.com/Repository" + } + }, + "pageSize": { + "type": "int32", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "pageToken": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "ListReleaseConfigsResponse": { + "fields": { + "releaseConfigs": { + "rule": "repeated", + "type": "ReleaseConfig", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + }, + "unreachable": { + "rule": "repeated", + "type": "string", + "id": 3 + } + } + }, + "GetReleaseConfigRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dataform.googleapis.com/ReleaseConfig" + } + } + } + }, + "CreateReleaseConfigRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dataform.googleapis.com/Repository" + } + }, + "releaseConfig": { + "type": "ReleaseConfig", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "releaseConfigId": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "UpdateReleaseConfigRequest": { + "fields": { + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "releaseConfig": { + "type": "ReleaseConfig", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "DeleteReleaseConfigRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dataform.googleapis.com/ReleaseConfig" + } + } + } + }, + "CompilationResult": { + "options": { + "(google.api.resource).type": "dataform.googleapis.com/CompilationResult", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/repositories/{repository}/compilationResults/{compilation_result}" }, "oneofs": { "source": { "oneof": [ "gitCommitish", - "workspace" + "workspace", + "releaseConfig" ] } }, @@ -3798,6 +4613,14 @@ "(google.api.resource_reference).type": "dataform.googleapis.com/Workspace" } }, + "releaseConfig": { + "type": "string", + "id": 7, + "options": { + "(google.api.field_behavior)": "IMMUTABLE", + "(google.api.resource_reference).type": "dataform.googleapis.com/ReleaseConfig" + } + }, "codeCompilationConfig": { "type": "CodeCompilationConfig", "id": 4, @@ -3805,6 +4628,13 @@ "(google.api.field_behavior)": "IMMUTABLE" } }, + "resolvedGitCommitSha": { + "type": "string", + "id": 8, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, "dataformCoreVersion": { "type": "string", "id": 5, @@ -3822,67 +4652,6 @@ } }, "nested": { - "CodeCompilationConfig": { - "fields": { - "defaultDatabase": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - }, - "defaultSchema": { - "type": "string", - "id": 2, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - }, - "defaultLocation": { - "type": "string", - "id": 8, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - }, - "assertionSchema": { - "type": "string", - "id": 3, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - }, - "vars": { - "keyType": "string", - "type": "string", - "id": 4, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - }, - "databaseSuffix": { - "type": "string", - "id": 5, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - }, - "schemaSuffix": { - "type": "string", - "id": 6, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - }, - "tablePrefix": { - "type": "string", - "id": 7, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - } - } - }, "CompilationError": { "fields": { "message": { @@ -3917,6 +4686,67 @@ } } }, + "CodeCompilationConfig": { + "fields": { + "defaultDatabase": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "defaultSchema": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "defaultLocation": { + "type": "string", + "id": 8, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "assertionSchema": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "vars": { + "keyType": "string", + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "databaseSuffix": { + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "schemaSuffix": { + "type": "string", + "id": 6, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "tablePrefix": { + "type": "string", + "id": 7, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, "ListCompilationResultsRequest": { "fields": { "parent": { @@ -4227,54 +5057,229 @@ } } }, - "Assertion": { + "Assertion": { + "fields": { + "dependencyTargets": { + "rule": "repeated", + "type": "Target", + "id": 1 + }, + "parentAction": { + "type": "Target", + "id": 5 + }, + "disabled": { + "type": "bool", + "id": 2 + }, + "tags": { + "rule": "repeated", + "type": "string", + "id": 3 + }, + "selectQuery": { + "type": "string", + "id": 4 + }, + "relationDescriptor": { + "type": "RelationDescriptor", + "id": 6 + } + } + }, + "Declaration": { + "fields": { + "relationDescriptor": { + "type": "RelationDescriptor", + "id": 1 + } + } + } + } + }, + "QueryCompilationResultActionsRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dataform.googleapis.com/CompilationResult" + } + }, + "pageSize": { + "type": "int32", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "pageToken": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "filter": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "QueryCompilationResultActionsResponse": { + "fields": { + "compilationResultActions": { + "rule": "repeated", + "type": "CompilationResultAction", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "WorkflowConfig": { + "options": { + "(google.api.resource).type": "dataform.googleapis.com/WorkflowConfig", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/repositories/{repository}/workflowConfigs/{workflow_config}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "releaseConfig": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dataform.googleapis.com/ReleaseConfig" + } + }, + "invocationConfig": { + "type": "InvocationConfig", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "cronSchedule": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "timeZone": { + "type": "string", + "id": 7, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "recentScheduledExecutionRecords": { + "rule": "repeated", + "type": "ScheduledExecutionRecord", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + }, + "nested": { + "ScheduledExecutionRecord": { + "oneofs": { + "result": { + "oneof": [ + "workflowInvocation", + "errorStatus" + ] + } + }, "fields": { - "dependencyTargets": { - "rule": "repeated", - "type": "Target", + "executionTime": { + "type": "google.protobuf.Timestamp", "id": 1 }, - "parentAction": { - "type": "Target", - "id": 5 - }, - "disabled": { - "type": "bool", - "id": 2 - }, - "tags": { - "rule": "repeated", - "type": "string", - "id": 3 - }, - "selectQuery": { + "workflowInvocation": { "type": "string", - "id": 4 + "id": 2, + "options": { + "(google.api.resource_reference).type": "dataform.googleapis.com/WorkflowInvocation" + } }, - "relationDescriptor": { - "type": "RelationDescriptor", - "id": 6 + "errorStatus": { + "type": "google.rpc.Status", + "id": 3 } } + } + } + }, + "InvocationConfig": { + "fields": { + "includedTargets": { + "rule": "repeated", + "type": "Target", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } }, - "Declaration": { - "fields": { - "relationDescriptor": { - "type": "RelationDescriptor", - "id": 1 - } + "includedTags": { + "rule": "repeated", + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "transitiveDependenciesIncluded": { + "type": "bool", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "transitiveDependentsIncluded": { + "type": "bool", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "fullyRefreshIncrementalTablesEnabled": { + "type": "bool", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "serviceAccount": { + "type": "string", + "id": 6, + "options": { + "(google.api.field_behavior)": "OPTIONAL" } } } }, - "QueryCompilationResultActionsRequest": { + "ListWorkflowConfigsRequest": { "fields": { - "name": { + "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dataform.googleapis.com/CompilationResult" + "(google.api.resource_reference).type": "dataform.googleapis.com/Repository" } }, "pageSize": { @@ -4290,26 +5295,92 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } - }, - "filter": { - "type": "string", - "id": 4, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } } } }, - "QueryCompilationResultActionsResponse": { + "ListWorkflowConfigsResponse": { "fields": { - "compilationResultActions": { + "workflowConfigs": { "rule": "repeated", - "type": "CompilationResultAction", + "type": "WorkflowConfig", "id": 1 }, "nextPageToken": { "type": "string", "id": 2 + }, + "unreachable": { + "rule": "repeated", + "type": "string", + "id": 3 + } + } + }, + "GetWorkflowConfigRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dataform.googleapis.com/WorkflowConfig" + } + } + } + }, + "CreateWorkflowConfigRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dataform.googleapis.com/Repository" + } + }, + "workflowConfig": { + "type": "WorkflowConfig", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "workflowConfigId": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "UpdateWorkflowConfigRequest": { + "fields": { + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "workflowConfig": { + "type": "WorkflowConfig", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "DeleteWorkflowConfigRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dataform.googleapis.com/WorkflowConfig" + } } } }, @@ -4318,6 +5389,14 @@ "(google.api.resource).type": "dataform.googleapis.com/WorkflowInvocation", "(google.api.resource).pattern": "projects/{project}/locations/{location}/repositories/{repository}/workflowInvocations/{workflow_invocation}" }, + "oneofs": { + "compilationSource": { + "oneof": [ + "compilationResult", + "workflowConfig" + ] + } + }, "fields": { "name": { "type": "string", @@ -4334,6 +5413,14 @@ "(google.api.resource_reference).type": "dataform.googleapis.com/CompilationResult" } }, + "workflowConfig": { + "type": "string", + "id": 6, + "options": { + "(google.api.field_behavior)": "IMMUTABLE", + "(google.api.resource_reference).type": "dataform.googleapis.com/WorkflowConfig" + } + }, "invocationConfig": { "type": "InvocationConfig", "id": 3, @@ -4357,47 +5444,6 @@ } }, "nested": { - "InvocationConfig": { - "fields": { - "includedTargets": { - "rule": "repeated", - "type": "Target", - "id": 1, - "options": { - "(google.api.field_behavior)": "IMMUTABLE" - } - }, - "includedTags": { - "rule": "repeated", - "type": "string", - "id": 2, - "options": { - "(google.api.field_behavior)": "IMMUTABLE" - } - }, - "transitiveDependenciesIncluded": { - "type": "bool", - "id": 3, - "options": { - "(google.api.field_behavior)": "IMMUTABLE" - } - }, - "transitiveDependentsIncluded": { - "type": "bool", - "id": 4, - "options": { - "(google.api.field_behavior)": "IMMUTABLE" - } - }, - "fullyRefreshIncrementalTablesEnabled": { - "type": "bool", - "id": 5, - "options": { - "(google.api.field_behavior)": "IMMUTABLE" - } - } - } - }, "State": { "values": { "STATE_UNSPECIFIED": 0, @@ -4433,6 +5479,20 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "orderBy": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "filter": { + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, @@ -6092,6 +7152,18 @@ "id": 2 } } + }, + "Any": { + "fields": { + "type_url": { + "type": "string", + "id": 1 + }, + "value": { + "type": "bytes", + "id": 2 + } + } } } }, @@ -6118,6 +7190,35 @@ } } } + }, + "rpc": { + "options": { + "cc_enable_arenas": true, + "go_package": "google.golang.org/genproto/googleapis/rpc/status;status", + "java_multiple_files": true, + "java_outer_classname": "StatusProto", + "java_package": "com.google.rpc", + "objc_class_prefix": "RPC" + }, + "nested": { + "Status": { + "fields": { + "code": { + "type": "int32", + "id": 1 + }, + "message": { + "type": "string", + "id": 2 + }, + "details": { + "rule": "repeated", + "type": "google.protobuf.Any", + "id": 3 + } + } + } + } } } } diff --git a/packages/google-cloud-dataform/samples/README.md b/packages/google-cloud-dataform/samples/README.md index a1b05e0387e..6ef3217c1e3 100644 --- a/packages/google-cloud-dataform/samples/README.md +++ b/packages/google-cloud-dataform/samples/README.md @@ -49,25 +49,36 @@ * [Dataform.update_repository](#dataform.update_repository) * [Dataform.write_file](#dataform.write_file) * [Dataform.cancel_workflow_invocation](#dataform.cancel_workflow_invocation) + * [Dataform.commit_repository_changes](#dataform.commit_repository_changes) * [Dataform.commit_workspace_changes](#dataform.commit_workspace_changes) + * [Dataform.compute_repository_access_token_status](#dataform.compute_repository_access_token_status) * [Dataform.create_compilation_result](#dataform.create_compilation_result) + * [Dataform.create_release_config](#dataform.create_release_config) * [Dataform.create_repository](#dataform.create_repository) + * [Dataform.create_workflow_config](#dataform.create_workflow_config) * [Dataform.create_workflow_invocation](#dataform.create_workflow_invocation) * [Dataform.create_workspace](#dataform.create_workspace) + * [Dataform.delete_release_config](#dataform.delete_release_config) * [Dataform.delete_repository](#dataform.delete_repository) + * [Dataform.delete_workflow_config](#dataform.delete_workflow_config) * [Dataform.delete_workflow_invocation](#dataform.delete_workflow_invocation) * [Dataform.delete_workspace](#dataform.delete_workspace) * [Dataform.fetch_file_diff](#dataform.fetch_file_diff) * [Dataform.fetch_file_git_statuses](#dataform.fetch_file_git_statuses) * [Dataform.fetch_git_ahead_behind](#dataform.fetch_git_ahead_behind) * [Dataform.fetch_remote_branches](#dataform.fetch_remote_branches) + * [Dataform.fetch_repository_history](#dataform.fetch_repository_history) * [Dataform.get_compilation_result](#dataform.get_compilation_result) + * [Dataform.get_release_config](#dataform.get_release_config) * [Dataform.get_repository](#dataform.get_repository) + * [Dataform.get_workflow_config](#dataform.get_workflow_config) * [Dataform.get_workflow_invocation](#dataform.get_workflow_invocation) * [Dataform.get_workspace](#dataform.get_workspace) * [Dataform.install_npm_packages](#dataform.install_npm_packages) * [Dataform.list_compilation_results](#dataform.list_compilation_results) + * [Dataform.list_release_configs](#dataform.list_release_configs) * [Dataform.list_repositories](#dataform.list_repositories) + * [Dataform.list_workflow_configs](#dataform.list_workflow_configs) * [Dataform.list_workflow_invocations](#dataform.list_workflow_invocations) * [Dataform.list_workspaces](#dataform.list_workspaces) * [Dataform.make_directory](#dataform.make_directory) @@ -77,12 +88,16 @@ * [Dataform.push_git_commits](#dataform.push_git_commits) * [Dataform.query_compilation_result_actions](#dataform.query_compilation_result_actions) * [Dataform.query_directory_contents](#dataform.query_directory_contents) + * [Dataform.query_repository_directory_contents](#dataform.query_repository_directory_contents) * [Dataform.query_workflow_invocation_actions](#dataform.query_workflow_invocation_actions) * [Dataform.read_file](#dataform.read_file) + * [Dataform.read_repository_file](#dataform.read_repository_file) * [Dataform.remove_directory](#dataform.remove_directory) * [Dataform.remove_file](#dataform.remove_file) * [Dataform.reset_workspace_changes](#dataform.reset_workspace_changes) + * [Dataform.update_release_config](#dataform.update_release_config) * [Dataform.update_repository](#dataform.update_repository) + * [Dataform.update_workflow_config](#dataform.update_workflow_config) * [Dataform.write_file](#dataform.write_file) * [Quickstart](#quickstart) @@ -730,6 +745,23 @@ __Usage:__ +### Dataform.commit_repository_changes + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.commit_repository_changes.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.commit_repository_changes.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-dataform/samples/generated/v1beta1/dataform.commit_repository_changes.js` + + +----- + + + + ### Dataform.commit_workspace_changes View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.commit_workspace_changes.js). @@ -747,6 +779,23 @@ __Usage:__ +### Dataform.compute_repository_access_token_status + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.compute_repository_access_token_status.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.compute_repository_access_token_status.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-dataform/samples/generated/v1beta1/dataform.compute_repository_access_token_status.js` + + +----- + + + + ### Dataform.create_compilation_result View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.create_compilation_result.js). @@ -764,6 +813,23 @@ __Usage:__ +### Dataform.create_release_config + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.create_release_config.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.create_release_config.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-dataform/samples/generated/v1beta1/dataform.create_release_config.js` + + +----- + + + + ### Dataform.create_repository View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.create_repository.js). @@ -781,6 +847,23 @@ __Usage:__ +### Dataform.create_workflow_config + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.create_workflow_config.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.create_workflow_config.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-dataform/samples/generated/v1beta1/dataform.create_workflow_config.js` + + +----- + + + + ### Dataform.create_workflow_invocation View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.create_workflow_invocation.js). @@ -815,6 +898,23 @@ __Usage:__ +### Dataform.delete_release_config + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.delete_release_config.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.delete_release_config.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-dataform/samples/generated/v1beta1/dataform.delete_release_config.js` + + +----- + + + + ### Dataform.delete_repository View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.delete_repository.js). @@ -832,6 +932,23 @@ __Usage:__ +### Dataform.delete_workflow_config + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.delete_workflow_config.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.delete_workflow_config.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-dataform/samples/generated/v1beta1/dataform.delete_workflow_config.js` + + +----- + + + + ### Dataform.delete_workflow_invocation View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.delete_workflow_invocation.js). @@ -934,6 +1051,23 @@ __Usage:__ +### Dataform.fetch_repository_history + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.fetch_repository_history.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.fetch_repository_history.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-dataform/samples/generated/v1beta1/dataform.fetch_repository_history.js` + + +----- + + + + ### Dataform.get_compilation_result View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.get_compilation_result.js). @@ -951,6 +1085,23 @@ __Usage:__ +### Dataform.get_release_config + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.get_release_config.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.get_release_config.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-dataform/samples/generated/v1beta1/dataform.get_release_config.js` + + +----- + + + + ### Dataform.get_repository View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.get_repository.js). @@ -968,6 +1119,23 @@ __Usage:__ +### Dataform.get_workflow_config + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.get_workflow_config.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.get_workflow_config.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-dataform/samples/generated/v1beta1/dataform.get_workflow_config.js` + + +----- + + + + ### Dataform.get_workflow_invocation View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.get_workflow_invocation.js). @@ -1036,6 +1204,23 @@ __Usage:__ +### Dataform.list_release_configs + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.list_release_configs.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.list_release_configs.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-dataform/samples/generated/v1beta1/dataform.list_release_configs.js` + + +----- + + + + ### Dataform.list_repositories View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.list_repositories.js). @@ -1053,6 +1238,23 @@ __Usage:__ +### Dataform.list_workflow_configs + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.list_workflow_configs.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.list_workflow_configs.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-dataform/samples/generated/v1beta1/dataform.list_workflow_configs.js` + + +----- + + + + ### Dataform.list_workflow_invocations View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.list_workflow_invocations.js). @@ -1206,6 +1408,23 @@ __Usage:__ +### Dataform.query_repository_directory_contents + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.query_repository_directory_contents.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.query_repository_directory_contents.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-dataform/samples/generated/v1beta1/dataform.query_repository_directory_contents.js` + + +----- + + + + ### Dataform.query_workflow_invocation_actions View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.query_workflow_invocation_actions.js). @@ -1240,6 +1459,23 @@ __Usage:__ +### Dataform.read_repository_file + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.read_repository_file.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.read_repository_file.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-dataform/samples/generated/v1beta1/dataform.read_repository_file.js` + + +----- + + + + ### Dataform.remove_directory View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.remove_directory.js). @@ -1291,6 +1527,23 @@ __Usage:__ +### Dataform.update_release_config + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.update_release_config.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.update_release_config.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-dataform/samples/generated/v1beta1/dataform.update_release_config.js` + + +----- + + + + ### Dataform.update_repository View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.update_repository.js). @@ -1308,6 +1561,23 @@ __Usage:__ +### Dataform.update_workflow_config + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.update_workflow_config.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dataform/samples/generated/v1beta1/dataform.update_workflow_config.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-dataform/samples/generated/v1beta1/dataform.update_workflow_config.js` + + +----- + + + + ### Dataform.write_file View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.write_file.js). diff --git a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.commit_repository_changes.js b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.commit_repository_changes.js new file mode 100644 index 00000000000..0f6ee459d61 --- /dev/null +++ b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.commit_repository_changes.js @@ -0,0 +1,77 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name, commitMetadata) { + // [START dataform_v1beta1_generated_Dataform_CommitRepositoryChanges_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The repository's name. + */ + // const name = 'abc123' + /** + * Required. The changes to commit to the repository. + */ + // const commitMetadata = {} + /** + * Optional. The commit SHA which must be the repository's current HEAD before + * applying this commit; otherwise this request will fail. If unset, no + * validation on the current HEAD commit SHA is performed. + */ + // const requiredHeadCommitSha = 'abc123' + /** + * A map to the path of the file to the operation. The path is the full file + * path including filename, from repository root. + */ + // const fileOperations = [1,2,3,4] + + // Imports the Dataform library + const {DataformClient} = require('@google-cloud/dataform').v1beta1; + + // Instantiates a client + const dataformClient = new DataformClient(); + + async function callCommitRepositoryChanges() { + // Construct request + const request = { + name, + commitMetadata, + }; + + // Run request + const response = await dataformClient.commitRepositoryChanges(request); + console.log(response); + } + + callCommitRepositoryChanges(); + // [END dataform_v1beta1_generated_Dataform_CommitRepositoryChanges_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.commit_workspace_changes.js b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.commit_workspace_changes.js index 4e9fa746068..9e94b7f3528 100644 --- a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.commit_workspace_changes.js +++ b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.commit_workspace_changes.js @@ -41,8 +41,8 @@ function main(name, author) { */ // const commitMessage = 'abc123' /** - * Optional. Full file paths to commit including filename, rooted at workspace root. If - * left empty, all files will be committed. + * Optional. Full file paths to commit including filename, rooted at workspace + * root. If left empty, all files will be committed. */ // const paths = ['abc','def'] diff --git a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.compute_repository_access_token_status.js b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.compute_repository_access_token_status.js new file mode 100644 index 00000000000..2269b538b1e --- /dev/null +++ b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.compute_repository_access_token_status.js @@ -0,0 +1,61 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START dataform_v1beta1_generated_Dataform_ComputeRepositoryAccessTokenStatus_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The repository's name. + */ + // const name = 'abc123' + + // Imports the Dataform library + const {DataformClient} = require('@google-cloud/dataform').v1beta1; + + // Instantiates a client + const dataformClient = new DataformClient(); + + async function callComputeRepositoryAccessTokenStatus() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await dataformClient.computeRepositoryAccessTokenStatus(request); + console.log(response); + } + + callComputeRepositoryAccessTokenStatus(); + // [END dataform_v1beta1_generated_Dataform_ComputeRepositoryAccessTokenStatus_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.create_compilation_result.js b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.create_compilation_result.js index feb504bef02..23c2aafbb35 100644 --- a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.create_compilation_result.js +++ b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.create_compilation_result.js @@ -29,8 +29,8 @@ function main(parent, compilationResult) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. The repository in which to create the compilation result. Must be in the - * format `projects/* /locations/* /repositories/*`. + * Required. The repository in which to create the compilation result. Must be + * in the format `projects/* /locations/* /repositories/*`. */ // const parent = 'abc123' /** diff --git a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.create_release_config.js b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.create_release_config.js new file mode 100644 index 00000000000..16c7f4eee73 --- /dev/null +++ b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.create_release_config.js @@ -0,0 +1,73 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent, releaseConfig, releaseConfigId) { + // [START dataform_v1beta1_generated_Dataform_CreateReleaseConfig_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The repository in which to create the release config. Must be in + * the format `projects/* /locations/* /repositories/*`. + */ + // const parent = 'abc123' + /** + * Required. The release config to create. + */ + // const releaseConfig = {} + /** + * Required. The ID to use for the release config, which will become the final + * component of the release config's resource name. + */ + // const releaseConfigId = 'abc123' + + // Imports the Dataform library + const {DataformClient} = require('@google-cloud/dataform').v1beta1; + + // Instantiates a client + const dataformClient = new DataformClient(); + + async function callCreateReleaseConfig() { + // Construct request + const request = { + parent, + releaseConfig, + releaseConfigId, + }; + + // Run request + const response = await dataformClient.createReleaseConfig(request); + console.log(response); + } + + callCreateReleaseConfig(); + // [END dataform_v1beta1_generated_Dataform_CreateReleaseConfig_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.create_repository.js b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.create_repository.js index 4599641b7f0..bff4ce2dabe 100644 --- a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.create_repository.js +++ b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.create_repository.js @@ -29,8 +29,8 @@ function main(parent, repository, repositoryId) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. The location in which to create the repository. Must be in the format - * `projects/* /locations/*`. + * Required. The location in which to create the repository. Must be in the + * format `projects/* /locations/*`. */ // const parent = 'abc123' /** @@ -38,8 +38,8 @@ function main(parent, repository, repositoryId) { */ // const repository = {} /** - * Required. The ID to use for the repository, which will become the final component of - * the repository's resource name. + * Required. The ID to use for the repository, which will become the final + * component of the repository's resource name. */ // const repositoryId = 'abc123' diff --git a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.create_workflow_config.js b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.create_workflow_config.js new file mode 100644 index 00000000000..160f357513e --- /dev/null +++ b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.create_workflow_config.js @@ -0,0 +1,73 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent, workflowConfig, workflowConfigId) { + // [START dataform_v1beta1_generated_Dataform_CreateWorkflowConfig_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The repository in which to create the workflow config. Must be in + * the format `projects/* /locations/* /repositories/*`. + */ + // const parent = 'abc123' + /** + * Required. The workflow config to create. + */ + // const workflowConfig = {} + /** + * Required. The ID to use for the workflow config, which will become the + * final component of the workflow config's resource name. + */ + // const workflowConfigId = 'abc123' + + // Imports the Dataform library + const {DataformClient} = require('@google-cloud/dataform').v1beta1; + + // Instantiates a client + const dataformClient = new DataformClient(); + + async function callCreateWorkflowConfig() { + // Construct request + const request = { + parent, + workflowConfig, + workflowConfigId, + }; + + // Run request + const response = await dataformClient.createWorkflowConfig(request); + console.log(response); + } + + callCreateWorkflowConfig(); + // [END dataform_v1beta1_generated_Dataform_CreateWorkflowConfig_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.create_workflow_invocation.js b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.create_workflow_invocation.js index 14374f0a6f1..6a922c7b97d 100644 --- a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.create_workflow_invocation.js +++ b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.create_workflow_invocation.js @@ -29,8 +29,8 @@ function main(parent, workflowInvocation) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. The repository in which to create the workflow invocation. Must be in the - * format `projects/* /locations/* /repositories/*`. + * Required. The repository in which to create the workflow invocation. Must + * be in the format `projects/* /locations/* /repositories/*`. */ // const parent = 'abc123' /** diff --git a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.create_workspace.js b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.create_workspace.js index f10789a32ad..d9a788be87f 100644 --- a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.create_workspace.js +++ b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.create_workspace.js @@ -29,8 +29,8 @@ function main(parent, workspace, workspaceId) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. The repository in which to create the workspace. Must be in the format - * `projects/* /locations/* /repositories/*`. + * Required. The repository in which to create the workspace. Must be in the + * format `projects/* /locations/* /repositories/*`. */ // const parent = 'abc123' /** @@ -38,8 +38,8 @@ function main(parent, workspace, workspaceId) { */ // const workspace = {} /** - * Required. The ID to use for the workspace, which will become the final component of - * the workspace's resource name. + * Required. The ID to use for the workspace, which will become the final + * component of the workspace's resource name. */ // const workspaceId = 'abc123' diff --git a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.delete_release_config.js b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.delete_release_config.js new file mode 100644 index 00000000000..b2993fa3f47 --- /dev/null +++ b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.delete_release_config.js @@ -0,0 +1,61 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START dataform_v1beta1_generated_Dataform_DeleteReleaseConfig_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The release config's name. + */ + // const name = 'abc123' + + // Imports the Dataform library + const {DataformClient} = require('@google-cloud/dataform').v1beta1; + + // Instantiates a client + const dataformClient = new DataformClient(); + + async function callDeleteReleaseConfig() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await dataformClient.deleteReleaseConfig(request); + console.log(response); + } + + callDeleteReleaseConfig(); + // [END dataform_v1beta1_generated_Dataform_DeleteReleaseConfig_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.delete_workflow_config.js b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.delete_workflow_config.js new file mode 100644 index 00000000000..99c9ae288be --- /dev/null +++ b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.delete_workflow_config.js @@ -0,0 +1,61 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START dataform_v1beta1_generated_Dataform_DeleteWorkflowConfig_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The workflow config's name. + */ + // const name = 'abc123' + + // Imports the Dataform library + const {DataformClient} = require('@google-cloud/dataform').v1beta1; + + // Instantiates a client + const dataformClient = new DataformClient(); + + async function callDeleteWorkflowConfig() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await dataformClient.deleteWorkflowConfig(request); + console.log(response); + } + + callDeleteWorkflowConfig(); + // [END dataform_v1beta1_generated_Dataform_DeleteWorkflowConfig_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.fetch_file_diff.js b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.fetch_file_diff.js index 392a1bd31ec..b2a83a403f9 100644 --- a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.fetch_file_diff.js +++ b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.fetch_file_diff.js @@ -33,7 +33,8 @@ function main(workspace, path) { */ // const workspace = 'abc123' /** - * Required. The file's full path including filename, relative to the workspace root. + * Required. The file's full path including filename, relative to the + * workspace root. */ // const path = 'abc123' diff --git a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.fetch_git_ahead_behind.js b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.fetch_git_ahead_behind.js index afa36f5e907..cecb7ca30f1 100644 --- a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.fetch_git_ahead_behind.js +++ b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.fetch_git_ahead_behind.js @@ -33,9 +33,9 @@ function main(name) { */ // const name = 'abc123' /** - * Optional. The name of the branch in the Git remote against which this workspace - * should be compared. If left unset, the repository's default branch name - * will be used. + * Optional. The name of the branch in the Git remote against which this + * workspace should be compared. If left unset, the repository's default + * branch name will be used. */ // const remoteBranch = 'abc123' diff --git a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.fetch_repository_history.js b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.fetch_repository_history.js new file mode 100644 index 00000000000..e6837fc883a --- /dev/null +++ b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.fetch_repository_history.js @@ -0,0 +1,76 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START dataform_v1beta1_generated_Dataform_FetchRepositoryHistory_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The repository's name. + */ + // const name = 'abc123' + /** + * Optional. Maximum number of commits to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + */ + // const pageSize = 1234 + /** + * Optional. Page token received from a previous `FetchRepositoryHistory` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `FetchRepositoryHistory` + * must match the call that provided the page token. + */ + // const pageToken = 'abc123' + + // Imports the Dataform library + const {DataformClient} = require('@google-cloud/dataform').v1beta1; + + // Instantiates a client + const dataformClient = new DataformClient(); + + async function callFetchRepositoryHistory() { + // Construct request + const request = { + name, + }; + + // Run request + const iterable = await dataformClient.fetchRepositoryHistoryAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callFetchRepositoryHistory(); + // [END dataform_v1beta1_generated_Dataform_FetchRepositoryHistory_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.get_release_config.js b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.get_release_config.js new file mode 100644 index 00000000000..b6ca00ad7e0 --- /dev/null +++ b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.get_release_config.js @@ -0,0 +1,61 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START dataform_v1beta1_generated_Dataform_GetReleaseConfig_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The release config's name. + */ + // const name = 'abc123' + + // Imports the Dataform library + const {DataformClient} = require('@google-cloud/dataform').v1beta1; + + // Instantiates a client + const dataformClient = new DataformClient(); + + async function callGetReleaseConfig() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await dataformClient.getReleaseConfig(request); + console.log(response); + } + + callGetReleaseConfig(); + // [END dataform_v1beta1_generated_Dataform_GetReleaseConfig_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.get_workflow_config.js b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.get_workflow_config.js new file mode 100644 index 00000000000..1d02375817b --- /dev/null +++ b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.get_workflow_config.js @@ -0,0 +1,61 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START dataform_v1beta1_generated_Dataform_GetWorkflowConfig_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The workflow config's name. + */ + // const name = 'abc123' + + // Imports the Dataform library + const {DataformClient} = require('@google-cloud/dataform').v1beta1; + + // Instantiates a client + const dataformClient = new DataformClient(); + + async function callGetWorkflowConfig() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await dataformClient.getWorkflowConfig(request); + console.log(response); + } + + callGetWorkflowConfig(); + // [END dataform_v1beta1_generated_Dataform_GetWorkflowConfig_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.list_compilation_results.js b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.list_compilation_results.js index b79a68ddf5e..8b4bf95c7ff 100644 --- a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.list_compilation_results.js +++ b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.list_compilation_results.js @@ -29,19 +29,19 @@ function main(parent) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. The repository in which to list compilation results. Must be in the - * format `projects/* /locations/* /repositories/*`. + * Required. The repository in which to list compilation results. Must be in + * the format `projects/* /locations/* /repositories/*`. */ // const parent = 'abc123' /** - * Optional. Maximum number of compilation results to return. The server may return - * fewer items than requested. If unspecified, the server will pick an + * Optional. Maximum number of compilation results to return. The server may + * return fewer items than requested. If unspecified, the server will pick an * appropriate default. */ // const pageSize = 1234 /** - * Optional. Page token received from a previous `ListCompilationResults` call. - * Provide this to retrieve the subsequent page. + * Optional. Page token received from a previous `ListCompilationResults` + * call. Provide this to retrieve the subsequent page. * When paginating, all other parameters provided to `ListCompilationResults` * must match the call that provided the page token. */ diff --git a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.list_release_configs.js b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.list_release_configs.js new file mode 100644 index 00000000000..0167ee24b90 --- /dev/null +++ b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.list_release_configs.js @@ -0,0 +1,77 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent) { + // [START dataform_v1beta1_generated_Dataform_ListReleaseConfigs_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The repository in which to list release configs. Must be in the + * format `projects/* /locations/* /repositories/*`. + */ + // const parent = 'abc123' + /** + * Optional. Maximum number of release configs to return. The server may + * return fewer items than requested. If unspecified, the server will pick an + * appropriate default. + */ + // const pageSize = 1234 + /** + * Optional. Page token received from a previous `ListReleaseConfigs` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListReleaseConfigs` + * must match the call that provided the page token. + */ + // const pageToken = 'abc123' + + // Imports the Dataform library + const {DataformClient} = require('@google-cloud/dataform').v1beta1; + + // Instantiates a client + const dataformClient = new DataformClient(); + + async function callListReleaseConfigs() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await dataformClient.listReleaseConfigsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListReleaseConfigs(); + // [END dataform_v1beta1_generated_Dataform_ListReleaseConfigs_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.list_repositories.js b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.list_repositories.js index a1c97348910..0237359e18c 100644 --- a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.list_repositories.js +++ b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.list_repositories.js @@ -34,9 +34,9 @@ function main(parent) { */ // const parent = 'abc123' /** - * Optional. Maximum number of repositories to return. The server may return fewer - * items than requested. If unspecified, the server will pick an appropriate - * default. + * Optional. Maximum number of repositories to return. The server may return + * fewer items than requested. If unspecified, the server will pick an + * appropriate default. */ // const pageSize = 1234 /** @@ -47,9 +47,9 @@ function main(parent) { */ // const pageToken = 'abc123' /** - * Optional. This field only supports ordering by `name`. If unspecified, the server - * will choose the ordering. If specified, the default order is ascending for - * the `name` field. + * Optional. This field only supports ordering by `name`. If unspecified, the + * server will choose the ordering. If specified, the default order is + * ascending for the `name` field. */ // const orderBy = 'abc123' /** diff --git a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.list_workflow_configs.js b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.list_workflow_configs.js new file mode 100644 index 00000000000..ac35d98b080 --- /dev/null +++ b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.list_workflow_configs.js @@ -0,0 +1,77 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent) { + // [START dataform_v1beta1_generated_Dataform_ListWorkflowConfigs_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The repository in which to list workflow configs. Must be in the + * format `projects/* /locations/* /repositories/*`. + */ + // const parent = 'abc123' + /** + * Optional. Maximum number of workflow configs to return. The server may + * return fewer items than requested. If unspecified, the server will pick an + * appropriate default. + */ + // const pageSize = 1234 + /** + * Optional. Page token received from a previous `ListWorkflowConfigs` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListWorkflowConfigs` + * must match the call that provided the page token. + */ + // const pageToken = 'abc123' + + // Imports the Dataform library + const {DataformClient} = require('@google-cloud/dataform').v1beta1; + + // Instantiates a client + const dataformClient = new DataformClient(); + + async function callListWorkflowConfigs() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await dataformClient.listWorkflowConfigsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListWorkflowConfigs(); + // [END dataform_v1beta1_generated_Dataform_ListWorkflowConfigs_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.list_workflow_invocations.js b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.list_workflow_invocations.js index c59f981acfc..0c5edf34d9b 100644 --- a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.list_workflow_invocations.js +++ b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.list_workflow_invocations.js @@ -29,23 +29,33 @@ function main(parent) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. The parent resource of the WorkflowInvocation type. Must be in the - * format `projects/* /locations/* /repositories/*`. + * Required. The parent resource of the WorkflowInvocation type. Must be in + * the format `projects/* /locations/* /repositories/*`. */ // const parent = 'abc123' /** - * Optional. Maximum number of workflow invocations to return. The server may return - * fewer items than requested. If unspecified, the server will pick an + * Optional. Maximum number of workflow invocations to return. The server may + * return fewer items than requested. If unspecified, the server will pick an * appropriate default. */ // const pageSize = 1234 /** - * Optional. Page token received from a previous `ListWorkflowInvocations` call. - * Provide this to retrieve the subsequent page. + * Optional. Page token received from a previous `ListWorkflowInvocations` + * call. Provide this to retrieve the subsequent page. * When paginating, all other parameters provided to `ListWorkflowInvocations` * must match the call that provided the page token. */ // const pageToken = 'abc123' + /** + * Optional. This field only supports ordering by `name`. If unspecified, the + * server will choose the ordering. If specified, the default order is + * ascending for the `name` field. + */ + // const orderBy = 'abc123' + /** + * Optional. Filter for the returned list. + */ + // const filter = 'abc123' // Imports the Dataform library const {DataformClient} = require('@google-cloud/dataform').v1beta1; diff --git a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.list_workspaces.js b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.list_workspaces.js index c1f6373caf9..fec25561215 100644 --- a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.list_workspaces.js +++ b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.list_workspaces.js @@ -34,9 +34,9 @@ function main(parent) { */ // const parent = 'abc123' /** - * Optional. Maximum number of workspaces to return. The server may return fewer - * items than requested. If unspecified, the server will pick an appropriate - * default. + * Optional. Maximum number of workspaces to return. The server may return + * fewer items than requested. If unspecified, the server will pick an + * appropriate default. */ // const pageSize = 1234 /** @@ -47,9 +47,9 @@ function main(parent) { */ // const pageToken = 'abc123' /** - * Optional. This field only supports ordering by `name`. If unspecified, the server - * will choose the ordering. If specified, the default order is ascending for - * the `name` field. + * Optional. This field only supports ordering by `name`. If unspecified, the + * server will choose the ordering. If specified, the default order is + * ascending for the `name` field. */ // const orderBy = 'abc123' /** diff --git a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.make_directory.js b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.make_directory.js index 796a2f4c337..18b81f9c8c6 100644 --- a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.make_directory.js +++ b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.make_directory.js @@ -33,8 +33,8 @@ function main(workspace, path) { */ // const workspace = 'abc123' /** - * Required. The directory's full path including directory name, relative to the - * workspace root. + * Required. The directory's full path including directory name, relative to + * the workspace root. */ // const path = 'abc123' diff --git a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.move_directory.js b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.move_directory.js index 32b4a6c46f5..6eb7200af7e 100644 --- a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.move_directory.js +++ b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.move_directory.js @@ -33,13 +33,13 @@ function main(workspace, path, newPath) { */ // const workspace = 'abc123' /** - * Required. The directory's full path including directory name, relative to the - * workspace root. + * Required. The directory's full path including directory name, relative to + * the workspace root. */ // const path = 'abc123' /** - * Required. The new path for the directory including directory name, rooted at - * workspace root. + * Required. The new path for the directory including directory name, rooted + * at workspace root. */ // const newPath = 'abc123' diff --git a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.move_file.js b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.move_file.js index eff15304ee6..e3b12482c92 100644 --- a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.move_file.js +++ b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.move_file.js @@ -33,11 +33,13 @@ function main(workspace, path, newPath) { */ // const workspace = 'abc123' /** - * Required. The file's full path including filename, relative to the workspace root. + * Required. The file's full path including filename, relative to the + * workspace root. */ // const path = 'abc123' /** - * Required. The file's new path including filename, relative to the workspace root. + * Required. The file's new path including filename, relative to the workspace + * root. */ // const newPath = 'abc123' diff --git a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.pull_git_commits.js b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.pull_git_commits.js index e5d141fc50b..76bdcc4a7d8 100644 --- a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.pull_git_commits.js +++ b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.pull_git_commits.js @@ -33,13 +33,13 @@ function main(name, author) { */ // const name = 'abc123' /** - * Optional. The name of the branch in the Git remote from which to pull commits. - * If left unset, the repository's default branch name will be used. + * Optional. The name of the branch in the Git remote from which to pull + * commits. If left unset, the repository's default branch name will be used. */ // const remoteBranch = 'abc123' /** - * Required. The author of any merge commit which may be created as a result of merging - * fetched Git commits into this workspace. + * Required. The author of any merge commit which may be created as a result + * of merging fetched Git commits into this workspace. */ // const author = {} diff --git a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.push_git_commits.js b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.push_git_commits.js index 985f1257ae3..0d92b6d21e6 100644 --- a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.push_git_commits.js +++ b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.push_git_commits.js @@ -33,8 +33,9 @@ function main(name) { */ // const name = 'abc123' /** - * Optional. The name of the branch in the Git remote to which commits should be pushed. - * If left unset, the repository's default branch name will be used. + * Optional. The name of the branch in the Git remote to which commits should + * be pushed. If left unset, the repository's default branch name will be + * used. */ // const remoteBranch = 'abc123' diff --git a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.query_compilation_result_actions.js b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.query_compilation_result_actions.js index dd5a82fefb3..6ed5603e03f 100644 --- a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.query_compilation_result_actions.js +++ b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.query_compilation_result_actions.js @@ -33,22 +33,23 @@ function main(name) { */ // const name = 'abc123' /** - * Optional. Maximum number of compilation results to return. The server may return - * fewer items than requested. If unspecified, the server will pick an + * Optional. Maximum number of compilation results to return. The server may + * return fewer items than requested. If unspecified, the server will pick an * appropriate default. */ // const pageSize = 1234 /** - * Optional. Page token received from a previous `QueryCompilationResultActions` call. - * Provide this to retrieve the subsequent page. + * Optional. Page token received from a previous + * `QueryCompilationResultActions` call. Provide this to retrieve the + * subsequent page. * When paginating, all other parameters provided to * `QueryCompilationResultActions` must match the call that provided the page * token. */ // const pageToken = 'abc123' /** - * Optional. Optional filter for the returned list. Filtering is only currently - * supported on the `file_path` field. + * Optional. Optional filter for the returned list. Filtering is only + * currently supported on the `file_path` field. */ // const filter = 'abc123' diff --git a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.query_directory_contents.js b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.query_directory_contents.js index f11ebc2f4c7..fbe28a2dbf1 100644 --- a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.query_directory_contents.js +++ b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.query_directory_contents.js @@ -33,8 +33,8 @@ function main(workspace) { */ // const workspace = 'abc123' /** - * Optional. The directory's full path including directory name, relative to the - * workspace root. If left unset, the workspace root is used. + * Optional. The directory's full path including directory name, relative to + * the workspace root. If left unset, the workspace root is used. */ // const path = 'abc123' /** @@ -44,8 +44,8 @@ function main(workspace) { */ // const pageSize = 1234 /** - * Optional. Page token received from a previous `QueryDirectoryContents` call. - * Provide this to retrieve the subsequent page. + * Optional. Page token received from a previous `QueryDirectoryContents` + * call. Provide this to retrieve the subsequent page. * When paginating, all other parameters provided to * `QueryDirectoryContents` must match the call that provided the page * token. diff --git a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.query_repository_directory_contents.js b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.query_repository_directory_contents.js new file mode 100644 index 00000000000..672ae92ba20 --- /dev/null +++ b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.query_repository_directory_contents.js @@ -0,0 +1,88 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START dataform_v1beta1_generated_Dataform_QueryRepositoryDirectoryContents_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The repository's name. + */ + // const name = 'abc123' + /** + * Optional. The Commit SHA for the commit to query from. If unset, the + * directory will be queried from HEAD. + */ + // const commitSha = 'abc123' + /** + * Optional. The directory's full path including directory name, relative to + * root. If left unset, the root is used. + */ + // const path = 'abc123' + /** + * Optional. Maximum number of paths to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + */ + // const pageSize = 1234 + /** + * Optional. Page token received from a previous + * `QueryRepositoryDirectoryContents` call. Provide this to retrieve the + * subsequent page. + * When paginating, all other parameters provided to + * `QueryRepositoryDirectoryContents` must match the call that provided the + * page token. + */ + // const pageToken = 'abc123' + + // Imports the Dataform library + const {DataformClient} = require('@google-cloud/dataform').v1beta1; + + // Instantiates a client + const dataformClient = new DataformClient(); + + async function callQueryRepositoryDirectoryContents() { + // Construct request + const request = { + name, + }; + + // Run request + const iterable = await dataformClient.queryRepositoryDirectoryContentsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callQueryRepositoryDirectoryContents(); + // [END dataform_v1beta1_generated_Dataform_QueryRepositoryDirectoryContents_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.query_workflow_invocation_actions.js b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.query_workflow_invocation_actions.js index 4e61bebc07b..8fe4fc89df4 100644 --- a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.query_workflow_invocation_actions.js +++ b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.query_workflow_invocation_actions.js @@ -33,14 +33,15 @@ function main(name) { */ // const name = 'abc123' /** - * Optional. Maximum number of workflow invocations to return. The server may return - * fewer items than requested. If unspecified, the server will pick an + * Optional. Maximum number of workflow invocations to return. The server may + * return fewer items than requested. If unspecified, the server will pick an * appropriate default. */ // const pageSize = 1234 /** - * Optional. Page token received from a previous `QueryWorkflowInvocationActions` call. - * Provide this to retrieve the subsequent page. + * Optional. Page token received from a previous + * `QueryWorkflowInvocationActions` call. Provide this to retrieve the + * subsequent page. * When paginating, all other parameters provided to * `QueryWorkflowInvocationActions` must match the call that provided the page * token. diff --git a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.read_file.js b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.read_file.js index bcd470f0811..ed472fb1c31 100644 --- a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.read_file.js +++ b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.read_file.js @@ -33,7 +33,8 @@ function main(workspace, path) { */ // const workspace = 'abc123' /** - * Required. The file's full path including filename, relative to the workspace root. + * Required. The file's full path including filename, relative to the + * workspace root. */ // const path = 'abc123' diff --git a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.read_repository_file.js b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.read_repository_file.js new file mode 100644 index 00000000000..f5b3af8617b --- /dev/null +++ b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.read_repository_file.js @@ -0,0 +1,71 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name, path) { + // [START dataform_v1beta1_generated_Dataform_ReadRepositoryFile_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The repository's name. + */ + // const name = 'abc123' + /** + * Optional. The commit SHA for the commit to read from. If unset, the file + * will be read from HEAD. + */ + // const commitSha = 'abc123' + /** + * Required. Full file path to read including filename, from repository root. + */ + // const path = 'abc123' + + // Imports the Dataform library + const {DataformClient} = require('@google-cloud/dataform').v1beta1; + + // Instantiates a client + const dataformClient = new DataformClient(); + + async function callReadRepositoryFile() { + // Construct request + const request = { + name, + path, + }; + + // Run request + const response = await dataformClient.readRepositoryFile(request); + console.log(response); + } + + callReadRepositoryFile(); + // [END dataform_v1beta1_generated_Dataform_ReadRepositoryFile_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.remove_directory.js b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.remove_directory.js index 975e2258de0..2db02520c07 100644 --- a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.remove_directory.js +++ b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.remove_directory.js @@ -33,8 +33,8 @@ function main(workspace, path) { */ // const workspace = 'abc123' /** - * Required. The directory's full path including directory name, relative to the - * workspace root. + * Required. The directory's full path including directory name, relative to + * the workspace root. */ // const path = 'abc123' diff --git a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.remove_file.js b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.remove_file.js index dd9031c5a5f..73021442162 100644 --- a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.remove_file.js +++ b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.remove_file.js @@ -33,7 +33,8 @@ function main(workspace, path) { */ // const workspace = 'abc123' /** - * Required. The file's full path including filename, relative to the workspace root. + * Required. The file's full path including filename, relative to the + * workspace root. */ // const path = 'abc123' diff --git a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.reset_workspace_changes.js b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.reset_workspace_changes.js index a6b4c158789..4c398c43253 100644 --- a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.reset_workspace_changes.js +++ b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.reset_workspace_changes.js @@ -33,8 +33,8 @@ function main(name) { */ // const name = 'abc123' /** - * Optional. Full file paths to reset back to their committed state including filename, - * rooted at workspace root. If left empty, all files will be reset. + * Optional. Full file paths to reset back to their committed state including + * filename, rooted at workspace root. If left empty, all files will be reset. */ // const paths = ['abc','def'] /** diff --git a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.update_release_config.js b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.update_release_config.js new file mode 100644 index 00000000000..dd6737e8d3f --- /dev/null +++ b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.update_release_config.js @@ -0,0 +1,66 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(releaseConfig) { + // [START dataform_v1beta1_generated_Dataform_UpdateReleaseConfig_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Optional. Specifies the fields to be updated in the release config. If left + * unset, all fields will be updated. + */ + // const updateMask = {} + /** + * Required. The release config to update. + */ + // const releaseConfig = {} + + // Imports the Dataform library + const {DataformClient} = require('@google-cloud/dataform').v1beta1; + + // Instantiates a client + const dataformClient = new DataformClient(); + + async function callUpdateReleaseConfig() { + // Construct request + const request = { + releaseConfig, + }; + + // Run request + const response = await dataformClient.updateReleaseConfig(request); + console.log(response); + } + + callUpdateReleaseConfig(); + // [END dataform_v1beta1_generated_Dataform_UpdateReleaseConfig_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.update_repository.js b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.update_repository.js index 16e383a3b7d..832f1b0c67c 100644 --- a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.update_repository.js +++ b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.update_repository.js @@ -29,8 +29,8 @@ function main(repository) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Optional. Specifies the fields to be updated in the repository. If left unset, - * all fields will be updated. + * Optional. Specifies the fields to be updated in the repository. If left + * unset, all fields will be updated. */ // const updateMask = {} /** diff --git a/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.update_workflow_config.js b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.update_workflow_config.js new file mode 100644 index 00000000000..5efc6b359fd --- /dev/null +++ b/packages/google-cloud-dataform/samples/generated/v1beta1/dataform.update_workflow_config.js @@ -0,0 +1,66 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(workflowConfig) { + // [START dataform_v1beta1_generated_Dataform_UpdateWorkflowConfig_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Optional. Specifies the fields to be updated in the workflow config. If + * left unset, all fields will be updated. + */ + // const updateMask = {} + /** + * Required. The workflow config to update. + */ + // const workflowConfig = {} + + // Imports the Dataform library + const {DataformClient} = require('@google-cloud/dataform').v1beta1; + + // Instantiates a client + const dataformClient = new DataformClient(); + + async function callUpdateWorkflowConfig() { + // Construct request + const request = { + workflowConfig, + }; + + // Run request + const response = await dataformClient.updateWorkflowConfig(request); + console.log(response); + } + + callUpdateWorkflowConfig(); + // [END dataform_v1beta1_generated_Dataform_UpdateWorkflowConfig_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-dataform/samples/generated/v1beta1/snippet_metadata_google.cloud.dataform.v1beta1.json b/packages/google-cloud-dataform/samples/generated/v1beta1/snippet_metadata_google.cloud.dataform.v1beta1.json index 0d40643271d..7dc12904809 100644 --- a/packages/google-cloud-dataform/samples/generated/v1beta1/snippet_metadata_google.cloud.dataform.v1beta1.json +++ b/packages/google-cloud-dataform/samples/generated/v1beta1/snippet_metadata_google.cloud.dataform.v1beta1.json @@ -243,6 +243,250 @@ } } }, + { + "regionTag": "dataform_v1beta1_generated_Dataform_CommitRepositoryChanges_async", + "title": "Dataform commitRepositoryChanges Sample", + "origin": "API_DEFINITION", + "description": " Applies a Git commit to a Repository. The Repository must not have a value for `git_remote_settings.url`.", + "canonical": true, + "file": "dataform.commit_repository_changes.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 69, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CommitRepositoryChanges", + "fullName": "google.cloud.dataform.v1beta1.Dataform.CommitRepositoryChanges", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "commit_metadata", + "type": ".google.cloud.dataform.v1beta1.CommitMetadata" + }, + { + "name": "required_head_commit_sha", + "type": "TYPE_STRING" + }, + { + "name": "file_operations", + "type": "TYPE_MESSAGE[]" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "DataformClient", + "fullName": "google.cloud.dataform.v1beta1.DataformClient" + }, + "method": { + "shortName": "CommitRepositoryChanges", + "fullName": "google.cloud.dataform.v1beta1.Dataform.CommitRepositoryChanges", + "service": { + "shortName": "Dataform", + "fullName": "google.cloud.dataform.v1beta1.Dataform" + } + } + } + }, + { + "regionTag": "dataform_v1beta1_generated_Dataform_ReadRepositoryFile_async", + "title": "Dataform readRepositoryFile Sample", + "origin": "API_DEFINITION", + "description": " Returns the contents of a file (inside a Repository). The Repository must not have a value for `git_remote_settings.url`.", + "canonical": true, + "file": "dataform.read_repository_file.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 63, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ReadRepositoryFile", + "fullName": "google.cloud.dataform.v1beta1.Dataform.ReadRepositoryFile", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "commit_sha", + "type": "TYPE_STRING" + }, + { + "name": "path", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.dataform.v1beta1.ReadRepositoryFileResponse", + "client": { + "shortName": "DataformClient", + "fullName": "google.cloud.dataform.v1beta1.DataformClient" + }, + "method": { + "shortName": "ReadRepositoryFile", + "fullName": "google.cloud.dataform.v1beta1.Dataform.ReadRepositoryFile", + "service": { + "shortName": "Dataform", + "fullName": "google.cloud.dataform.v1beta1.Dataform" + } + } + } + }, + { + "regionTag": "dataform_v1beta1_generated_Dataform_QueryRepositoryDirectoryContents_async", + "title": "Dataform queryRepositoryDirectoryContents Sample", + "origin": "API_DEFINITION", + "description": " Returns the contents of a given Repository directory. The Repository must not have a value for `git_remote_settings.url`.", + "canonical": true, + "file": "dataform.query_repository_directory_contents.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 80, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "QueryRepositoryDirectoryContents", + "fullName": "google.cloud.dataform.v1beta1.Dataform.QueryRepositoryDirectoryContents", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "commit_sha", + "type": "TYPE_STRING" + }, + { + "name": "path", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse", + "client": { + "shortName": "DataformClient", + "fullName": "google.cloud.dataform.v1beta1.DataformClient" + }, + "method": { + "shortName": "QueryRepositoryDirectoryContents", + "fullName": "google.cloud.dataform.v1beta1.Dataform.QueryRepositoryDirectoryContents", + "service": { + "shortName": "Dataform", + "fullName": "google.cloud.dataform.v1beta1.Dataform" + } + } + } + }, + { + "regionTag": "dataform_v1beta1_generated_Dataform_FetchRepositoryHistory_async", + "title": "Dataform fetchRepositoryHistory Sample", + "origin": "API_DEFINITION", + "description": " Fetches a Repository's history of commits. The Repository must not have a value for `git_remote_settings.url`.", + "canonical": true, + "file": "dataform.fetch_repository_history.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 68, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "FetchRepositoryHistory", + "fullName": "google.cloud.dataform.v1beta1.Dataform.FetchRepositoryHistory", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse", + "client": { + "shortName": "DataformClient", + "fullName": "google.cloud.dataform.v1beta1.DataformClient" + }, + "method": { + "shortName": "FetchRepositoryHistory", + "fullName": "google.cloud.dataform.v1beta1.Dataform.FetchRepositoryHistory", + "service": { + "shortName": "Dataform", + "fullName": "google.cloud.dataform.v1beta1.Dataform" + } + } + } + }, + { + "regionTag": "dataform_v1beta1_generated_Dataform_ComputeRepositoryAccessTokenStatus_async", + "title": "Dataform computeRepositoryAccessTokenStatus Sample", + "origin": "API_DEFINITION", + "description": " Computes a Repository's Git access token status.", + "canonical": true, + "file": "dataform.compute_repository_access_token_status.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 53, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ComputeRepositoryAccessTokenStatus", + "fullName": "google.cloud.dataform.v1beta1.Dataform.ComputeRepositoryAccessTokenStatus", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse", + "client": { + "shortName": "DataformClient", + "fullName": "google.cloud.dataform.v1beta1.DataformClient" + }, + "method": { + "shortName": "ComputeRepositoryAccessTokenStatus", + "fullName": "google.cloud.dataform.v1beta1.Dataform.ComputeRepositoryAccessTokenStatus", + "service": { + "shortName": "Dataform", + "fullName": "google.cloud.dataform.v1beta1.Dataform" + } + } + } + }, { "regionTag": "dataform_v1beta1_generated_Dataform_FetchRemoteBranches_async", "title": "Dataform fetchRemoteBranches Sample", @@ -566,7 +810,7 @@ "segments": [ { "start": 25, - "end": 58, + "end": 59, "type": "FULL" } ], @@ -794,7 +1038,7 @@ "segments": [ { "start": 25, - "end": 58, + "end": 59, "type": "FULL" } ], @@ -1026,7 +1270,7 @@ "segments": [ { "start": 25, - "end": 58, + "end": 59, "type": "FULL" } ], @@ -1070,7 +1314,7 @@ "segments": [ { "start": 25, - "end": 58, + "end": 59, "type": "FULL" } ], @@ -1114,7 +1358,7 @@ "segments": [ { "start": 25, - "end": 63, + "end": 65, "type": "FULL" } ], @@ -1200,12 +1444,12 @@ } }, { - "regionTag": "dataform_v1beta1_generated_Dataform_ListCompilationResults_async", - "title": "Dataform listCompilationResults Sample", + "regionTag": "dataform_v1beta1_generated_Dataform_ListReleaseConfigs_async", + "title": "Dataform listReleaseConfigs Sample", "origin": "API_DEFINITION", - "description": " Lists CompilationResults in a given Repository.", + "description": " Lists ReleaseConfigs in a given Repository.", "canonical": true, - "file": "dataform.list_compilation_results.js", + "file": "dataform.list_release_configs.js", "language": "JAVASCRIPT", "segments": [ { @@ -1215,8 +1459,8 @@ } ], "clientMethod": { - "shortName": "ListCompilationResults", - "fullName": "google.cloud.dataform.v1beta1.Dataform.ListCompilationResults", + "shortName": "ListReleaseConfigs", + "fullName": "google.cloud.dataform.v1beta1.Dataform.ListReleaseConfigs", "async": true, "parameters": [ { @@ -1232,14 +1476,14 @@ "type": "TYPE_STRING" } ], - "resultType": ".google.cloud.dataform.v1beta1.ListCompilationResultsResponse", + "resultType": ".google.cloud.dataform.v1beta1.ListReleaseConfigsResponse", "client": { "shortName": "DataformClient", "fullName": "google.cloud.dataform.v1beta1.DataformClient" }, "method": { - "shortName": "ListCompilationResults", - "fullName": "google.cloud.dataform.v1beta1.Dataform.ListCompilationResults", + "shortName": "ListReleaseConfigs", + "fullName": "google.cloud.dataform.v1beta1.Dataform.ListReleaseConfigs", "service": { "shortName": "Dataform", "fullName": "google.cloud.dataform.v1beta1.Dataform" @@ -1248,12 +1492,12 @@ } }, { - "regionTag": "dataform_v1beta1_generated_Dataform_GetCompilationResult_async", - "title": "Dataform getCompilationResult Sample", + "regionTag": "dataform_v1beta1_generated_Dataform_GetReleaseConfig_async", + "title": "Dataform getReleaseConfig Sample", "origin": "API_DEFINITION", - "description": " Fetches a single CompilationResult.", + "description": " Fetches a single ReleaseConfig.", "canonical": true, - "file": "dataform.get_compilation_result.js", + "file": "dataform.get_release_config.js", "language": "JAVASCRIPT", "segments": [ { @@ -1263,8 +1507,8 @@ } ], "clientMethod": { - "shortName": "GetCompilationResult", - "fullName": "google.cloud.dataform.v1beta1.Dataform.GetCompilationResult", + "shortName": "GetReleaseConfig", + "fullName": "google.cloud.dataform.v1beta1.Dataform.GetReleaseConfig", "async": true, "parameters": [ { @@ -1272,14 +1516,14 @@ "type": "TYPE_STRING" } ], - "resultType": ".google.cloud.dataform.v1beta1.CompilationResult", + "resultType": ".google.cloud.dataform.v1beta1.ReleaseConfig", "client": { "shortName": "DataformClient", "fullName": "google.cloud.dataform.v1beta1.DataformClient" }, "method": { - "shortName": "GetCompilationResult", - "fullName": "google.cloud.dataform.v1beta1.Dataform.GetCompilationResult", + "shortName": "GetReleaseConfig", + "fullName": "google.cloud.dataform.v1beta1.Dataform.GetReleaseConfig", "service": { "shortName": "Dataform", "fullName": "google.cloud.dataform.v1beta1.Dataform" @@ -1288,23 +1532,23 @@ } }, { - "regionTag": "dataform_v1beta1_generated_Dataform_CreateCompilationResult_async", - "title": "Dataform createCompilationResult Sample", + "regionTag": "dataform_v1beta1_generated_Dataform_CreateReleaseConfig_async", + "title": "Dataform createReleaseConfig Sample", "origin": "API_DEFINITION", - "description": " Creates a new CompilationResult in a given project and location.", + "description": " Creates a new ReleaseConfig in a given Repository.", "canonical": true, - "file": "dataform.create_compilation_result.js", + "file": "dataform.create_release_config.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 59, + "end": 65, "type": "FULL" } ], "clientMethod": { - "shortName": "CreateCompilationResult", - "fullName": "google.cloud.dataform.v1beta1.Dataform.CreateCompilationResult", + "shortName": "CreateReleaseConfig", + "fullName": "google.cloud.dataform.v1beta1.Dataform.CreateReleaseConfig", "async": true, "parameters": [ { @@ -1312,18 +1556,22 @@ "type": "TYPE_STRING" }, { - "name": "compilation_result", - "type": ".google.cloud.dataform.v1beta1.CompilationResult" + "name": "release_config", + "type": ".google.cloud.dataform.v1beta1.ReleaseConfig" + }, + { + "name": "release_config_id", + "type": "TYPE_STRING" } ], - "resultType": ".google.cloud.dataform.v1beta1.CompilationResult", + "resultType": ".google.cloud.dataform.v1beta1.ReleaseConfig", "client": { "shortName": "DataformClient", "fullName": "google.cloud.dataform.v1beta1.DataformClient" }, "method": { - "shortName": "CreateCompilationResult", - "fullName": "google.cloud.dataform.v1beta1.Dataform.CreateCompilationResult", + "shortName": "CreateReleaseConfig", + "fullName": "google.cloud.dataform.v1beta1.Dataform.CreateReleaseConfig", "service": { "shortName": "Dataform", "fullName": "google.cloud.dataform.v1beta1.Dataform" @@ -1332,39 +1580,255 @@ } }, { - "regionTag": "dataform_v1beta1_generated_Dataform_QueryCompilationResultActions_async", - "title": "Dataform queryCompilationResultActions Sample", + "regionTag": "dataform_v1beta1_generated_Dataform_UpdateReleaseConfig_async", + "title": "Dataform updateReleaseConfig Sample", "origin": "API_DEFINITION", - "description": " Returns CompilationResultActions in a given CompilationResult.", + "description": " Updates a single ReleaseConfig.", "canonical": true, - "file": "dataform.query_compilation_result_actions.js", + "file": "dataform.update_release_config.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 74, + "end": 58, "type": "FULL" } ], "clientMethod": { - "shortName": "QueryCompilationResultActions", - "fullName": "google.cloud.dataform.v1beta1.Dataform.QueryCompilationResultActions", + "shortName": "UpdateReleaseConfig", + "fullName": "google.cloud.dataform.v1beta1.Dataform.UpdateReleaseConfig", "async": true, "parameters": [ { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" + "name": "update_mask", + "type": ".google.protobuf.FieldMask" }, { - "name": "filter", + "name": "release_config", + "type": ".google.cloud.dataform.v1beta1.ReleaseConfig" + } + ], + "resultType": ".google.cloud.dataform.v1beta1.ReleaseConfig", + "client": { + "shortName": "DataformClient", + "fullName": "google.cloud.dataform.v1beta1.DataformClient" + }, + "method": { + "shortName": "UpdateReleaseConfig", + "fullName": "google.cloud.dataform.v1beta1.Dataform.UpdateReleaseConfig", + "service": { + "shortName": "Dataform", + "fullName": "google.cloud.dataform.v1beta1.Dataform" + } + } + } + }, + { + "regionTag": "dataform_v1beta1_generated_Dataform_DeleteReleaseConfig_async", + "title": "Dataform deleteReleaseConfig Sample", + "origin": "API_DEFINITION", + "description": " Deletes a single ReleaseConfig.", + "canonical": true, + "file": "dataform.delete_release_config.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 53, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteReleaseConfig", + "fullName": "google.cloud.dataform.v1beta1.Dataform.DeleteReleaseConfig", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "DataformClient", + "fullName": "google.cloud.dataform.v1beta1.DataformClient" + }, + "method": { + "shortName": "DeleteReleaseConfig", + "fullName": "google.cloud.dataform.v1beta1.Dataform.DeleteReleaseConfig", + "service": { + "shortName": "Dataform", + "fullName": "google.cloud.dataform.v1beta1.Dataform" + } + } + } + }, + { + "regionTag": "dataform_v1beta1_generated_Dataform_ListCompilationResults_async", + "title": "Dataform listCompilationResults Sample", + "origin": "API_DEFINITION", + "description": " Lists CompilationResults in a given Repository.", + "canonical": true, + "file": "dataform.list_compilation_results.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 69, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListCompilationResults", + "fullName": "google.cloud.dataform.v1beta1.Dataform.ListCompilationResults", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.dataform.v1beta1.ListCompilationResultsResponse", + "client": { + "shortName": "DataformClient", + "fullName": "google.cloud.dataform.v1beta1.DataformClient" + }, + "method": { + "shortName": "ListCompilationResults", + "fullName": "google.cloud.dataform.v1beta1.Dataform.ListCompilationResults", + "service": { + "shortName": "Dataform", + "fullName": "google.cloud.dataform.v1beta1.Dataform" + } + } + } + }, + { + "regionTag": "dataform_v1beta1_generated_Dataform_GetCompilationResult_async", + "title": "Dataform getCompilationResult Sample", + "origin": "API_DEFINITION", + "description": " Fetches a single CompilationResult.", + "canonical": true, + "file": "dataform.get_compilation_result.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 53, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetCompilationResult", + "fullName": "google.cloud.dataform.v1beta1.Dataform.GetCompilationResult", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.dataform.v1beta1.CompilationResult", + "client": { + "shortName": "DataformClient", + "fullName": "google.cloud.dataform.v1beta1.DataformClient" + }, + "method": { + "shortName": "GetCompilationResult", + "fullName": "google.cloud.dataform.v1beta1.Dataform.GetCompilationResult", + "service": { + "shortName": "Dataform", + "fullName": "google.cloud.dataform.v1beta1.Dataform" + } + } + } + }, + { + "regionTag": "dataform_v1beta1_generated_Dataform_CreateCompilationResult_async", + "title": "Dataform createCompilationResult Sample", + "origin": "API_DEFINITION", + "description": " Creates a new CompilationResult in a given project and location.", + "canonical": true, + "file": "dataform.create_compilation_result.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 59, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateCompilationResult", + "fullName": "google.cloud.dataform.v1beta1.Dataform.CreateCompilationResult", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "compilation_result", + "type": ".google.cloud.dataform.v1beta1.CompilationResult" + } + ], + "resultType": ".google.cloud.dataform.v1beta1.CompilationResult", + "client": { + "shortName": "DataformClient", + "fullName": "google.cloud.dataform.v1beta1.DataformClient" + }, + "method": { + "shortName": "CreateCompilationResult", + "fullName": "google.cloud.dataform.v1beta1.Dataform.CreateCompilationResult", + "service": { + "shortName": "Dataform", + "fullName": "google.cloud.dataform.v1beta1.Dataform" + } + } + } + }, + { + "regionTag": "dataform_v1beta1_generated_Dataform_QueryCompilationResultActions_async", + "title": "Dataform queryCompilationResultActions Sample", + "origin": "API_DEFINITION", + "description": " Returns CompilationResultActions in a given CompilationResult.", + "canonical": true, + "file": "dataform.query_compilation_result_actions.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 75, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "QueryCompilationResultActions", + "fullName": "google.cloud.dataform.v1beta1.Dataform.QueryCompilationResultActions", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "filter", "type": "TYPE_STRING" } ], @@ -1383,6 +1847,226 @@ } } }, + { + "regionTag": "dataform_v1beta1_generated_Dataform_ListWorkflowConfigs_async", + "title": "Dataform listWorkflowConfigs Sample", + "origin": "API_DEFINITION", + "description": " Lists WorkflowConfigs in a given Repository.", + "canonical": true, + "file": "dataform.list_workflow_configs.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 69, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListWorkflowConfigs", + "fullName": "google.cloud.dataform.v1beta1.Dataform.ListWorkflowConfigs", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse", + "client": { + "shortName": "DataformClient", + "fullName": "google.cloud.dataform.v1beta1.DataformClient" + }, + "method": { + "shortName": "ListWorkflowConfigs", + "fullName": "google.cloud.dataform.v1beta1.Dataform.ListWorkflowConfigs", + "service": { + "shortName": "Dataform", + "fullName": "google.cloud.dataform.v1beta1.Dataform" + } + } + } + }, + { + "regionTag": "dataform_v1beta1_generated_Dataform_GetWorkflowConfig_async", + "title": "Dataform getWorkflowConfig Sample", + "origin": "API_DEFINITION", + "description": " Fetches a single WorkflowConfig.", + "canonical": true, + "file": "dataform.get_workflow_config.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 53, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetWorkflowConfig", + "fullName": "google.cloud.dataform.v1beta1.Dataform.GetWorkflowConfig", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.dataform.v1beta1.WorkflowConfig", + "client": { + "shortName": "DataformClient", + "fullName": "google.cloud.dataform.v1beta1.DataformClient" + }, + "method": { + "shortName": "GetWorkflowConfig", + "fullName": "google.cloud.dataform.v1beta1.Dataform.GetWorkflowConfig", + "service": { + "shortName": "Dataform", + "fullName": "google.cloud.dataform.v1beta1.Dataform" + } + } + } + }, + { + "regionTag": "dataform_v1beta1_generated_Dataform_CreateWorkflowConfig_async", + "title": "Dataform createWorkflowConfig Sample", + "origin": "API_DEFINITION", + "description": " Creates a new WorkflowConfig in a given Repository.", + "canonical": true, + "file": "dataform.create_workflow_config.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 65, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateWorkflowConfig", + "fullName": "google.cloud.dataform.v1beta1.Dataform.CreateWorkflowConfig", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "workflow_config", + "type": ".google.cloud.dataform.v1beta1.WorkflowConfig" + }, + { + "name": "workflow_config_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.dataform.v1beta1.WorkflowConfig", + "client": { + "shortName": "DataformClient", + "fullName": "google.cloud.dataform.v1beta1.DataformClient" + }, + "method": { + "shortName": "CreateWorkflowConfig", + "fullName": "google.cloud.dataform.v1beta1.Dataform.CreateWorkflowConfig", + "service": { + "shortName": "Dataform", + "fullName": "google.cloud.dataform.v1beta1.Dataform" + } + } + } + }, + { + "regionTag": "dataform_v1beta1_generated_Dataform_UpdateWorkflowConfig_async", + "title": "Dataform updateWorkflowConfig Sample", + "origin": "API_DEFINITION", + "description": " Updates a single WorkflowConfig.", + "canonical": true, + "file": "dataform.update_workflow_config.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 58, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateWorkflowConfig", + "fullName": "google.cloud.dataform.v1beta1.Dataform.UpdateWorkflowConfig", + "async": true, + "parameters": [ + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + }, + { + "name": "workflow_config", + "type": ".google.cloud.dataform.v1beta1.WorkflowConfig" + } + ], + "resultType": ".google.cloud.dataform.v1beta1.WorkflowConfig", + "client": { + "shortName": "DataformClient", + "fullName": "google.cloud.dataform.v1beta1.DataformClient" + }, + "method": { + "shortName": "UpdateWorkflowConfig", + "fullName": "google.cloud.dataform.v1beta1.Dataform.UpdateWorkflowConfig", + "service": { + "shortName": "Dataform", + "fullName": "google.cloud.dataform.v1beta1.Dataform" + } + } + } + }, + { + "regionTag": "dataform_v1beta1_generated_Dataform_DeleteWorkflowConfig_async", + "title": "Dataform deleteWorkflowConfig Sample", + "origin": "API_DEFINITION", + "description": " Deletes a single WorkflowConfig.", + "canonical": true, + "file": "dataform.delete_workflow_config.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 53, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteWorkflowConfig", + "fullName": "google.cloud.dataform.v1beta1.Dataform.DeleteWorkflowConfig", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "DataformClient", + "fullName": "google.cloud.dataform.v1beta1.DataformClient" + }, + "method": { + "shortName": "DeleteWorkflowConfig", + "fullName": "google.cloud.dataform.v1beta1.Dataform.DeleteWorkflowConfig", + "service": { + "shortName": "Dataform", + "fullName": "google.cloud.dataform.v1beta1.Dataform" + } + } + } + }, { "regionTag": "dataform_v1beta1_generated_Dataform_ListWorkflowInvocations_async", "title": "Dataform listWorkflowInvocations Sample", @@ -1394,7 +2078,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 79, "type": "FULL" } ], @@ -1414,6 +2098,14 @@ { "name": "page_token", "type": "TYPE_STRING" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" } ], "resultType": ".google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse", @@ -1606,7 +2298,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 70, "type": "FULL" } ], diff --git a/packages/google-cloud-dataform/src/v1beta1/dataform_client.ts b/packages/google-cloud-dataform/src/v1beta1/dataform_client.ts index 82419059fa2..8373b6d7cb3 100644 --- a/packages/google-cloud-dataform/src/v1beta1/dataform_client.ts +++ b/packages/google-cloud-dataform/src/v1beta1/dataform_client.ts @@ -196,9 +196,18 @@ export class DataformClient { locationPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}' ), + releaseConfigPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/repositories/{repository}/releaseConfigs/{release_config}' + ), repositoryPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/repositories/{repository}' ), + secretVersionPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/secrets/{secret}/versions/{version}' + ), + workflowConfigPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/repositories/{repository}/workflowConfigs/{workflow_config}' + ), workflowInvocationPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/repositories/{repository}/workflowInvocations/{workflow_invocation}' ), @@ -216,6 +225,16 @@ export class DataformClient { 'nextPageToken', 'repositories' ), + queryRepositoryDirectoryContents: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'directoryEntries' + ), + fetchRepositoryHistory: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'commits' + ), listWorkspaces: new this._gaxModule.PageDescriptor( 'pageToken', 'nextPageToken', @@ -226,6 +245,11 @@ export class DataformClient { 'nextPageToken', 'directoryEntries' ), + listReleaseConfigs: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'releaseConfigs' + ), listCompilationResults: new this._gaxModule.PageDescriptor( 'pageToken', 'nextPageToken', @@ -236,6 +260,11 @@ export class DataformClient { 'nextPageToken', 'compilationResultActions' ), + listWorkflowConfigs: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'workflowConfigs' + ), listWorkflowInvocations: new this._gaxModule.PageDescriptor( 'pageToken', 'nextPageToken', @@ -303,6 +332,11 @@ export class DataformClient { 'createRepository', 'updateRepository', 'deleteRepository', + 'commitRepositoryChanges', + 'readRepositoryFile', + 'queryRepositoryDirectoryContents', + 'fetchRepositoryHistory', + 'computeRepositoryAccessTokenStatus', 'fetchRemoteBranches', 'listWorkspaces', 'getWorkspace', @@ -324,10 +358,20 @@ export class DataformClient { 'removeFile', 'moveFile', 'writeFile', + 'listReleaseConfigs', + 'getReleaseConfig', + 'createReleaseConfig', + 'updateReleaseConfig', + 'deleteReleaseConfig', 'listCompilationResults', 'getCompilationResult', 'createCompilationResult', 'queryCompilationResultActions', + 'listWorkflowConfigs', + 'getWorkflowConfig', + 'createWorkflowConfig', + 'updateWorkflowConfig', + 'deleteWorkflowConfig', 'listWorkflowInvocations', 'getWorkflowInvocation', 'createWorkflowInvocation', @@ -513,13 +557,13 @@ export class DataformClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The location in which to create the repository. Must be in the format - * `projects/* /locations/*`. + * Required. The location in which to create the repository. Must be in the + * format `projects/* /locations/*`. * @param {google.cloud.dataform.v1beta1.Repository} request.repository * Required. The repository to create. * @param {string} request.repositoryId - * Required. The ID to use for the repository, which will become the final component of - * the repository's resource name. + * Required. The ID to use for the repository, which will become the final + * component of the repository's resource name. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -609,8 +653,8 @@ export class DataformClient { * @param {Object} request * The request object that will be sent. * @param {google.protobuf.FieldMask} [request.updateMask] - * Optional. Specifies the fields to be updated in the repository. If left unset, - * all fields will be updated. + * Optional. Specifies the fields to be updated in the repository. If left + * unset, all fields will be updated. * @param {google.cloud.dataform.v1beta1.Repository} request.repository * Required. The repository to update. * @param {object} [options] @@ -790,6 +834,318 @@ export class DataformClient { this.initialize(); return this.innerApiCalls.deleteRepository(request, options, callback); } + /** + * Applies a Git commit to a Repository. The Repository must not have a value + * for `git_remote_settings.url`. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The repository's name. + * @param {google.cloud.dataform.v1beta1.CommitMetadata} request.commitMetadata + * Required. The changes to commit to the repository. + * @param {string} [request.requiredHeadCommitSha] + * Optional. The commit SHA which must be the repository's current HEAD before + * applying this commit; otherwise this request will fail. If unset, no + * validation on the current HEAD commit SHA is performed. + * @param {number[]} request.fileOperations + * A map to the path of the file to the operation. The path is the full file + * path including filename, from repository root. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link protos.google.protobuf.Empty|Empty}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta1/dataform.commit_repository_changes.js + * region_tag:dataform_v1beta1_generated_Dataform_CommitRepositoryChanges_async + */ + commitRepositoryChanges( + request?: protos.google.cloud.dataform.v1beta1.ICommitRepositoryChangesRequest, + options?: CallOptions + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.cloud.dataform.v1beta1.ICommitRepositoryChangesRequest + | undefined + ), + {} | undefined, + ] + >; + commitRepositoryChanges( + request: protos.google.cloud.dataform.v1beta1.ICommitRepositoryChangesRequest, + options: CallOptions, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.dataform.v1beta1.ICommitRepositoryChangesRequest + | null + | undefined, + {} | null | undefined + > + ): void; + commitRepositoryChanges( + request: protos.google.cloud.dataform.v1beta1.ICommitRepositoryChangesRequest, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.dataform.v1beta1.ICommitRepositoryChangesRequest + | null + | undefined, + {} | null | undefined + > + ): void; + commitRepositoryChanges( + request?: protos.google.cloud.dataform.v1beta1.ICommitRepositoryChangesRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.dataform.v1beta1.ICommitRepositoryChangesRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.dataform.v1beta1.ICommitRepositoryChangesRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.cloud.dataform.v1beta1.ICommitRepositoryChangesRequest + | undefined + ), + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.commitRepositoryChanges( + request, + options, + callback + ); + } + /** + * Returns the contents of a file (inside a Repository). The Repository + * must not have a value for `git_remote_settings.url`. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The repository's name. + * @param {string} [request.commitSha] + * Optional. The commit SHA for the commit to read from. If unset, the file + * will be read from HEAD. + * @param {string} request.path + * Required. Full file path to read including filename, from repository root. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link protos.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse|ReadRepositoryFileResponse}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta1/dataform.read_repository_file.js + * region_tag:dataform_v1beta1_generated_Dataform_ReadRepositoryFile_async + */ + readRepositoryFile( + request?: protos.google.cloud.dataform.v1beta1.IReadRepositoryFileRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.dataform.v1beta1.IReadRepositoryFileResponse, + ( + | protos.google.cloud.dataform.v1beta1.IReadRepositoryFileRequest + | undefined + ), + {} | undefined, + ] + >; + readRepositoryFile( + request: protos.google.cloud.dataform.v1beta1.IReadRepositoryFileRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.dataform.v1beta1.IReadRepositoryFileResponse, + | protos.google.cloud.dataform.v1beta1.IReadRepositoryFileRequest + | null + | undefined, + {} | null | undefined + > + ): void; + readRepositoryFile( + request: protos.google.cloud.dataform.v1beta1.IReadRepositoryFileRequest, + callback: Callback< + protos.google.cloud.dataform.v1beta1.IReadRepositoryFileResponse, + | protos.google.cloud.dataform.v1beta1.IReadRepositoryFileRequest + | null + | undefined, + {} | null | undefined + > + ): void; + readRepositoryFile( + request?: protos.google.cloud.dataform.v1beta1.IReadRepositoryFileRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.dataform.v1beta1.IReadRepositoryFileResponse, + | protos.google.cloud.dataform.v1beta1.IReadRepositoryFileRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.dataform.v1beta1.IReadRepositoryFileResponse, + | protos.google.cloud.dataform.v1beta1.IReadRepositoryFileRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.dataform.v1beta1.IReadRepositoryFileResponse, + ( + | protos.google.cloud.dataform.v1beta1.IReadRepositoryFileRequest + | undefined + ), + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.readRepositoryFile(request, options, callback); + } + /** + * Computes a Repository's Git access token status. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The repository's name. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link protos.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse|ComputeRepositoryAccessTokenStatusResponse}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta1/dataform.compute_repository_access_token_status.js + * region_tag:dataform_v1beta1_generated_Dataform_ComputeRepositoryAccessTokenStatus_async + */ + computeRepositoryAccessTokenStatus( + request?: protos.google.cloud.dataform.v1beta1.IComputeRepositoryAccessTokenStatusRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.dataform.v1beta1.IComputeRepositoryAccessTokenStatusResponse, + ( + | protos.google.cloud.dataform.v1beta1.IComputeRepositoryAccessTokenStatusRequest + | undefined + ), + {} | undefined, + ] + >; + computeRepositoryAccessTokenStatus( + request: protos.google.cloud.dataform.v1beta1.IComputeRepositoryAccessTokenStatusRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.dataform.v1beta1.IComputeRepositoryAccessTokenStatusResponse, + | protos.google.cloud.dataform.v1beta1.IComputeRepositoryAccessTokenStatusRequest + | null + | undefined, + {} | null | undefined + > + ): void; + computeRepositoryAccessTokenStatus( + request: protos.google.cloud.dataform.v1beta1.IComputeRepositoryAccessTokenStatusRequest, + callback: Callback< + protos.google.cloud.dataform.v1beta1.IComputeRepositoryAccessTokenStatusResponse, + | protos.google.cloud.dataform.v1beta1.IComputeRepositoryAccessTokenStatusRequest + | null + | undefined, + {} | null | undefined + > + ): void; + computeRepositoryAccessTokenStatus( + request?: protos.google.cloud.dataform.v1beta1.IComputeRepositoryAccessTokenStatusRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.dataform.v1beta1.IComputeRepositoryAccessTokenStatusResponse, + | protos.google.cloud.dataform.v1beta1.IComputeRepositoryAccessTokenStatusRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.dataform.v1beta1.IComputeRepositoryAccessTokenStatusResponse, + | protos.google.cloud.dataform.v1beta1.IComputeRepositoryAccessTokenStatusRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.dataform.v1beta1.IComputeRepositoryAccessTokenStatusResponse, + ( + | protos.google.cloud.dataform.v1beta1.IComputeRepositoryAccessTokenStatusRequest + | undefined + ), + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.computeRepositoryAccessTokenStatus( + request, + options, + callback + ); + } /** * Fetches a Repository's remote branches. * @@ -982,13 +1338,13 @@ export class DataformClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The repository in which to create the workspace. Must be in the format - * `projects/* /locations/* /repositories/*`. + * Required. The repository in which to create the workspace. Must be in the + * format `projects/* /locations/* /repositories/*`. * @param {google.cloud.dataform.v1beta1.Workspace} request.workspace * Required. The workspace to create. * @param {string} request.workspaceId - * Required. The ID to use for the workspace, which will become the final component of - * the workspace's resource name. + * Required. The ID to use for the workspace, which will become the final + * component of the workspace's resource name. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1266,11 +1622,11 @@ export class DataformClient { * @param {string} request.name * Required. The workspace's name. * @param {string} [request.remoteBranch] - * Optional. The name of the branch in the Git remote from which to pull commits. - * If left unset, the repository's default branch name will be used. + * Optional. The name of the branch in the Git remote from which to pull + * commits. If left unset, the repository's default branch name will be used. * @param {google.cloud.dataform.v1beta1.CommitAuthor} request.author - * Required. The author of any merge commit which may be created as a result of merging - * fetched Git commits into this workspace. + * Required. The author of any merge commit which may be created as a result + * of merging fetched Git commits into this workspace. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1362,8 +1718,9 @@ export class DataformClient { * @param {string} request.name * Required. The workspace's name. * @param {string} [request.remoteBranch] - * Optional. The name of the branch in the Git remote to which commits should be pushed. - * If left unset, the repository's default branch name will be used. + * Optional. The name of the branch in the Git remote to which commits should + * be pushed. If left unset, the repository's default branch name will be + * used. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1551,9 +1908,9 @@ export class DataformClient { * @param {string} request.name * Required. The workspace's name. * @param {string} [request.remoteBranch] - * Optional. The name of the branch in the Git remote against which this workspace - * should be compared. If left unset, the repository's default branch name - * will be used. + * Optional. The name of the branch in the Git remote against which this + * workspace should be compared. If left unset, the repository's default + * branch name will be used. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1655,8 +2012,8 @@ export class DataformClient { * @param {string} [request.commitMessage] * Optional. The commit's message. * @param {string[]} [request.paths] - * Optional. Full file paths to commit including filename, rooted at workspace root. If - * left empty, all files will be committed. + * Optional. Full file paths to commit including filename, rooted at workspace + * root. If left empty, all files will be committed. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1758,8 +2115,8 @@ export class DataformClient { * @param {string} request.name * Required. The workspace's name. * @param {string[]} [request.paths] - * Optional. Full file paths to reset back to their committed state including filename, - * rooted at workspace root. If left empty, all files will be reset. + * Optional. Full file paths to reset back to their committed state including + * filename, rooted at workspace root. If left empty, all files will be reset. * @param {boolean} [request.clean] * Optional. If set to true, untracked files will be deleted. * @param {object} [options] @@ -1859,7 +2216,8 @@ export class DataformClient { * @param {string} request.workspace * Required. The workspace's name. * @param {string} request.path - * Required. The file's full path including filename, relative to the workspace root. + * Required. The file's full path including filename, relative to the + * workspace root. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1951,8 +2309,8 @@ export class DataformClient { * @param {string} request.workspace * Required. The workspace's name. * @param {string} request.path - * Required. The directory's full path including directory name, relative to the - * workspace root. + * Required. The directory's full path including directory name, relative to + * the workspace root. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2044,8 +2402,8 @@ export class DataformClient { * @param {string} request.workspace * Required. The workspace's name. * @param {string} request.path - * Required. The directory's full path including directory name, relative to the - * workspace root. + * Required. The directory's full path including directory name, relative to + * the workspace root. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2138,11 +2496,11 @@ export class DataformClient { * @param {string} request.workspace * Required. The workspace's name. * @param {string} request.path - * Required. The directory's full path including directory name, relative to the - * workspace root. + * Required. The directory's full path including directory name, relative to + * the workspace root. * @param {string} request.newPath - * Required. The new path for the directory including directory name, rooted at - * workspace root. + * Required. The new path for the directory including directory name, rooted + * at workspace root. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2234,7 +2592,8 @@ export class DataformClient { * @param {string} request.workspace * Required. The workspace's name. * @param {string} request.path - * Required. The file's full path including filename, relative to the workspace root. + * Required. The file's full path including filename, relative to the + * workspace root. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2320,7 +2679,8 @@ export class DataformClient { * @param {string} request.workspace * Required. The workspace's name. * @param {string} request.path - * Required. The file's full path including filename, relative to the workspace root. + * Required. The file's full path including filename, relative to the + * workspace root. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2412,9 +2772,11 @@ export class DataformClient { * @param {string} request.workspace * Required. The workspace's name. * @param {string} request.path - * Required. The file's full path including filename, relative to the workspace root. + * Required. The file's full path including filename, relative to the + * workspace root. * @param {string} request.newPath - * Required. The file's new path including filename, relative to the workspace root. + * Required. The file's new path including filename, relative to the workspace + * root. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2581,80 +2943,74 @@ export class DataformClient { return this.innerApiCalls.writeFile(request, options, callback); } /** - * Fetches a single CompilationResult. + * Fetches a single ReleaseConfig. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The compilation result's name. + * Required. The release config's name. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing {@link protos.google.cloud.dataform.v1beta1.CompilationResult|CompilationResult}. + * The first element of the array is an object representing {@link protos.google.cloud.dataform.v1beta1.ReleaseConfig|ReleaseConfig}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. - * @example include:samples/generated/v1beta1/dataform.get_compilation_result.js - * region_tag:dataform_v1beta1_generated_Dataform_GetCompilationResult_async + * @example include:samples/generated/v1beta1/dataform.get_release_config.js + * region_tag:dataform_v1beta1_generated_Dataform_GetReleaseConfig_async */ - getCompilationResult( - request?: protos.google.cloud.dataform.v1beta1.IGetCompilationResultRequest, + getReleaseConfig( + request?: protos.google.cloud.dataform.v1beta1.IGetReleaseConfigRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.dataform.v1beta1.ICompilationResult, - ( - | protos.google.cloud.dataform.v1beta1.IGetCompilationResultRequest - | undefined - ), + protos.google.cloud.dataform.v1beta1.IReleaseConfig, + protos.google.cloud.dataform.v1beta1.IGetReleaseConfigRequest | undefined, {} | undefined, ] >; - getCompilationResult( - request: protos.google.cloud.dataform.v1beta1.IGetCompilationResultRequest, + getReleaseConfig( + request: protos.google.cloud.dataform.v1beta1.IGetReleaseConfigRequest, options: CallOptions, callback: Callback< - protos.google.cloud.dataform.v1beta1.ICompilationResult, - | protos.google.cloud.dataform.v1beta1.IGetCompilationResultRequest + protos.google.cloud.dataform.v1beta1.IReleaseConfig, + | protos.google.cloud.dataform.v1beta1.IGetReleaseConfigRequest | null | undefined, {} | null | undefined > ): void; - getCompilationResult( - request: protos.google.cloud.dataform.v1beta1.IGetCompilationResultRequest, + getReleaseConfig( + request: protos.google.cloud.dataform.v1beta1.IGetReleaseConfigRequest, callback: Callback< - protos.google.cloud.dataform.v1beta1.ICompilationResult, - | protos.google.cloud.dataform.v1beta1.IGetCompilationResultRequest + protos.google.cloud.dataform.v1beta1.IReleaseConfig, + | protos.google.cloud.dataform.v1beta1.IGetReleaseConfigRequest | null | undefined, {} | null | undefined > ): void; - getCompilationResult( - request?: protos.google.cloud.dataform.v1beta1.IGetCompilationResultRequest, + getReleaseConfig( + request?: protos.google.cloud.dataform.v1beta1.IGetReleaseConfigRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.cloud.dataform.v1beta1.ICompilationResult, - | protos.google.cloud.dataform.v1beta1.IGetCompilationResultRequest + protos.google.cloud.dataform.v1beta1.IReleaseConfig, + | protos.google.cloud.dataform.v1beta1.IGetReleaseConfigRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.dataform.v1beta1.ICompilationResult, - | protos.google.cloud.dataform.v1beta1.IGetCompilationResultRequest + protos.google.cloud.dataform.v1beta1.IReleaseConfig, + | protos.google.cloud.dataform.v1beta1.IGetReleaseConfigRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.dataform.v1beta1.ICompilationResult, - ( - | protos.google.cloud.dataform.v1beta1.IGetCompilationResultRequest - | undefined - ), + protos.google.cloud.dataform.v1beta1.IReleaseConfig, + protos.google.cloud.dataform.v1beta1.IGetReleaseConfigRequest | undefined, {} | undefined, ] > | void { @@ -2674,84 +3030,87 @@ export class DataformClient { name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.getCompilationResult(request, options, callback); + return this.innerApiCalls.getReleaseConfig(request, options, callback); } /** - * Creates a new CompilationResult in a given project and location. + * Creates a new ReleaseConfig in a given Repository. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The repository in which to create the compilation result. Must be in the - * format `projects/* /locations/* /repositories/*`. - * @param {google.cloud.dataform.v1beta1.CompilationResult} request.compilationResult - * Required. The compilation result to create. + * Required. The repository in which to create the release config. Must be in + * the format `projects/* /locations/* /repositories/*`. + * @param {google.cloud.dataform.v1beta1.ReleaseConfig} request.releaseConfig + * Required. The release config to create. + * @param {string} request.releaseConfigId + * Required. The ID to use for the release config, which will become the final + * component of the release config's resource name. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing {@link protos.google.cloud.dataform.v1beta1.CompilationResult|CompilationResult}. + * The first element of the array is an object representing {@link protos.google.cloud.dataform.v1beta1.ReleaseConfig|ReleaseConfig}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. - * @example include:samples/generated/v1beta1/dataform.create_compilation_result.js - * region_tag:dataform_v1beta1_generated_Dataform_CreateCompilationResult_async + * @example include:samples/generated/v1beta1/dataform.create_release_config.js + * region_tag:dataform_v1beta1_generated_Dataform_CreateReleaseConfig_async */ - createCompilationResult( - request?: protos.google.cloud.dataform.v1beta1.ICreateCompilationResultRequest, + createReleaseConfig( + request?: protos.google.cloud.dataform.v1beta1.ICreateReleaseConfigRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.dataform.v1beta1.ICompilationResult, + protos.google.cloud.dataform.v1beta1.IReleaseConfig, ( - | protos.google.cloud.dataform.v1beta1.ICreateCompilationResultRequest + | protos.google.cloud.dataform.v1beta1.ICreateReleaseConfigRequest | undefined ), {} | undefined, ] >; - createCompilationResult( - request: protos.google.cloud.dataform.v1beta1.ICreateCompilationResultRequest, + createReleaseConfig( + request: protos.google.cloud.dataform.v1beta1.ICreateReleaseConfigRequest, options: CallOptions, callback: Callback< - protos.google.cloud.dataform.v1beta1.ICompilationResult, - | protos.google.cloud.dataform.v1beta1.ICreateCompilationResultRequest + protos.google.cloud.dataform.v1beta1.IReleaseConfig, + | protos.google.cloud.dataform.v1beta1.ICreateReleaseConfigRequest | null | undefined, {} | null | undefined > ): void; - createCompilationResult( - request: protos.google.cloud.dataform.v1beta1.ICreateCompilationResultRequest, + createReleaseConfig( + request: protos.google.cloud.dataform.v1beta1.ICreateReleaseConfigRequest, callback: Callback< - protos.google.cloud.dataform.v1beta1.ICompilationResult, - | protos.google.cloud.dataform.v1beta1.ICreateCompilationResultRequest + protos.google.cloud.dataform.v1beta1.IReleaseConfig, + | protos.google.cloud.dataform.v1beta1.ICreateReleaseConfigRequest | null | undefined, {} | null | undefined > ): void; - createCompilationResult( - request?: protos.google.cloud.dataform.v1beta1.ICreateCompilationResultRequest, + createReleaseConfig( + request?: protos.google.cloud.dataform.v1beta1.ICreateReleaseConfigRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.cloud.dataform.v1beta1.ICompilationResult, - | protos.google.cloud.dataform.v1beta1.ICreateCompilationResultRequest + protos.google.cloud.dataform.v1beta1.IReleaseConfig, + | protos.google.cloud.dataform.v1beta1.ICreateReleaseConfigRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.dataform.v1beta1.ICompilationResult, - | protos.google.cloud.dataform.v1beta1.ICreateCompilationResultRequest + protos.google.cloud.dataform.v1beta1.IReleaseConfig, + | protos.google.cloud.dataform.v1beta1.ICreateReleaseConfigRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.dataform.v1beta1.ICompilationResult, + protos.google.cloud.dataform.v1beta1.IReleaseConfig, ( - | protos.google.cloud.dataform.v1beta1.ICreateCompilationResultRequest + | protos.google.cloud.dataform.v1beta1.ICreateReleaseConfigRequest | undefined ), {} | undefined, @@ -2773,85 +3132,84 @@ export class DataformClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.createCompilationResult( - request, - options, - callback - ); + return this.innerApiCalls.createReleaseConfig(request, options, callback); } /** - * Fetches a single WorkflowInvocation. + * Updates a single ReleaseConfig. * * @param {Object} request * The request object that will be sent. - * @param {string} request.name - * Required. The workflow invocation resource's name. + * @param {google.protobuf.FieldMask} [request.updateMask] + * Optional. Specifies the fields to be updated in the release config. If left + * unset, all fields will be updated. + * @param {google.cloud.dataform.v1beta1.ReleaseConfig} request.releaseConfig + * Required. The release config to update. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing {@link protos.google.cloud.dataform.v1beta1.WorkflowInvocation|WorkflowInvocation}. + * The first element of the array is an object representing {@link protos.google.cloud.dataform.v1beta1.ReleaseConfig|ReleaseConfig}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. - * @example include:samples/generated/v1beta1/dataform.get_workflow_invocation.js - * region_tag:dataform_v1beta1_generated_Dataform_GetWorkflowInvocation_async + * @example include:samples/generated/v1beta1/dataform.update_release_config.js + * region_tag:dataform_v1beta1_generated_Dataform_UpdateReleaseConfig_async */ - getWorkflowInvocation( - request?: protos.google.cloud.dataform.v1beta1.IGetWorkflowInvocationRequest, + updateReleaseConfig( + request?: protos.google.cloud.dataform.v1beta1.IUpdateReleaseConfigRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.dataform.v1beta1.IWorkflowInvocation, + protos.google.cloud.dataform.v1beta1.IReleaseConfig, ( - | protos.google.cloud.dataform.v1beta1.IGetWorkflowInvocationRequest + | protos.google.cloud.dataform.v1beta1.IUpdateReleaseConfigRequest | undefined ), {} | undefined, ] >; - getWorkflowInvocation( - request: protos.google.cloud.dataform.v1beta1.IGetWorkflowInvocationRequest, + updateReleaseConfig( + request: protos.google.cloud.dataform.v1beta1.IUpdateReleaseConfigRequest, options: CallOptions, callback: Callback< - protos.google.cloud.dataform.v1beta1.IWorkflowInvocation, - | protos.google.cloud.dataform.v1beta1.IGetWorkflowInvocationRequest + protos.google.cloud.dataform.v1beta1.IReleaseConfig, + | protos.google.cloud.dataform.v1beta1.IUpdateReleaseConfigRequest | null | undefined, {} | null | undefined > ): void; - getWorkflowInvocation( - request: protos.google.cloud.dataform.v1beta1.IGetWorkflowInvocationRequest, + updateReleaseConfig( + request: protos.google.cloud.dataform.v1beta1.IUpdateReleaseConfigRequest, callback: Callback< - protos.google.cloud.dataform.v1beta1.IWorkflowInvocation, - | protos.google.cloud.dataform.v1beta1.IGetWorkflowInvocationRequest + protos.google.cloud.dataform.v1beta1.IReleaseConfig, + | protos.google.cloud.dataform.v1beta1.IUpdateReleaseConfigRequest | null | undefined, {} | null | undefined > ): void; - getWorkflowInvocation( - request?: protos.google.cloud.dataform.v1beta1.IGetWorkflowInvocationRequest, + updateReleaseConfig( + request?: protos.google.cloud.dataform.v1beta1.IUpdateReleaseConfigRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.cloud.dataform.v1beta1.IWorkflowInvocation, - | protos.google.cloud.dataform.v1beta1.IGetWorkflowInvocationRequest + protos.google.cloud.dataform.v1beta1.IReleaseConfig, + | protos.google.cloud.dataform.v1beta1.IUpdateReleaseConfigRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.dataform.v1beta1.IWorkflowInvocation, - | protos.google.cloud.dataform.v1beta1.IGetWorkflowInvocationRequest + protos.google.cloud.dataform.v1beta1.IReleaseConfig, + | protos.google.cloud.dataform.v1beta1.IUpdateReleaseConfigRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.dataform.v1beta1.IWorkflowInvocation, + protos.google.cloud.dataform.v1beta1.IReleaseConfig, ( - | protos.google.cloud.dataform.v1beta1.IGetWorkflowInvocationRequest + | protos.google.cloud.dataform.v1beta1.IUpdateReleaseConfigRequest | undefined ), {} | undefined, @@ -2870,87 +3228,84 @@ export class DataformClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name ?? '', + 'release_config.name': request.releaseConfig!.name ?? '', }); this.initialize(); - return this.innerApiCalls.getWorkflowInvocation(request, options, callback); + return this.innerApiCalls.updateReleaseConfig(request, options, callback); } /** - * Creates a new WorkflowInvocation in a given Repository. + * Deletes a single ReleaseConfig. * * @param {Object} request * The request object that will be sent. - * @param {string} request.parent - * Required. The repository in which to create the workflow invocation. Must be in the - * format `projects/* /locations/* /repositories/*`. - * @param {google.cloud.dataform.v1beta1.WorkflowInvocation} request.workflowInvocation - * Required. The workflow invocation resource to create. + * @param {string} request.name + * Required. The release config's name. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing {@link protos.google.cloud.dataform.v1beta1.WorkflowInvocation|WorkflowInvocation}. + * The first element of the array is an object representing {@link protos.google.protobuf.Empty|Empty}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. - * @example include:samples/generated/v1beta1/dataform.create_workflow_invocation.js - * region_tag:dataform_v1beta1_generated_Dataform_CreateWorkflowInvocation_async + * @example include:samples/generated/v1beta1/dataform.delete_release_config.js + * region_tag:dataform_v1beta1_generated_Dataform_DeleteReleaseConfig_async */ - createWorkflowInvocation( - request?: protos.google.cloud.dataform.v1beta1.ICreateWorkflowInvocationRequest, + deleteReleaseConfig( + request?: protos.google.cloud.dataform.v1beta1.IDeleteReleaseConfigRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.dataform.v1beta1.IWorkflowInvocation, + protos.google.protobuf.IEmpty, ( - | protos.google.cloud.dataform.v1beta1.ICreateWorkflowInvocationRequest + | protos.google.cloud.dataform.v1beta1.IDeleteReleaseConfigRequest | undefined ), {} | undefined, ] >; - createWorkflowInvocation( - request: protos.google.cloud.dataform.v1beta1.ICreateWorkflowInvocationRequest, + deleteReleaseConfig( + request: protos.google.cloud.dataform.v1beta1.IDeleteReleaseConfigRequest, options: CallOptions, callback: Callback< - protos.google.cloud.dataform.v1beta1.IWorkflowInvocation, - | protos.google.cloud.dataform.v1beta1.ICreateWorkflowInvocationRequest + protos.google.protobuf.IEmpty, + | protos.google.cloud.dataform.v1beta1.IDeleteReleaseConfigRequest | null | undefined, {} | null | undefined > ): void; - createWorkflowInvocation( - request: protos.google.cloud.dataform.v1beta1.ICreateWorkflowInvocationRequest, + deleteReleaseConfig( + request: protos.google.cloud.dataform.v1beta1.IDeleteReleaseConfigRequest, callback: Callback< - protos.google.cloud.dataform.v1beta1.IWorkflowInvocation, - | protos.google.cloud.dataform.v1beta1.ICreateWorkflowInvocationRequest + protos.google.protobuf.IEmpty, + | protos.google.cloud.dataform.v1beta1.IDeleteReleaseConfigRequest | null | undefined, {} | null | undefined > ): void; - createWorkflowInvocation( - request?: protos.google.cloud.dataform.v1beta1.ICreateWorkflowInvocationRequest, + deleteReleaseConfig( + request?: protos.google.cloud.dataform.v1beta1.IDeleteReleaseConfigRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.cloud.dataform.v1beta1.IWorkflowInvocation, - | protos.google.cloud.dataform.v1beta1.ICreateWorkflowInvocationRequest + protos.google.protobuf.IEmpty, + | protos.google.cloud.dataform.v1beta1.IDeleteReleaseConfigRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.dataform.v1beta1.IWorkflowInvocation, - | protos.google.cloud.dataform.v1beta1.ICreateWorkflowInvocationRequest + protos.google.protobuf.IEmpty, + | protos.google.cloud.dataform.v1beta1.IDeleteReleaseConfigRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.dataform.v1beta1.IWorkflowInvocation, + protos.google.protobuf.IEmpty, ( - | protos.google.cloud.dataform.v1beta1.ICreateWorkflowInvocationRequest + | protos.google.cloud.dataform.v1beta1.IDeleteReleaseConfigRequest | undefined ), {} | undefined, @@ -2969,88 +3324,84 @@ export class DataformClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent ?? '', + name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.createWorkflowInvocation( - request, - options, - callback - ); + return this.innerApiCalls.deleteReleaseConfig(request, options, callback); } /** - * Deletes a single WorkflowInvocation. + * Fetches a single CompilationResult. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The workflow invocation resource's name. + * Required. The compilation result's name. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing {@link protos.google.protobuf.Empty|Empty}. + * The first element of the array is an object representing {@link protos.google.cloud.dataform.v1beta1.CompilationResult|CompilationResult}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. - * @example include:samples/generated/v1beta1/dataform.delete_workflow_invocation.js - * region_tag:dataform_v1beta1_generated_Dataform_DeleteWorkflowInvocation_async + * @example include:samples/generated/v1beta1/dataform.get_compilation_result.js + * region_tag:dataform_v1beta1_generated_Dataform_GetCompilationResult_async */ - deleteWorkflowInvocation( - request?: protos.google.cloud.dataform.v1beta1.IDeleteWorkflowInvocationRequest, + getCompilationResult( + request?: protos.google.cloud.dataform.v1beta1.IGetCompilationResultRequest, options?: CallOptions ): Promise< [ - protos.google.protobuf.IEmpty, + protos.google.cloud.dataform.v1beta1.ICompilationResult, ( - | protos.google.cloud.dataform.v1beta1.IDeleteWorkflowInvocationRequest + | protos.google.cloud.dataform.v1beta1.IGetCompilationResultRequest | undefined ), {} | undefined, ] >; - deleteWorkflowInvocation( - request: protos.google.cloud.dataform.v1beta1.IDeleteWorkflowInvocationRequest, + getCompilationResult( + request: protos.google.cloud.dataform.v1beta1.IGetCompilationResultRequest, options: CallOptions, callback: Callback< - protos.google.protobuf.IEmpty, - | protos.google.cloud.dataform.v1beta1.IDeleteWorkflowInvocationRequest + protos.google.cloud.dataform.v1beta1.ICompilationResult, + | protos.google.cloud.dataform.v1beta1.IGetCompilationResultRequest | null | undefined, {} | null | undefined > ): void; - deleteWorkflowInvocation( - request: protos.google.cloud.dataform.v1beta1.IDeleteWorkflowInvocationRequest, + getCompilationResult( + request: protos.google.cloud.dataform.v1beta1.IGetCompilationResultRequest, callback: Callback< - protos.google.protobuf.IEmpty, - | protos.google.cloud.dataform.v1beta1.IDeleteWorkflowInvocationRequest + protos.google.cloud.dataform.v1beta1.ICompilationResult, + | protos.google.cloud.dataform.v1beta1.IGetCompilationResultRequest | null | undefined, {} | null | undefined > ): void; - deleteWorkflowInvocation( - request?: protos.google.cloud.dataform.v1beta1.IDeleteWorkflowInvocationRequest, + getCompilationResult( + request?: protos.google.cloud.dataform.v1beta1.IGetCompilationResultRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.protobuf.IEmpty, - | protos.google.cloud.dataform.v1beta1.IDeleteWorkflowInvocationRequest + protos.google.cloud.dataform.v1beta1.ICompilationResult, + | protos.google.cloud.dataform.v1beta1.IGetCompilationResultRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.protobuf.IEmpty, - | protos.google.cloud.dataform.v1beta1.IDeleteWorkflowInvocationRequest + protos.google.cloud.dataform.v1beta1.ICompilationResult, + | protos.google.cloud.dataform.v1beta1.IGetCompilationResultRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.protobuf.IEmpty, + protos.google.cloud.dataform.v1beta1.ICompilationResult, ( - | protos.google.cloud.dataform.v1beta1.IDeleteWorkflowInvocationRequest + | protos.google.cloud.dataform.v1beta1.IGetCompilationResultRequest | undefined ), {} | undefined, @@ -3072,85 +3423,84 @@ export class DataformClient { name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.deleteWorkflowInvocation( - request, - options, - callback - ); + return this.innerApiCalls.getCompilationResult(request, options, callback); } /** - * Requests cancellation of a running WorkflowInvocation. + * Creates a new CompilationResult in a given project and location. * * @param {Object} request * The request object that will be sent. - * @param {string} request.name - * Required. The workflow invocation resource's name. + * @param {string} request.parent + * Required. The repository in which to create the compilation result. Must be + * in the format `projects/* /locations/* /repositories/*`. + * @param {google.cloud.dataform.v1beta1.CompilationResult} request.compilationResult + * Required. The compilation result to create. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing {@link protos.google.protobuf.Empty|Empty}. + * The first element of the array is an object representing {@link protos.google.cloud.dataform.v1beta1.CompilationResult|CompilationResult}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. - * @example include:samples/generated/v1beta1/dataform.cancel_workflow_invocation.js - * region_tag:dataform_v1beta1_generated_Dataform_CancelWorkflowInvocation_async + * @example include:samples/generated/v1beta1/dataform.create_compilation_result.js + * region_tag:dataform_v1beta1_generated_Dataform_CreateCompilationResult_async */ - cancelWorkflowInvocation( - request?: protos.google.cloud.dataform.v1beta1.ICancelWorkflowInvocationRequest, + createCompilationResult( + request?: protos.google.cloud.dataform.v1beta1.ICreateCompilationResultRequest, options?: CallOptions ): Promise< [ - protos.google.protobuf.IEmpty, + protos.google.cloud.dataform.v1beta1.ICompilationResult, ( - | protos.google.cloud.dataform.v1beta1.ICancelWorkflowInvocationRequest + | protos.google.cloud.dataform.v1beta1.ICreateCompilationResultRequest | undefined ), {} | undefined, ] >; - cancelWorkflowInvocation( - request: protos.google.cloud.dataform.v1beta1.ICancelWorkflowInvocationRequest, + createCompilationResult( + request: protos.google.cloud.dataform.v1beta1.ICreateCompilationResultRequest, options: CallOptions, callback: Callback< - protos.google.protobuf.IEmpty, - | protos.google.cloud.dataform.v1beta1.ICancelWorkflowInvocationRequest + protos.google.cloud.dataform.v1beta1.ICompilationResult, + | protos.google.cloud.dataform.v1beta1.ICreateCompilationResultRequest | null | undefined, {} | null | undefined > ): void; - cancelWorkflowInvocation( - request: protos.google.cloud.dataform.v1beta1.ICancelWorkflowInvocationRequest, + createCompilationResult( + request: protos.google.cloud.dataform.v1beta1.ICreateCompilationResultRequest, callback: Callback< - protos.google.protobuf.IEmpty, - | protos.google.cloud.dataform.v1beta1.ICancelWorkflowInvocationRequest + protos.google.cloud.dataform.v1beta1.ICompilationResult, + | protos.google.cloud.dataform.v1beta1.ICreateCompilationResultRequest | null | undefined, {} | null | undefined > ): void; - cancelWorkflowInvocation( - request?: protos.google.cloud.dataform.v1beta1.ICancelWorkflowInvocationRequest, + createCompilationResult( + request?: protos.google.cloud.dataform.v1beta1.ICreateCompilationResultRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.protobuf.IEmpty, - | protos.google.cloud.dataform.v1beta1.ICancelWorkflowInvocationRequest + protos.google.cloud.dataform.v1beta1.ICompilationResult, + | protos.google.cloud.dataform.v1beta1.ICreateCompilationResultRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.protobuf.IEmpty, - | protos.google.cloud.dataform.v1beta1.ICancelWorkflowInvocationRequest + protos.google.cloud.dataform.v1beta1.ICompilationResult, + | protos.google.cloud.dataform.v1beta1.ICreateCompilationResultRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.protobuf.IEmpty, + protos.google.cloud.dataform.v1beta1.ICompilationResult, ( - | protos.google.cloud.dataform.v1beta1.ICancelWorkflowInvocationRequest + | protos.google.cloud.dataform.v1beta1.ICreateCompilationResultRequest | undefined ), {} | undefined, @@ -3169,106 +3519,1789 @@ export class DataformClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name ?? '', + parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.cancelWorkflowInvocation( + return this.innerApiCalls.createCompilationResult( request, options, callback ); } - /** - * Lists Repositories in a given project and location. + * Fetches a single WorkflowConfig. * * @param {Object} request * The request object that will be sent. - * @param {string} request.parent - * Required. The location in which to list repositories. Must be in the format - * `projects/* /locations/*`. - * @param {number} [request.pageSize] - * Optional. Maximum number of repositories to return. The server may return fewer - * items than requested. If unspecified, the server will pick an appropriate - * default. + * @param {string} request.name + * Required. The workflow config's name. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link protos.google.cloud.dataform.v1beta1.WorkflowConfig|WorkflowConfig}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta1/dataform.get_workflow_config.js + * region_tag:dataform_v1beta1_generated_Dataform_GetWorkflowConfig_async + */ + getWorkflowConfig( + request?: protos.google.cloud.dataform.v1beta1.IGetWorkflowConfigRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.dataform.v1beta1.IWorkflowConfig, + ( + | protos.google.cloud.dataform.v1beta1.IGetWorkflowConfigRequest + | undefined + ), + {} | undefined, + ] + >; + getWorkflowConfig( + request: protos.google.cloud.dataform.v1beta1.IGetWorkflowConfigRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.dataform.v1beta1.IWorkflowConfig, + | protos.google.cloud.dataform.v1beta1.IGetWorkflowConfigRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getWorkflowConfig( + request: protos.google.cloud.dataform.v1beta1.IGetWorkflowConfigRequest, + callback: Callback< + protos.google.cloud.dataform.v1beta1.IWorkflowConfig, + | protos.google.cloud.dataform.v1beta1.IGetWorkflowConfigRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getWorkflowConfig( + request?: protos.google.cloud.dataform.v1beta1.IGetWorkflowConfigRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.dataform.v1beta1.IWorkflowConfig, + | protos.google.cloud.dataform.v1beta1.IGetWorkflowConfigRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.dataform.v1beta1.IWorkflowConfig, + | protos.google.cloud.dataform.v1beta1.IGetWorkflowConfigRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.dataform.v1beta1.IWorkflowConfig, + ( + | protos.google.cloud.dataform.v1beta1.IGetWorkflowConfigRequest + | undefined + ), + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.getWorkflowConfig(request, options, callback); + } + /** + * Creates a new WorkflowConfig in a given Repository. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The repository in which to create the workflow config. Must be in + * the format `projects/* /locations/* /repositories/*`. + * @param {google.cloud.dataform.v1beta1.WorkflowConfig} request.workflowConfig + * Required. The workflow config to create. + * @param {string} request.workflowConfigId + * Required. The ID to use for the workflow config, which will become the + * final component of the workflow config's resource name. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link protos.google.cloud.dataform.v1beta1.WorkflowConfig|WorkflowConfig}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta1/dataform.create_workflow_config.js + * region_tag:dataform_v1beta1_generated_Dataform_CreateWorkflowConfig_async + */ + createWorkflowConfig( + request?: protos.google.cloud.dataform.v1beta1.ICreateWorkflowConfigRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.dataform.v1beta1.IWorkflowConfig, + ( + | protos.google.cloud.dataform.v1beta1.ICreateWorkflowConfigRequest + | undefined + ), + {} | undefined, + ] + >; + createWorkflowConfig( + request: protos.google.cloud.dataform.v1beta1.ICreateWorkflowConfigRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.dataform.v1beta1.IWorkflowConfig, + | protos.google.cloud.dataform.v1beta1.ICreateWorkflowConfigRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createWorkflowConfig( + request: protos.google.cloud.dataform.v1beta1.ICreateWorkflowConfigRequest, + callback: Callback< + protos.google.cloud.dataform.v1beta1.IWorkflowConfig, + | protos.google.cloud.dataform.v1beta1.ICreateWorkflowConfigRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createWorkflowConfig( + request?: protos.google.cloud.dataform.v1beta1.ICreateWorkflowConfigRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.dataform.v1beta1.IWorkflowConfig, + | protos.google.cloud.dataform.v1beta1.ICreateWorkflowConfigRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.dataform.v1beta1.IWorkflowConfig, + | protos.google.cloud.dataform.v1beta1.ICreateWorkflowConfigRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.dataform.v1beta1.IWorkflowConfig, + ( + | protos.google.cloud.dataform.v1beta1.ICreateWorkflowConfigRequest + | undefined + ), + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.createWorkflowConfig(request, options, callback); + } + /** + * Updates a single WorkflowConfig. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.protobuf.FieldMask} [request.updateMask] + * Optional. Specifies the fields to be updated in the workflow config. If + * left unset, all fields will be updated. + * @param {google.cloud.dataform.v1beta1.WorkflowConfig} request.workflowConfig + * Required. The workflow config to update. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link protos.google.cloud.dataform.v1beta1.WorkflowConfig|WorkflowConfig}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta1/dataform.update_workflow_config.js + * region_tag:dataform_v1beta1_generated_Dataform_UpdateWorkflowConfig_async + */ + updateWorkflowConfig( + request?: protos.google.cloud.dataform.v1beta1.IUpdateWorkflowConfigRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.dataform.v1beta1.IWorkflowConfig, + ( + | protos.google.cloud.dataform.v1beta1.IUpdateWorkflowConfigRequest + | undefined + ), + {} | undefined, + ] + >; + updateWorkflowConfig( + request: protos.google.cloud.dataform.v1beta1.IUpdateWorkflowConfigRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.dataform.v1beta1.IWorkflowConfig, + | protos.google.cloud.dataform.v1beta1.IUpdateWorkflowConfigRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateWorkflowConfig( + request: protos.google.cloud.dataform.v1beta1.IUpdateWorkflowConfigRequest, + callback: Callback< + protos.google.cloud.dataform.v1beta1.IWorkflowConfig, + | protos.google.cloud.dataform.v1beta1.IUpdateWorkflowConfigRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateWorkflowConfig( + request?: protos.google.cloud.dataform.v1beta1.IUpdateWorkflowConfigRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.dataform.v1beta1.IWorkflowConfig, + | protos.google.cloud.dataform.v1beta1.IUpdateWorkflowConfigRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.dataform.v1beta1.IWorkflowConfig, + | protos.google.cloud.dataform.v1beta1.IUpdateWorkflowConfigRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.dataform.v1beta1.IWorkflowConfig, + ( + | protos.google.cloud.dataform.v1beta1.IUpdateWorkflowConfigRequest + | undefined + ), + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + 'workflow_config.name': request.workflowConfig!.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.updateWorkflowConfig(request, options, callback); + } + /** + * Deletes a single WorkflowConfig. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The workflow config's name. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link protos.google.protobuf.Empty|Empty}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta1/dataform.delete_workflow_config.js + * region_tag:dataform_v1beta1_generated_Dataform_DeleteWorkflowConfig_async + */ + deleteWorkflowConfig( + request?: protos.google.cloud.dataform.v1beta1.IDeleteWorkflowConfigRequest, + options?: CallOptions + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.cloud.dataform.v1beta1.IDeleteWorkflowConfigRequest + | undefined + ), + {} | undefined, + ] + >; + deleteWorkflowConfig( + request: protos.google.cloud.dataform.v1beta1.IDeleteWorkflowConfigRequest, + options: CallOptions, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.dataform.v1beta1.IDeleteWorkflowConfigRequest + | null + | undefined, + {} | null | undefined + > + ): void; + deleteWorkflowConfig( + request: protos.google.cloud.dataform.v1beta1.IDeleteWorkflowConfigRequest, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.dataform.v1beta1.IDeleteWorkflowConfigRequest + | null + | undefined, + {} | null | undefined + > + ): void; + deleteWorkflowConfig( + request?: protos.google.cloud.dataform.v1beta1.IDeleteWorkflowConfigRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.dataform.v1beta1.IDeleteWorkflowConfigRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.dataform.v1beta1.IDeleteWorkflowConfigRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.cloud.dataform.v1beta1.IDeleteWorkflowConfigRequest + | undefined + ), + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.deleteWorkflowConfig(request, options, callback); + } + /** + * Fetches a single WorkflowInvocation. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The workflow invocation resource's name. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link protos.google.cloud.dataform.v1beta1.WorkflowInvocation|WorkflowInvocation}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta1/dataform.get_workflow_invocation.js + * region_tag:dataform_v1beta1_generated_Dataform_GetWorkflowInvocation_async + */ + getWorkflowInvocation( + request?: protos.google.cloud.dataform.v1beta1.IGetWorkflowInvocationRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.dataform.v1beta1.IWorkflowInvocation, + ( + | protos.google.cloud.dataform.v1beta1.IGetWorkflowInvocationRequest + | undefined + ), + {} | undefined, + ] + >; + getWorkflowInvocation( + request: protos.google.cloud.dataform.v1beta1.IGetWorkflowInvocationRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.dataform.v1beta1.IWorkflowInvocation, + | protos.google.cloud.dataform.v1beta1.IGetWorkflowInvocationRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getWorkflowInvocation( + request: protos.google.cloud.dataform.v1beta1.IGetWorkflowInvocationRequest, + callback: Callback< + protos.google.cloud.dataform.v1beta1.IWorkflowInvocation, + | protos.google.cloud.dataform.v1beta1.IGetWorkflowInvocationRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getWorkflowInvocation( + request?: protos.google.cloud.dataform.v1beta1.IGetWorkflowInvocationRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.dataform.v1beta1.IWorkflowInvocation, + | protos.google.cloud.dataform.v1beta1.IGetWorkflowInvocationRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.dataform.v1beta1.IWorkflowInvocation, + | protos.google.cloud.dataform.v1beta1.IGetWorkflowInvocationRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.dataform.v1beta1.IWorkflowInvocation, + ( + | protos.google.cloud.dataform.v1beta1.IGetWorkflowInvocationRequest + | undefined + ), + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.getWorkflowInvocation(request, options, callback); + } + /** + * Creates a new WorkflowInvocation in a given Repository. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The repository in which to create the workflow invocation. Must + * be in the format `projects/* /locations/* /repositories/*`. + * @param {google.cloud.dataform.v1beta1.WorkflowInvocation} request.workflowInvocation + * Required. The workflow invocation resource to create. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link protos.google.cloud.dataform.v1beta1.WorkflowInvocation|WorkflowInvocation}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta1/dataform.create_workflow_invocation.js + * region_tag:dataform_v1beta1_generated_Dataform_CreateWorkflowInvocation_async + */ + createWorkflowInvocation( + request?: protos.google.cloud.dataform.v1beta1.ICreateWorkflowInvocationRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.dataform.v1beta1.IWorkflowInvocation, + ( + | protos.google.cloud.dataform.v1beta1.ICreateWorkflowInvocationRequest + | undefined + ), + {} | undefined, + ] + >; + createWorkflowInvocation( + request: protos.google.cloud.dataform.v1beta1.ICreateWorkflowInvocationRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.dataform.v1beta1.IWorkflowInvocation, + | protos.google.cloud.dataform.v1beta1.ICreateWorkflowInvocationRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createWorkflowInvocation( + request: protos.google.cloud.dataform.v1beta1.ICreateWorkflowInvocationRequest, + callback: Callback< + protos.google.cloud.dataform.v1beta1.IWorkflowInvocation, + | protos.google.cloud.dataform.v1beta1.ICreateWorkflowInvocationRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createWorkflowInvocation( + request?: protos.google.cloud.dataform.v1beta1.ICreateWorkflowInvocationRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.dataform.v1beta1.IWorkflowInvocation, + | protos.google.cloud.dataform.v1beta1.ICreateWorkflowInvocationRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.dataform.v1beta1.IWorkflowInvocation, + | protos.google.cloud.dataform.v1beta1.ICreateWorkflowInvocationRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.dataform.v1beta1.IWorkflowInvocation, + ( + | protos.google.cloud.dataform.v1beta1.ICreateWorkflowInvocationRequest + | undefined + ), + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.createWorkflowInvocation( + request, + options, + callback + ); + } + /** + * Deletes a single WorkflowInvocation. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The workflow invocation resource's name. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link protos.google.protobuf.Empty|Empty}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta1/dataform.delete_workflow_invocation.js + * region_tag:dataform_v1beta1_generated_Dataform_DeleteWorkflowInvocation_async + */ + deleteWorkflowInvocation( + request?: protos.google.cloud.dataform.v1beta1.IDeleteWorkflowInvocationRequest, + options?: CallOptions + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.cloud.dataform.v1beta1.IDeleteWorkflowInvocationRequest + | undefined + ), + {} | undefined, + ] + >; + deleteWorkflowInvocation( + request: protos.google.cloud.dataform.v1beta1.IDeleteWorkflowInvocationRequest, + options: CallOptions, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.dataform.v1beta1.IDeleteWorkflowInvocationRequest + | null + | undefined, + {} | null | undefined + > + ): void; + deleteWorkflowInvocation( + request: protos.google.cloud.dataform.v1beta1.IDeleteWorkflowInvocationRequest, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.dataform.v1beta1.IDeleteWorkflowInvocationRequest + | null + | undefined, + {} | null | undefined + > + ): void; + deleteWorkflowInvocation( + request?: protos.google.cloud.dataform.v1beta1.IDeleteWorkflowInvocationRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.dataform.v1beta1.IDeleteWorkflowInvocationRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.dataform.v1beta1.IDeleteWorkflowInvocationRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.cloud.dataform.v1beta1.IDeleteWorkflowInvocationRequest + | undefined + ), + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.deleteWorkflowInvocation( + request, + options, + callback + ); + } + /** + * Requests cancellation of a running WorkflowInvocation. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The workflow invocation resource's name. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link protos.google.protobuf.Empty|Empty}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta1/dataform.cancel_workflow_invocation.js + * region_tag:dataform_v1beta1_generated_Dataform_CancelWorkflowInvocation_async + */ + cancelWorkflowInvocation( + request?: protos.google.cloud.dataform.v1beta1.ICancelWorkflowInvocationRequest, + options?: CallOptions + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.cloud.dataform.v1beta1.ICancelWorkflowInvocationRequest + | undefined + ), + {} | undefined, + ] + >; + cancelWorkflowInvocation( + request: protos.google.cloud.dataform.v1beta1.ICancelWorkflowInvocationRequest, + options: CallOptions, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.dataform.v1beta1.ICancelWorkflowInvocationRequest + | null + | undefined, + {} | null | undefined + > + ): void; + cancelWorkflowInvocation( + request: protos.google.cloud.dataform.v1beta1.ICancelWorkflowInvocationRequest, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.dataform.v1beta1.ICancelWorkflowInvocationRequest + | null + | undefined, + {} | null | undefined + > + ): void; + cancelWorkflowInvocation( + request?: protos.google.cloud.dataform.v1beta1.ICancelWorkflowInvocationRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.dataform.v1beta1.ICancelWorkflowInvocationRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.dataform.v1beta1.ICancelWorkflowInvocationRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.cloud.dataform.v1beta1.ICancelWorkflowInvocationRequest + | undefined + ), + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.cancelWorkflowInvocation( + request, + options, + callback + ); + } + + /** + * Lists Repositories in a given project and location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The location in which to list repositories. Must be in the format + * `projects/* /locations/*`. + * @param {number} [request.pageSize] + * Optional. Maximum number of repositories to return. The server may return + * fewer items than requested. If unspecified, the server will pick an + * appropriate default. + * @param {string} [request.pageToken] + * Optional. Page token received from a previous `ListRepositories` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `ListRepositories` + * must match the call that provided the page token. + * @param {string} [request.orderBy] + * Optional. This field only supports ordering by `name`. If unspecified, the + * server will choose the ordering. If specified, the default order is + * ascending for the `name` field. + * @param {string} [request.filter] + * Optional. Filter for the returned list. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of {@link protos.google.cloud.dataform.v1beta1.Repository|Repository}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listRepositoriesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listRepositories( + request?: protos.google.cloud.dataform.v1beta1.IListRepositoriesRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.dataform.v1beta1.IRepository[], + protos.google.cloud.dataform.v1beta1.IListRepositoriesRequest | null, + protos.google.cloud.dataform.v1beta1.IListRepositoriesResponse, + ] + >; + listRepositories( + request: protos.google.cloud.dataform.v1beta1.IListRepositoriesRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.dataform.v1beta1.IListRepositoriesRequest, + | protos.google.cloud.dataform.v1beta1.IListRepositoriesResponse + | null + | undefined, + protos.google.cloud.dataform.v1beta1.IRepository + > + ): void; + listRepositories( + request: protos.google.cloud.dataform.v1beta1.IListRepositoriesRequest, + callback: PaginationCallback< + protos.google.cloud.dataform.v1beta1.IListRepositoriesRequest, + | protos.google.cloud.dataform.v1beta1.IListRepositoriesResponse + | null + | undefined, + protos.google.cloud.dataform.v1beta1.IRepository + > + ): void; + listRepositories( + request?: protos.google.cloud.dataform.v1beta1.IListRepositoriesRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.dataform.v1beta1.IListRepositoriesRequest, + | protos.google.cloud.dataform.v1beta1.IListRepositoriesResponse + | null + | undefined, + protos.google.cloud.dataform.v1beta1.IRepository + >, + callback?: PaginationCallback< + protos.google.cloud.dataform.v1beta1.IListRepositoriesRequest, + | protos.google.cloud.dataform.v1beta1.IListRepositoriesResponse + | null + | undefined, + protos.google.cloud.dataform.v1beta1.IRepository + > + ): Promise< + [ + protos.google.cloud.dataform.v1beta1.IRepository[], + protos.google.cloud.dataform.v1beta1.IListRepositoriesRequest | null, + protos.google.cloud.dataform.v1beta1.IListRepositoriesResponse, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.listRepositories(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The location in which to list repositories. Must be in the format + * `projects/* /locations/*`. + * @param {number} [request.pageSize] + * Optional. Maximum number of repositories to return. The server may return + * fewer items than requested. If unspecified, the server will pick an + * appropriate default. + * @param {string} [request.pageToken] + * Optional. Page token received from a previous `ListRepositories` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `ListRepositories` + * must match the call that provided the page token. + * @param {string} [request.orderBy] + * Optional. This field only supports ordering by `name`. If unspecified, the + * server will choose the ordering. If specified, the default order is + * ascending for the `name` field. + * @param {string} [request.filter] + * Optional. Filter for the returned list. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing {@link protos.google.cloud.dataform.v1beta1.Repository|Repository} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listRepositoriesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listRepositoriesStream( + request?: protos.google.cloud.dataform.v1beta1.IListRepositoriesRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listRepositories']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listRepositories.createStream( + this.innerApiCalls.listRepositories as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listRepositories`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The location in which to list repositories. Must be in the format + * `projects/* /locations/*`. + * @param {number} [request.pageSize] + * Optional. Maximum number of repositories to return. The server may return + * fewer items than requested. If unspecified, the server will pick an + * appropriate default. + * @param {string} [request.pageToken] + * Optional. Page token received from a previous `ListRepositories` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `ListRepositories` + * must match the call that provided the page token. + * @param {string} [request.orderBy] + * Optional. This field only supports ordering by `name`. If unspecified, the + * server will choose the ordering. If specified, the default order is + * ascending for the `name` field. + * @param {string} [request.filter] + * Optional. Filter for the returned list. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. + * When you iterate the returned iterable, each element will be an object representing + * {@link protos.google.cloud.dataform.v1beta1.Repository|Repository}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta1/dataform.list_repositories.js + * region_tag:dataform_v1beta1_generated_Dataform_ListRepositories_async + */ + listRepositoriesAsync( + request?: protos.google.cloud.dataform.v1beta1.IListRepositoriesRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listRepositories']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listRepositories.asyncIterate( + this.innerApiCalls['listRepositories'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + /** + * Returns the contents of a given Repository directory. The Repository must + * not have a value for `git_remote_settings.url`. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The repository's name. + * @param {string} [request.commitSha] + * Optional. The Commit SHA for the commit to query from. If unset, the + * directory will be queried from HEAD. + * @param {string} [request.path] + * Optional. The directory's full path including directory name, relative to + * root. If left unset, the root is used. + * @param {number} [request.pageSize] + * Optional. Maximum number of paths to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * @param {string} [request.pageToken] + * Optional. Page token received from a previous + * `QueryRepositoryDirectoryContents` call. Provide this to retrieve the + * subsequent page. + * + * When paginating, all other parameters provided to + * `QueryRepositoryDirectoryContents` must match the call that provided the + * page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of {@link protos.google.cloud.dataform.v1beta1.DirectoryEntry|DirectoryEntry}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `queryRepositoryDirectoryContentsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + queryRepositoryDirectoryContents( + request?: protos.google.cloud.dataform.v1beta1.IQueryRepositoryDirectoryContentsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.dataform.v1beta1.IDirectoryEntry[], + protos.google.cloud.dataform.v1beta1.IQueryRepositoryDirectoryContentsRequest | null, + protos.google.cloud.dataform.v1beta1.IQueryRepositoryDirectoryContentsResponse, + ] + >; + queryRepositoryDirectoryContents( + request: protos.google.cloud.dataform.v1beta1.IQueryRepositoryDirectoryContentsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.dataform.v1beta1.IQueryRepositoryDirectoryContentsRequest, + | protos.google.cloud.dataform.v1beta1.IQueryRepositoryDirectoryContentsResponse + | null + | undefined, + protos.google.cloud.dataform.v1beta1.IDirectoryEntry + > + ): void; + queryRepositoryDirectoryContents( + request: protos.google.cloud.dataform.v1beta1.IQueryRepositoryDirectoryContentsRequest, + callback: PaginationCallback< + protos.google.cloud.dataform.v1beta1.IQueryRepositoryDirectoryContentsRequest, + | protos.google.cloud.dataform.v1beta1.IQueryRepositoryDirectoryContentsResponse + | null + | undefined, + protos.google.cloud.dataform.v1beta1.IDirectoryEntry + > + ): void; + queryRepositoryDirectoryContents( + request?: protos.google.cloud.dataform.v1beta1.IQueryRepositoryDirectoryContentsRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.dataform.v1beta1.IQueryRepositoryDirectoryContentsRequest, + | protos.google.cloud.dataform.v1beta1.IQueryRepositoryDirectoryContentsResponse + | null + | undefined, + protos.google.cloud.dataform.v1beta1.IDirectoryEntry + >, + callback?: PaginationCallback< + protos.google.cloud.dataform.v1beta1.IQueryRepositoryDirectoryContentsRequest, + | protos.google.cloud.dataform.v1beta1.IQueryRepositoryDirectoryContentsResponse + | null + | undefined, + protos.google.cloud.dataform.v1beta1.IDirectoryEntry + > + ): Promise< + [ + protos.google.cloud.dataform.v1beta1.IDirectoryEntry[], + protos.google.cloud.dataform.v1beta1.IQueryRepositoryDirectoryContentsRequest | null, + protos.google.cloud.dataform.v1beta1.IQueryRepositoryDirectoryContentsResponse, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.queryRepositoryDirectoryContents( + request, + options, + callback + ); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The repository's name. + * @param {string} [request.commitSha] + * Optional. The Commit SHA for the commit to query from. If unset, the + * directory will be queried from HEAD. + * @param {string} [request.path] + * Optional. The directory's full path including directory name, relative to + * root. If left unset, the root is used. + * @param {number} [request.pageSize] + * Optional. Maximum number of paths to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * @param {string} [request.pageToken] + * Optional. Page token received from a previous + * `QueryRepositoryDirectoryContents` call. Provide this to retrieve the + * subsequent page. + * + * When paginating, all other parameters provided to + * `QueryRepositoryDirectoryContents` must match the call that provided the + * page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing {@link protos.google.cloud.dataform.v1beta1.DirectoryEntry|DirectoryEntry} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `queryRepositoryDirectoryContentsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + queryRepositoryDirectoryContentsStream( + request?: protos.google.cloud.dataform.v1beta1.IQueryRepositoryDirectoryContentsRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + const defaultCallSettings = + this._defaults['queryRepositoryDirectoryContents']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.queryRepositoryDirectoryContents.createStream( + this.innerApiCalls.queryRepositoryDirectoryContents as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `queryRepositoryDirectoryContents`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The repository's name. + * @param {string} [request.commitSha] + * Optional. The Commit SHA for the commit to query from. If unset, the + * directory will be queried from HEAD. + * @param {string} [request.path] + * Optional. The directory's full path including directory name, relative to + * root. If left unset, the root is used. + * @param {number} [request.pageSize] + * Optional. Maximum number of paths to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * @param {string} [request.pageToken] + * Optional. Page token received from a previous + * `QueryRepositoryDirectoryContents` call. Provide this to retrieve the + * subsequent page. + * + * When paginating, all other parameters provided to + * `QueryRepositoryDirectoryContents` must match the call that provided the + * page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. + * When you iterate the returned iterable, each element will be an object representing + * {@link protos.google.cloud.dataform.v1beta1.DirectoryEntry|DirectoryEntry}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta1/dataform.query_repository_directory_contents.js + * region_tag:dataform_v1beta1_generated_Dataform_QueryRepositoryDirectoryContents_async + */ + queryRepositoryDirectoryContentsAsync( + request?: protos.google.cloud.dataform.v1beta1.IQueryRepositoryDirectoryContentsRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + const defaultCallSettings = + this._defaults['queryRepositoryDirectoryContents']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.queryRepositoryDirectoryContents.asyncIterate( + this.innerApiCalls['queryRepositoryDirectoryContents'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + /** + * Fetches a Repository's history of commits. The Repository must not have a + * value for `git_remote_settings.url`. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The repository's name. + * @param {number} [request.pageSize] + * Optional. Maximum number of commits to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * @param {string} [request.pageToken] + * Optional. Page token received from a previous `FetchRepositoryHistory` + * call. Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `FetchRepositoryHistory` + * must match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of {@link protos.google.cloud.dataform.v1beta1.CommitLogEntry|CommitLogEntry}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `fetchRepositoryHistoryAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + fetchRepositoryHistory( + request?: protos.google.cloud.dataform.v1beta1.IFetchRepositoryHistoryRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.dataform.v1beta1.ICommitLogEntry[], + protos.google.cloud.dataform.v1beta1.IFetchRepositoryHistoryRequest | null, + protos.google.cloud.dataform.v1beta1.IFetchRepositoryHistoryResponse, + ] + >; + fetchRepositoryHistory( + request: protos.google.cloud.dataform.v1beta1.IFetchRepositoryHistoryRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.dataform.v1beta1.IFetchRepositoryHistoryRequest, + | protos.google.cloud.dataform.v1beta1.IFetchRepositoryHistoryResponse + | null + | undefined, + protos.google.cloud.dataform.v1beta1.ICommitLogEntry + > + ): void; + fetchRepositoryHistory( + request: protos.google.cloud.dataform.v1beta1.IFetchRepositoryHistoryRequest, + callback: PaginationCallback< + protos.google.cloud.dataform.v1beta1.IFetchRepositoryHistoryRequest, + | protos.google.cloud.dataform.v1beta1.IFetchRepositoryHistoryResponse + | null + | undefined, + protos.google.cloud.dataform.v1beta1.ICommitLogEntry + > + ): void; + fetchRepositoryHistory( + request?: protos.google.cloud.dataform.v1beta1.IFetchRepositoryHistoryRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.dataform.v1beta1.IFetchRepositoryHistoryRequest, + | protos.google.cloud.dataform.v1beta1.IFetchRepositoryHistoryResponse + | null + | undefined, + protos.google.cloud.dataform.v1beta1.ICommitLogEntry + >, + callback?: PaginationCallback< + protos.google.cloud.dataform.v1beta1.IFetchRepositoryHistoryRequest, + | protos.google.cloud.dataform.v1beta1.IFetchRepositoryHistoryResponse + | null + | undefined, + protos.google.cloud.dataform.v1beta1.ICommitLogEntry + > + ): Promise< + [ + protos.google.cloud.dataform.v1beta1.ICommitLogEntry[], + protos.google.cloud.dataform.v1beta1.IFetchRepositoryHistoryRequest | null, + protos.google.cloud.dataform.v1beta1.IFetchRepositoryHistoryResponse, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.fetchRepositoryHistory( + request, + options, + callback + ); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The repository's name. + * @param {number} [request.pageSize] + * Optional. Maximum number of commits to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * @param {string} [request.pageToken] + * Optional. Page token received from a previous `FetchRepositoryHistory` + * call. Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `FetchRepositoryHistory` + * must match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing {@link protos.google.cloud.dataform.v1beta1.CommitLogEntry|CommitLogEntry} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `fetchRepositoryHistoryAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + fetchRepositoryHistoryStream( + request?: protos.google.cloud.dataform.v1beta1.IFetchRepositoryHistoryRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + const defaultCallSettings = this._defaults['fetchRepositoryHistory']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.fetchRepositoryHistory.createStream( + this.innerApiCalls.fetchRepositoryHistory as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `fetchRepositoryHistory`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The repository's name. + * @param {number} [request.pageSize] + * Optional. Maximum number of commits to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * @param {string} [request.pageToken] + * Optional. Page token received from a previous `FetchRepositoryHistory` + * call. Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `FetchRepositoryHistory` + * must match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. + * When you iterate the returned iterable, each element will be an object representing + * {@link protos.google.cloud.dataform.v1beta1.CommitLogEntry|CommitLogEntry}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta1/dataform.fetch_repository_history.js + * region_tag:dataform_v1beta1_generated_Dataform_FetchRepositoryHistory_async + */ + fetchRepositoryHistoryAsync( + request?: protos.google.cloud.dataform.v1beta1.IFetchRepositoryHistoryRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + const defaultCallSettings = this._defaults['fetchRepositoryHistory']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.fetchRepositoryHistory.asyncIterate( + this.innerApiCalls['fetchRepositoryHistory'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + /** + * Lists Workspaces in a given Repository. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The repository in which to list workspaces. Must be in the + * format `projects/* /locations/* /repositories/*`. + * @param {number} [request.pageSize] + * Optional. Maximum number of workspaces to return. The server may return + * fewer items than requested. If unspecified, the server will pick an + * appropriate default. + * @param {string} [request.pageToken] + * Optional. Page token received from a previous `ListWorkspaces` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `ListWorkspaces` + * must match the call that provided the page token. + * @param {string} [request.orderBy] + * Optional. This field only supports ordering by `name`. If unspecified, the + * server will choose the ordering. If specified, the default order is + * ascending for the `name` field. + * @param {string} [request.filter] + * Optional. Filter for the returned list. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of {@link protos.google.cloud.dataform.v1beta1.Workspace|Workspace}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listWorkspacesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listWorkspaces( + request?: protos.google.cloud.dataform.v1beta1.IListWorkspacesRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.dataform.v1beta1.IWorkspace[], + protos.google.cloud.dataform.v1beta1.IListWorkspacesRequest | null, + protos.google.cloud.dataform.v1beta1.IListWorkspacesResponse, + ] + >; + listWorkspaces( + request: protos.google.cloud.dataform.v1beta1.IListWorkspacesRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.dataform.v1beta1.IListWorkspacesRequest, + | protos.google.cloud.dataform.v1beta1.IListWorkspacesResponse + | null + | undefined, + protos.google.cloud.dataform.v1beta1.IWorkspace + > + ): void; + listWorkspaces( + request: protos.google.cloud.dataform.v1beta1.IListWorkspacesRequest, + callback: PaginationCallback< + protos.google.cloud.dataform.v1beta1.IListWorkspacesRequest, + | protos.google.cloud.dataform.v1beta1.IListWorkspacesResponse + | null + | undefined, + protos.google.cloud.dataform.v1beta1.IWorkspace + > + ): void; + listWorkspaces( + request?: protos.google.cloud.dataform.v1beta1.IListWorkspacesRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.dataform.v1beta1.IListWorkspacesRequest, + | protos.google.cloud.dataform.v1beta1.IListWorkspacesResponse + | null + | undefined, + protos.google.cloud.dataform.v1beta1.IWorkspace + >, + callback?: PaginationCallback< + protos.google.cloud.dataform.v1beta1.IListWorkspacesRequest, + | protos.google.cloud.dataform.v1beta1.IListWorkspacesResponse + | null + | undefined, + protos.google.cloud.dataform.v1beta1.IWorkspace + > + ): Promise< + [ + protos.google.cloud.dataform.v1beta1.IWorkspace[], + protos.google.cloud.dataform.v1beta1.IListWorkspacesRequest | null, + protos.google.cloud.dataform.v1beta1.IListWorkspacesResponse, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.listWorkspaces(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The repository in which to list workspaces. Must be in the + * format `projects/* /locations/* /repositories/*`. + * @param {number} [request.pageSize] + * Optional. Maximum number of workspaces to return. The server may return + * fewer items than requested. If unspecified, the server will pick an + * appropriate default. + * @param {string} [request.pageToken] + * Optional. Page token received from a previous `ListWorkspaces` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `ListWorkspaces` + * must match the call that provided the page token. + * @param {string} [request.orderBy] + * Optional. This field only supports ordering by `name`. If unspecified, the + * server will choose the ordering. If specified, the default order is + * ascending for the `name` field. + * @param {string} [request.filter] + * Optional. Filter for the returned list. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing {@link protos.google.cloud.dataform.v1beta1.Workspace|Workspace} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listWorkspacesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listWorkspacesStream( + request?: protos.google.cloud.dataform.v1beta1.IListWorkspacesRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listWorkspaces']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listWorkspaces.createStream( + this.innerApiCalls.listWorkspaces as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listWorkspaces`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The repository in which to list workspaces. Must be in the + * format `projects/* /locations/* /repositories/*`. + * @param {number} [request.pageSize] + * Optional. Maximum number of workspaces to return. The server may return + * fewer items than requested. If unspecified, the server will pick an + * appropriate default. * @param {string} [request.pageToken] - * Optional. Page token received from a previous `ListRepositories` call. + * Optional. Page token received from a previous `ListWorkspaces` call. * Provide this to retrieve the subsequent page. * - * When paginating, all other parameters provided to `ListRepositories` + * When paginating, all other parameters provided to `ListWorkspaces` * must match the call that provided the page token. * @param {string} [request.orderBy] - * Optional. This field only supports ordering by `name`. If unspecified, the server - * will choose the ordering. If specified, the default order is ascending for - * the `name` field. + * Optional. This field only supports ordering by `name`. If unspecified, the + * server will choose the ordering. If specified, the default order is + * ascending for the `name` field. * @param {string} [request.filter] * Optional. Filter for the returned list. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. + * When you iterate the returned iterable, each element will be an object representing + * {@link protos.google.cloud.dataform.v1beta1.Workspace|Workspace}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta1/dataform.list_workspaces.js + * region_tag:dataform_v1beta1_generated_Dataform_ListWorkspaces_async + */ + listWorkspacesAsync( + request?: protos.google.cloud.dataform.v1beta1.IListWorkspacesRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listWorkspaces']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listWorkspaces.asyncIterate( + this.innerApiCalls['listWorkspaces'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + /** + * Returns the contents of a given Workspace directory. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.workspace + * Required. The workspace's name. + * @param {string} [request.path] + * Optional. The directory's full path including directory name, relative to + * the workspace root. If left unset, the workspace root is used. + * @param {number} [request.pageSize] + * Optional. Maximum number of paths to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * @param {string} [request.pageToken] + * Optional. Page token received from a previous `QueryDirectoryContents` + * call. Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * `QueryDirectoryContents` must match the call that provided the page + * token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of {@link protos.google.cloud.dataform.v1beta1.Repository|Repository}. + * The first element of the array is Array of {@link protos.google.cloud.dataform.v1beta1.DirectoryEntry|DirectoryEntry}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listRepositoriesAsync()` + * We recommend using `queryDirectoryContentsAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ - listRepositories( - request?: protos.google.cloud.dataform.v1beta1.IListRepositoriesRequest, + queryDirectoryContents( + request?: protos.google.cloud.dataform.v1beta1.IQueryDirectoryContentsRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.dataform.v1beta1.IRepository[], - protos.google.cloud.dataform.v1beta1.IListRepositoriesRequest | null, - protos.google.cloud.dataform.v1beta1.IListRepositoriesResponse, + protos.google.cloud.dataform.v1beta1.IDirectoryEntry[], + protos.google.cloud.dataform.v1beta1.IQueryDirectoryContentsRequest | null, + protos.google.cloud.dataform.v1beta1.IQueryDirectoryContentsResponse, ] >; - listRepositories( - request: protos.google.cloud.dataform.v1beta1.IListRepositoriesRequest, + queryDirectoryContents( + request: protos.google.cloud.dataform.v1beta1.IQueryDirectoryContentsRequest, options: CallOptions, callback: PaginationCallback< - protos.google.cloud.dataform.v1beta1.IListRepositoriesRequest, - | protos.google.cloud.dataform.v1beta1.IListRepositoriesResponse + protos.google.cloud.dataform.v1beta1.IQueryDirectoryContentsRequest, + | protos.google.cloud.dataform.v1beta1.IQueryDirectoryContentsResponse | null | undefined, - protos.google.cloud.dataform.v1beta1.IRepository + protos.google.cloud.dataform.v1beta1.IDirectoryEntry > ): void; - listRepositories( - request: protos.google.cloud.dataform.v1beta1.IListRepositoriesRequest, + queryDirectoryContents( + request: protos.google.cloud.dataform.v1beta1.IQueryDirectoryContentsRequest, callback: PaginationCallback< - protos.google.cloud.dataform.v1beta1.IListRepositoriesRequest, - | protos.google.cloud.dataform.v1beta1.IListRepositoriesResponse + protos.google.cloud.dataform.v1beta1.IQueryDirectoryContentsRequest, + | protos.google.cloud.dataform.v1beta1.IQueryDirectoryContentsResponse | null | undefined, - protos.google.cloud.dataform.v1beta1.IRepository + protos.google.cloud.dataform.v1beta1.IDirectoryEntry > ): void; - listRepositories( - request?: protos.google.cloud.dataform.v1beta1.IListRepositoriesRequest, + queryDirectoryContents( + request?: protos.google.cloud.dataform.v1beta1.IQueryDirectoryContentsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.cloud.dataform.v1beta1.IListRepositoriesRequest, - | protos.google.cloud.dataform.v1beta1.IListRepositoriesResponse + protos.google.cloud.dataform.v1beta1.IQueryDirectoryContentsRequest, + | protos.google.cloud.dataform.v1beta1.IQueryDirectoryContentsResponse | null | undefined, - protos.google.cloud.dataform.v1beta1.IRepository + protos.google.cloud.dataform.v1beta1.IDirectoryEntry >, callback?: PaginationCallback< - protos.google.cloud.dataform.v1beta1.IListRepositoriesRequest, - | protos.google.cloud.dataform.v1beta1.IListRepositoriesResponse + protos.google.cloud.dataform.v1beta1.IQueryDirectoryContentsRequest, + | protos.google.cloud.dataform.v1beta1.IQueryDirectoryContentsResponse | null | undefined, - protos.google.cloud.dataform.v1beta1.IRepository + protos.google.cloud.dataform.v1beta1.IDirectoryEntry > ): Promise< [ - protos.google.cloud.dataform.v1beta1.IRepository[], - protos.google.cloud.dataform.v1beta1.IListRepositoriesRequest | null, - protos.google.cloud.dataform.v1beta1.IListRepositoriesResponse, + protos.google.cloud.dataform.v1beta1.IDirectoryEntry[], + protos.google.cloud.dataform.v1beta1.IQueryDirectoryContentsRequest | null, + protos.google.cloud.dataform.v1beta1.IQueryDirectoryContentsResponse, ] > | void { request = request || {}; @@ -3284,48 +5317,49 @@ export class DataformClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent ?? '', + workspace: request.workspace ?? '', }); this.initialize(); - return this.innerApiCalls.listRepositories(request, options, callback); + return this.innerApiCalls.queryDirectoryContents( + request, + options, + callback + ); } /** * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. * @param {Object} request * The request object that will be sent. - * @param {string} request.parent - * Required. The location in which to list repositories. Must be in the format - * `projects/* /locations/*`. + * @param {string} request.workspace + * Required. The workspace's name. + * @param {string} [request.path] + * Optional. The directory's full path including directory name, relative to + * the workspace root. If left unset, the workspace root is used. * @param {number} [request.pageSize] - * Optional. Maximum number of repositories to return. The server may return fewer + * Optional. Maximum number of paths to return. The server may return fewer * items than requested. If unspecified, the server will pick an appropriate * default. * @param {string} [request.pageToken] - * Optional. Page token received from a previous `ListRepositories` call. - * Provide this to retrieve the subsequent page. + * Optional. Page token received from a previous `QueryDirectoryContents` + * call. Provide this to retrieve the subsequent page. * - * When paginating, all other parameters provided to `ListRepositories` - * must match the call that provided the page token. - * @param {string} [request.orderBy] - * Optional. This field only supports ordering by `name`. If unspecified, the server - * will choose the ordering. If specified, the default order is ascending for - * the `name` field. - * @param {string} [request.filter] - * Optional. Filter for the returned list. + * When paginating, all other parameters provided to + * `QueryDirectoryContents` must match the call that provided the page + * token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing {@link protos.google.cloud.dataform.v1beta1.Repository|Repository} on 'data' event. + * An object stream which emits an object representing {@link protos.google.cloud.dataform.v1beta1.DirectoryEntry|DirectoryEntry} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listRepositoriesAsync()` + * We recommend using `queryDirectoryContentsAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ - listRepositoriesStream( - request?: protos.google.cloud.dataform.v1beta1.IListRepositoriesRequest, + queryDirectoryContentsStream( + request?: protos.google.cloud.dataform.v1beta1.IQueryDirectoryContentsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -3334,166 +5368,157 @@ export class DataformClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent ?? '', + workspace: request.workspace ?? '', }); - const defaultCallSettings = this._defaults['listRepositories']; + const defaultCallSettings = this._defaults['queryDirectoryContents']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listRepositories.createStream( - this.innerApiCalls.listRepositories as GaxCall, + return this.descriptors.page.queryDirectoryContents.createStream( + this.innerApiCalls.queryDirectoryContents as GaxCall, request, callSettings ); } /** - * Equivalent to `listRepositories`, but returns an iterable object. + * Equivalent to `queryDirectoryContents`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. - * @param {string} request.parent - * Required. The location in which to list repositories. Must be in the format - * `projects/* /locations/*`. + * @param {string} request.workspace + * Required. The workspace's name. + * @param {string} [request.path] + * Optional. The directory's full path including directory name, relative to + * the workspace root. If left unset, the workspace root is used. * @param {number} [request.pageSize] - * Optional. Maximum number of repositories to return. The server may return fewer + * Optional. Maximum number of paths to return. The server may return fewer * items than requested. If unspecified, the server will pick an appropriate * default. * @param {string} [request.pageToken] - * Optional. Page token received from a previous `ListRepositories` call. - * Provide this to retrieve the subsequent page. + * Optional. Page token received from a previous `QueryDirectoryContents` + * call. Provide this to retrieve the subsequent page. * - * When paginating, all other parameters provided to `ListRepositories` - * must match the call that provided the page token. - * @param {string} [request.orderBy] - * Optional. This field only supports ordering by `name`. If unspecified, the server - * will choose the ordering. If specified, the default order is ascending for - * the `name` field. - * @param {string} [request.filter] - * Optional. Filter for the returned list. + * When paginating, all other parameters provided to + * `QueryDirectoryContents` must match the call that provided the page + * token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. * When you iterate the returned iterable, each element will be an object representing - * {@link protos.google.cloud.dataform.v1beta1.Repository|Repository}. The API will be called under the hood as needed, once per the page, + * {@link protos.google.cloud.dataform.v1beta1.DirectoryEntry|DirectoryEntry}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. - * @example include:samples/generated/v1beta1/dataform.list_repositories.js - * region_tag:dataform_v1beta1_generated_Dataform_ListRepositories_async + * @example include:samples/generated/v1beta1/dataform.query_directory_contents.js + * region_tag:dataform_v1beta1_generated_Dataform_QueryDirectoryContents_async */ - listRepositoriesAsync( - request?: protos.google.cloud.dataform.v1beta1.IListRepositoriesRequest, + queryDirectoryContentsAsync( + request?: protos.google.cloud.dataform.v1beta1.IQueryDirectoryContentsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent ?? '', + workspace: request.workspace ?? '', }); - const defaultCallSettings = this._defaults['listRepositories']; + const defaultCallSettings = this._defaults['queryDirectoryContents']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listRepositories.asyncIterate( - this.innerApiCalls['listRepositories'] as GaxCall, + return this.descriptors.page.queryDirectoryContents.asyncIterate( + this.innerApiCalls['queryDirectoryContents'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Lists Workspaces in a given Repository. + * Lists ReleaseConfigs in a given Repository. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The repository in which to list workspaces. Must be in the + * Required. The repository in which to list release configs. Must be in the * format `projects/* /locations/* /repositories/*`. * @param {number} [request.pageSize] - * Optional. Maximum number of workspaces to return. The server may return fewer - * items than requested. If unspecified, the server will pick an appropriate - * default. + * Optional. Maximum number of release configs to return. The server may + * return fewer items than requested. If unspecified, the server will pick an + * appropriate default. * @param {string} [request.pageToken] - * Optional. Page token received from a previous `ListWorkspaces` call. + * Optional. Page token received from a previous `ListReleaseConfigs` call. * Provide this to retrieve the subsequent page. * - * When paginating, all other parameters provided to `ListWorkspaces` + * When paginating, all other parameters provided to `ListReleaseConfigs` * must match the call that provided the page token. - * @param {string} [request.orderBy] - * Optional. This field only supports ordering by `name`. If unspecified, the server - * will choose the ordering. If specified, the default order is ascending for - * the `name` field. - * @param {string} [request.filter] - * Optional. Filter for the returned list. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of {@link protos.google.cloud.dataform.v1beta1.Workspace|Workspace}. + * The first element of the array is Array of {@link protos.google.cloud.dataform.v1beta1.ReleaseConfig|ReleaseConfig}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listWorkspacesAsync()` + * We recommend using `listReleaseConfigsAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ - listWorkspaces( - request?: protos.google.cloud.dataform.v1beta1.IListWorkspacesRequest, + listReleaseConfigs( + request?: protos.google.cloud.dataform.v1beta1.IListReleaseConfigsRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.dataform.v1beta1.IWorkspace[], - protos.google.cloud.dataform.v1beta1.IListWorkspacesRequest | null, - protos.google.cloud.dataform.v1beta1.IListWorkspacesResponse, + protos.google.cloud.dataform.v1beta1.IReleaseConfig[], + protos.google.cloud.dataform.v1beta1.IListReleaseConfigsRequest | null, + protos.google.cloud.dataform.v1beta1.IListReleaseConfigsResponse, ] >; - listWorkspaces( - request: protos.google.cloud.dataform.v1beta1.IListWorkspacesRequest, + listReleaseConfigs( + request: protos.google.cloud.dataform.v1beta1.IListReleaseConfigsRequest, options: CallOptions, callback: PaginationCallback< - protos.google.cloud.dataform.v1beta1.IListWorkspacesRequest, - | protos.google.cloud.dataform.v1beta1.IListWorkspacesResponse + protos.google.cloud.dataform.v1beta1.IListReleaseConfigsRequest, + | protos.google.cloud.dataform.v1beta1.IListReleaseConfigsResponse | null | undefined, - protos.google.cloud.dataform.v1beta1.IWorkspace + protos.google.cloud.dataform.v1beta1.IReleaseConfig > ): void; - listWorkspaces( - request: protos.google.cloud.dataform.v1beta1.IListWorkspacesRequest, + listReleaseConfigs( + request: protos.google.cloud.dataform.v1beta1.IListReleaseConfigsRequest, callback: PaginationCallback< - protos.google.cloud.dataform.v1beta1.IListWorkspacesRequest, - | protos.google.cloud.dataform.v1beta1.IListWorkspacesResponse + protos.google.cloud.dataform.v1beta1.IListReleaseConfigsRequest, + | protos.google.cloud.dataform.v1beta1.IListReleaseConfigsResponse | null | undefined, - protos.google.cloud.dataform.v1beta1.IWorkspace + protos.google.cloud.dataform.v1beta1.IReleaseConfig > ): void; - listWorkspaces( - request?: protos.google.cloud.dataform.v1beta1.IListWorkspacesRequest, + listReleaseConfigs( + request?: protos.google.cloud.dataform.v1beta1.IListReleaseConfigsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.cloud.dataform.v1beta1.IListWorkspacesRequest, - | protos.google.cloud.dataform.v1beta1.IListWorkspacesResponse + protos.google.cloud.dataform.v1beta1.IListReleaseConfigsRequest, + | protos.google.cloud.dataform.v1beta1.IListReleaseConfigsResponse | null | undefined, - protos.google.cloud.dataform.v1beta1.IWorkspace + protos.google.cloud.dataform.v1beta1.IReleaseConfig >, callback?: PaginationCallback< - protos.google.cloud.dataform.v1beta1.IListWorkspacesRequest, - | protos.google.cloud.dataform.v1beta1.IListWorkspacesResponse + protos.google.cloud.dataform.v1beta1.IListReleaseConfigsRequest, + | protos.google.cloud.dataform.v1beta1.IListReleaseConfigsResponse | null | undefined, - protos.google.cloud.dataform.v1beta1.IWorkspace + protos.google.cloud.dataform.v1beta1.IReleaseConfig > ): Promise< [ - protos.google.cloud.dataform.v1beta1.IWorkspace[], - protos.google.cloud.dataform.v1beta1.IListWorkspacesRequest | null, - protos.google.cloud.dataform.v1beta1.IListWorkspacesResponse, + protos.google.cloud.dataform.v1beta1.IReleaseConfig[], + protos.google.cloud.dataform.v1beta1.IListReleaseConfigsRequest | null, + protos.google.cloud.dataform.v1beta1.IListReleaseConfigsResponse, ] > | void { request = request || {}; @@ -3512,7 +5537,7 @@ export class DataformClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.listWorkspaces(request, options, callback); + return this.innerApiCalls.listReleaseConfigs(request, options, callback); } /** @@ -3520,37 +5545,31 @@ export class DataformClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The repository in which to list workspaces. Must be in the + * Required. The repository in which to list release configs. Must be in the * format `projects/* /locations/* /repositories/*`. * @param {number} [request.pageSize] - * Optional. Maximum number of workspaces to return. The server may return fewer - * items than requested. If unspecified, the server will pick an appropriate - * default. + * Optional. Maximum number of release configs to return. The server may + * return fewer items than requested. If unspecified, the server will pick an + * appropriate default. * @param {string} [request.pageToken] - * Optional. Page token received from a previous `ListWorkspaces` call. + * Optional. Page token received from a previous `ListReleaseConfigs` call. * Provide this to retrieve the subsequent page. * - * When paginating, all other parameters provided to `ListWorkspaces` + * When paginating, all other parameters provided to `ListReleaseConfigs` * must match the call that provided the page token. - * @param {string} [request.orderBy] - * Optional. This field only supports ordering by `name`. If unspecified, the server - * will choose the ordering. If specified, the default order is ascending for - * the `name` field. - * @param {string} [request.filter] - * Optional. Filter for the returned list. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing {@link protos.google.cloud.dataform.v1beta1.Workspace|Workspace} on 'data' event. + * An object stream which emits an object representing {@link protos.google.cloud.dataform.v1beta1.ReleaseConfig|ReleaseConfig} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listWorkspacesAsync()` + * We recommend using `listReleaseConfigsAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ - listWorkspacesStream( - request?: protos.google.cloud.dataform.v1beta1.IListWorkspacesRequest, + listReleaseConfigsStream( + request?: protos.google.cloud.dataform.v1beta1.IListReleaseConfigsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -3561,57 +5580,51 @@ export class DataformClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listWorkspaces']; + const defaultCallSettings = this._defaults['listReleaseConfigs']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listWorkspaces.createStream( - this.innerApiCalls.listWorkspaces as GaxCall, + return this.descriptors.page.listReleaseConfigs.createStream( + this.innerApiCalls.listReleaseConfigs as GaxCall, request, callSettings ); } /** - * Equivalent to `listWorkspaces`, but returns an iterable object. + * Equivalent to `listReleaseConfigs`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The repository in which to list workspaces. Must be in the + * Required. The repository in which to list release configs. Must be in the * format `projects/* /locations/* /repositories/*`. - * @param {number} [request.pageSize] - * Optional. Maximum number of workspaces to return. The server may return fewer - * items than requested. If unspecified, the server will pick an appropriate - * default. + * @param {number} [request.pageSize] + * Optional. Maximum number of release configs to return. The server may + * return fewer items than requested. If unspecified, the server will pick an + * appropriate default. * @param {string} [request.pageToken] - * Optional. Page token received from a previous `ListWorkspaces` call. + * Optional. Page token received from a previous `ListReleaseConfigs` call. * Provide this to retrieve the subsequent page. * - * When paginating, all other parameters provided to `ListWorkspaces` + * When paginating, all other parameters provided to `ListReleaseConfigs` * must match the call that provided the page token. - * @param {string} [request.orderBy] - * Optional. This field only supports ordering by `name`. If unspecified, the server - * will choose the ordering. If specified, the default order is ascending for - * the `name` field. - * @param {string} [request.filter] - * Optional. Filter for the returned list. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. * When you iterate the returned iterable, each element will be an object representing - * {@link protos.google.cloud.dataform.v1beta1.Workspace|Workspace}. The API will be called under the hood as needed, once per the page, + * {@link protos.google.cloud.dataform.v1beta1.ReleaseConfig|ReleaseConfig}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. - * @example include:samples/generated/v1beta1/dataform.list_workspaces.js - * region_tag:dataform_v1beta1_generated_Dataform_ListWorkspaces_async + * @example include:samples/generated/v1beta1/dataform.list_release_configs.js + * region_tag:dataform_v1beta1_generated_Dataform_ListReleaseConfigs_async */ - listWorkspacesAsync( - request?: protos.google.cloud.dataform.v1beta1.IListWorkspacesRequest, + listReleaseConfigsAsync( + request?: protos.google.cloud.dataform.v1beta1.IListReleaseConfigsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -3620,102 +5633,99 @@ export class DataformClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listWorkspaces']; + const defaultCallSettings = this._defaults['listReleaseConfigs']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listWorkspaces.asyncIterate( - this.innerApiCalls['listWorkspaces'] as GaxCall, + return this.descriptors.page.listReleaseConfigs.asyncIterate( + this.innerApiCalls['listReleaseConfigs'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Returns the contents of a given Workspace directory. + * Lists CompilationResults in a given Repository. * * @param {Object} request * The request object that will be sent. - * @param {string} request.workspace - * Required. The workspace's name. - * @param {string} [request.path] - * Optional. The directory's full path including directory name, relative to the - * workspace root. If left unset, the workspace root is used. + * @param {string} request.parent + * Required. The repository in which to list compilation results. Must be in + * the format `projects/* /locations/* /repositories/*`. * @param {number} [request.pageSize] - * Optional. Maximum number of paths to return. The server may return fewer - * items than requested. If unspecified, the server will pick an appropriate - * default. + * Optional. Maximum number of compilation results to return. The server may + * return fewer items than requested. If unspecified, the server will pick an + * appropriate default. * @param {string} [request.pageToken] - * Optional. Page token received from a previous `QueryDirectoryContents` call. - * Provide this to retrieve the subsequent page. + * Optional. Page token received from a previous `ListCompilationResults` + * call. Provide this to retrieve the subsequent page. * - * When paginating, all other parameters provided to - * `QueryDirectoryContents` must match the call that provided the page - * token. + * When paginating, all other parameters provided to `ListCompilationResults` + * must match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of {@link protos.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry|DirectoryEntry}. + * The first element of the array is Array of {@link protos.google.cloud.dataform.v1beta1.CompilationResult|CompilationResult}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `queryDirectoryContentsAsync()` + * We recommend using `listCompilationResultsAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ - queryDirectoryContents( - request?: protos.google.cloud.dataform.v1beta1.IQueryDirectoryContentsRequest, + listCompilationResults( + request?: protos.google.cloud.dataform.v1beta1.IListCompilationResultsRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.IDirectoryEntry[], - protos.google.cloud.dataform.v1beta1.IQueryDirectoryContentsRequest | null, - protos.google.cloud.dataform.v1beta1.IQueryDirectoryContentsResponse, + protos.google.cloud.dataform.v1beta1.ICompilationResult[], + protos.google.cloud.dataform.v1beta1.IListCompilationResultsRequest | null, + protos.google.cloud.dataform.v1beta1.IListCompilationResultsResponse, ] >; - queryDirectoryContents( - request: protos.google.cloud.dataform.v1beta1.IQueryDirectoryContentsRequest, + listCompilationResults( + request: protos.google.cloud.dataform.v1beta1.IListCompilationResultsRequest, options: CallOptions, callback: PaginationCallback< - protos.google.cloud.dataform.v1beta1.IQueryDirectoryContentsRequest, - | protos.google.cloud.dataform.v1beta1.IQueryDirectoryContentsResponse + protos.google.cloud.dataform.v1beta1.IListCompilationResultsRequest, + | protos.google.cloud.dataform.v1beta1.IListCompilationResultsResponse | null | undefined, - protos.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.IDirectoryEntry + protos.google.cloud.dataform.v1beta1.ICompilationResult > ): void; - queryDirectoryContents( - request: protos.google.cloud.dataform.v1beta1.IQueryDirectoryContentsRequest, + listCompilationResults( + request: protos.google.cloud.dataform.v1beta1.IListCompilationResultsRequest, callback: PaginationCallback< - protos.google.cloud.dataform.v1beta1.IQueryDirectoryContentsRequest, - | protos.google.cloud.dataform.v1beta1.IQueryDirectoryContentsResponse + protos.google.cloud.dataform.v1beta1.IListCompilationResultsRequest, + | protos.google.cloud.dataform.v1beta1.IListCompilationResultsResponse | null | undefined, - protos.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.IDirectoryEntry + protos.google.cloud.dataform.v1beta1.ICompilationResult > ): void; - queryDirectoryContents( - request?: protos.google.cloud.dataform.v1beta1.IQueryDirectoryContentsRequest, + listCompilationResults( + request?: protos.google.cloud.dataform.v1beta1.IListCompilationResultsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.cloud.dataform.v1beta1.IQueryDirectoryContentsRequest, - | protos.google.cloud.dataform.v1beta1.IQueryDirectoryContentsResponse + protos.google.cloud.dataform.v1beta1.IListCompilationResultsRequest, + | protos.google.cloud.dataform.v1beta1.IListCompilationResultsResponse | null | undefined, - protos.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.IDirectoryEntry + protos.google.cloud.dataform.v1beta1.ICompilationResult >, callback?: PaginationCallback< - protos.google.cloud.dataform.v1beta1.IQueryDirectoryContentsRequest, - | protos.google.cloud.dataform.v1beta1.IQueryDirectoryContentsResponse + protos.google.cloud.dataform.v1beta1.IListCompilationResultsRequest, + | protos.google.cloud.dataform.v1beta1.IListCompilationResultsResponse | null | undefined, - protos.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.IDirectoryEntry + protos.google.cloud.dataform.v1beta1.ICompilationResult > ): Promise< [ - protos.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.IDirectoryEntry[], - protos.google.cloud.dataform.v1beta1.IQueryDirectoryContentsRequest | null, - protos.google.cloud.dataform.v1beta1.IQueryDirectoryContentsResponse, + protos.google.cloud.dataform.v1beta1.ICompilationResult[], + protos.google.cloud.dataform.v1beta1.IListCompilationResultsRequest | null, + protos.google.cloud.dataform.v1beta1.IListCompilationResultsResponse, ] > | void { request = request || {}; @@ -3731,10 +5741,10 @@ export class DataformClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - workspace: request.workspace ?? '', + parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.queryDirectoryContents( + return this.innerApiCalls.listCompilationResults( request, options, callback @@ -3745,35 +5755,32 @@ export class DataformClient { * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. * @param {Object} request * The request object that will be sent. - * @param {string} request.workspace - * Required. The workspace's name. - * @param {string} [request.path] - * Optional. The directory's full path including directory name, relative to the - * workspace root. If left unset, the workspace root is used. + * @param {string} request.parent + * Required. The repository in which to list compilation results. Must be in + * the format `projects/* /locations/* /repositories/*`. * @param {number} [request.pageSize] - * Optional. Maximum number of paths to return. The server may return fewer - * items than requested. If unspecified, the server will pick an appropriate - * default. + * Optional. Maximum number of compilation results to return. The server may + * return fewer items than requested. If unspecified, the server will pick an + * appropriate default. * @param {string} [request.pageToken] - * Optional. Page token received from a previous `QueryDirectoryContents` call. - * Provide this to retrieve the subsequent page. + * Optional. Page token received from a previous `ListCompilationResults` + * call. Provide this to retrieve the subsequent page. * - * When paginating, all other parameters provided to - * `QueryDirectoryContents` must match the call that provided the page - * token. + * When paginating, all other parameters provided to `ListCompilationResults` + * must match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing {@link protos.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry|DirectoryEntry} on 'data' event. + * An object stream which emits an object representing {@link protos.google.cloud.dataform.v1beta1.CompilationResult|CompilationResult} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `queryDirectoryContentsAsync()` + * We recommend using `listCompilationResultsAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ - queryDirectoryContentsStream( - request?: protos.google.cloud.dataform.v1beta1.IQueryDirectoryContentsRequest, + listCompilationResultsStream( + request?: protos.google.cloud.dataform.v1beta1.IListCompilationResultsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -3782,157 +5789,158 @@ export class DataformClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - workspace: request.workspace ?? '', + parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['queryDirectoryContents']; + const defaultCallSettings = this._defaults['listCompilationResults']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.queryDirectoryContents.createStream( - this.innerApiCalls.queryDirectoryContents as GaxCall, + return this.descriptors.page.listCompilationResults.createStream( + this.innerApiCalls.listCompilationResults as GaxCall, request, callSettings ); } /** - * Equivalent to `queryDirectoryContents`, but returns an iterable object. + * Equivalent to `listCompilationResults`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. - * @param {string} request.workspace - * Required. The workspace's name. - * @param {string} [request.path] - * Optional. The directory's full path including directory name, relative to the - * workspace root. If left unset, the workspace root is used. + * @param {string} request.parent + * Required. The repository in which to list compilation results. Must be in + * the format `projects/* /locations/* /repositories/*`. * @param {number} [request.pageSize] - * Optional. Maximum number of paths to return. The server may return fewer - * items than requested. If unspecified, the server will pick an appropriate - * default. + * Optional. Maximum number of compilation results to return. The server may + * return fewer items than requested. If unspecified, the server will pick an + * appropriate default. * @param {string} [request.pageToken] - * Optional. Page token received from a previous `QueryDirectoryContents` call. - * Provide this to retrieve the subsequent page. + * Optional. Page token received from a previous `ListCompilationResults` + * call. Provide this to retrieve the subsequent page. * - * When paginating, all other parameters provided to - * `QueryDirectoryContents` must match the call that provided the page - * token. + * When paginating, all other parameters provided to `ListCompilationResults` + * must match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. * When you iterate the returned iterable, each element will be an object representing - * {@link protos.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry|DirectoryEntry}. The API will be called under the hood as needed, once per the page, + * {@link protos.google.cloud.dataform.v1beta1.CompilationResult|CompilationResult}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. - * @example include:samples/generated/v1beta1/dataform.query_directory_contents.js - * region_tag:dataform_v1beta1_generated_Dataform_QueryDirectoryContents_async + * @example include:samples/generated/v1beta1/dataform.list_compilation_results.js + * region_tag:dataform_v1beta1_generated_Dataform_ListCompilationResults_async */ - queryDirectoryContentsAsync( - request?: protos.google.cloud.dataform.v1beta1.IQueryDirectoryContentsRequest, + listCompilationResultsAsync( + request?: protos.google.cloud.dataform.v1beta1.IListCompilationResultsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - workspace: request.workspace ?? '', + parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['queryDirectoryContents']; + const defaultCallSettings = this._defaults['listCompilationResults']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.queryDirectoryContents.asyncIterate( - this.innerApiCalls['queryDirectoryContents'] as GaxCall, + return this.descriptors.page.listCompilationResults.asyncIterate( + this.innerApiCalls['listCompilationResults'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Lists CompilationResults in a given Repository. + * Returns CompilationResultActions in a given CompilationResult. * * @param {Object} request * The request object that will be sent. - * @param {string} request.parent - * Required. The repository in which to list compilation results. Must be in the - * format `projects/* /locations/* /repositories/*`. + * @param {string} request.name + * Required. The compilation result's name. * @param {number} [request.pageSize] - * Optional. Maximum number of compilation results to return. The server may return - * fewer items than requested. If unspecified, the server will pick an + * Optional. Maximum number of compilation results to return. The server may + * return fewer items than requested. If unspecified, the server will pick an * appropriate default. * @param {string} [request.pageToken] - * Optional. Page token received from a previous `ListCompilationResults` call. - * Provide this to retrieve the subsequent page. + * Optional. Page token received from a previous + * `QueryCompilationResultActions` call. Provide this to retrieve the + * subsequent page. * - * When paginating, all other parameters provided to `ListCompilationResults` - * must match the call that provided the page token. + * When paginating, all other parameters provided to + * `QueryCompilationResultActions` must match the call that provided the page + * token. + * @param {string} [request.filter] + * Optional. Optional filter for the returned list. Filtering is only + * currently supported on the `file_path` field. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of {@link protos.google.cloud.dataform.v1beta1.CompilationResult|CompilationResult}. + * The first element of the array is Array of {@link protos.google.cloud.dataform.v1beta1.CompilationResultAction|CompilationResultAction}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listCompilationResultsAsync()` + * We recommend using `queryCompilationResultActionsAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ - listCompilationResults( - request?: protos.google.cloud.dataform.v1beta1.IListCompilationResultsRequest, + queryCompilationResultActions( + request?: protos.google.cloud.dataform.v1beta1.IQueryCompilationResultActionsRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.dataform.v1beta1.ICompilationResult[], - protos.google.cloud.dataform.v1beta1.IListCompilationResultsRequest | null, - protos.google.cloud.dataform.v1beta1.IListCompilationResultsResponse, + protos.google.cloud.dataform.v1beta1.ICompilationResultAction[], + protos.google.cloud.dataform.v1beta1.IQueryCompilationResultActionsRequest | null, + protos.google.cloud.dataform.v1beta1.IQueryCompilationResultActionsResponse, ] >; - listCompilationResults( - request: protos.google.cloud.dataform.v1beta1.IListCompilationResultsRequest, + queryCompilationResultActions( + request: protos.google.cloud.dataform.v1beta1.IQueryCompilationResultActionsRequest, options: CallOptions, callback: PaginationCallback< - protos.google.cloud.dataform.v1beta1.IListCompilationResultsRequest, - | protos.google.cloud.dataform.v1beta1.IListCompilationResultsResponse + protos.google.cloud.dataform.v1beta1.IQueryCompilationResultActionsRequest, + | protos.google.cloud.dataform.v1beta1.IQueryCompilationResultActionsResponse | null | undefined, - protos.google.cloud.dataform.v1beta1.ICompilationResult + protos.google.cloud.dataform.v1beta1.ICompilationResultAction > ): void; - listCompilationResults( - request: protos.google.cloud.dataform.v1beta1.IListCompilationResultsRequest, + queryCompilationResultActions( + request: protos.google.cloud.dataform.v1beta1.IQueryCompilationResultActionsRequest, callback: PaginationCallback< - protos.google.cloud.dataform.v1beta1.IListCompilationResultsRequest, - | protos.google.cloud.dataform.v1beta1.IListCompilationResultsResponse + protos.google.cloud.dataform.v1beta1.IQueryCompilationResultActionsRequest, + | protos.google.cloud.dataform.v1beta1.IQueryCompilationResultActionsResponse | null | undefined, - protos.google.cloud.dataform.v1beta1.ICompilationResult + protos.google.cloud.dataform.v1beta1.ICompilationResultAction > ): void; - listCompilationResults( - request?: protos.google.cloud.dataform.v1beta1.IListCompilationResultsRequest, + queryCompilationResultActions( + request?: protos.google.cloud.dataform.v1beta1.IQueryCompilationResultActionsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.cloud.dataform.v1beta1.IListCompilationResultsRequest, - | protos.google.cloud.dataform.v1beta1.IListCompilationResultsResponse + protos.google.cloud.dataform.v1beta1.IQueryCompilationResultActionsRequest, + | protos.google.cloud.dataform.v1beta1.IQueryCompilationResultActionsResponse | null | undefined, - protos.google.cloud.dataform.v1beta1.ICompilationResult + protos.google.cloud.dataform.v1beta1.ICompilationResultAction >, callback?: PaginationCallback< - protos.google.cloud.dataform.v1beta1.IListCompilationResultsRequest, - | protos.google.cloud.dataform.v1beta1.IListCompilationResultsResponse + protos.google.cloud.dataform.v1beta1.IQueryCompilationResultActionsRequest, + | protos.google.cloud.dataform.v1beta1.IQueryCompilationResultActionsResponse | null | undefined, - protos.google.cloud.dataform.v1beta1.ICompilationResult + protos.google.cloud.dataform.v1beta1.ICompilationResultAction > ): Promise< [ - protos.google.cloud.dataform.v1beta1.ICompilationResult[], - protos.google.cloud.dataform.v1beta1.IListCompilationResultsRequest | null, - protos.google.cloud.dataform.v1beta1.IListCompilationResultsResponse, + protos.google.cloud.dataform.v1beta1.ICompilationResultAction[], + protos.google.cloud.dataform.v1beta1.IQueryCompilationResultActionsRequest | null, + protos.google.cloud.dataform.v1beta1.IQueryCompilationResultActionsResponse, ] > | void { request = request || {}; @@ -3948,10 +5956,10 @@ export class DataformClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent ?? '', + name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.listCompilationResults( + return this.innerApiCalls.queryCompilationResultActions( request, options, callback @@ -3962,32 +5970,36 @@ export class DataformClient { * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. * @param {Object} request * The request object that will be sent. - * @param {string} request.parent - * Required. The repository in which to list compilation results. Must be in the - * format `projects/* /locations/* /repositories/*`. + * @param {string} request.name + * Required. The compilation result's name. * @param {number} [request.pageSize] - * Optional. Maximum number of compilation results to return. The server may return - * fewer items than requested. If unspecified, the server will pick an + * Optional. Maximum number of compilation results to return. The server may + * return fewer items than requested. If unspecified, the server will pick an * appropriate default. * @param {string} [request.pageToken] - * Optional. Page token received from a previous `ListCompilationResults` call. - * Provide this to retrieve the subsequent page. + * Optional. Page token received from a previous + * `QueryCompilationResultActions` call. Provide this to retrieve the + * subsequent page. * - * When paginating, all other parameters provided to `ListCompilationResults` - * must match the call that provided the page token. + * When paginating, all other parameters provided to + * `QueryCompilationResultActions` must match the call that provided the page + * token. + * @param {string} [request.filter] + * Optional. Optional filter for the returned list. Filtering is only + * currently supported on the `file_path` field. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing {@link protos.google.cloud.dataform.v1beta1.CompilationResult|CompilationResult} on 'data' event. + * An object stream which emits an object representing {@link protos.google.cloud.dataform.v1beta1.CompilationResultAction|CompilationResultAction} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listCompilationResultsAsync()` + * We recommend using `queryCompilationResultActionsAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ - listCompilationResultsStream( - request?: protos.google.cloud.dataform.v1beta1.IListCompilationResultsRequest, + queryCompilationResultActionsStream( + request?: protos.google.cloud.dataform.v1beta1.IQueryCompilationResultActionsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -3996,157 +6008,158 @@ export class DataformClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent ?? '', + name: request.name ?? '', }); - const defaultCallSettings = this._defaults['listCompilationResults']; + const defaultCallSettings = this._defaults['queryCompilationResultActions']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listCompilationResults.createStream( - this.innerApiCalls.listCompilationResults as GaxCall, + return this.descriptors.page.queryCompilationResultActions.createStream( + this.innerApiCalls.queryCompilationResultActions as GaxCall, request, callSettings ); } /** - * Equivalent to `listCompilationResults`, but returns an iterable object. + * Equivalent to `queryCompilationResultActions`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. - * @param {string} request.parent - * Required. The repository in which to list compilation results. Must be in the - * format `projects/* /locations/* /repositories/*`. + * @param {string} request.name + * Required. The compilation result's name. * @param {number} [request.pageSize] - * Optional. Maximum number of compilation results to return. The server may return - * fewer items than requested. If unspecified, the server will pick an + * Optional. Maximum number of compilation results to return. The server may + * return fewer items than requested. If unspecified, the server will pick an * appropriate default. * @param {string} [request.pageToken] - * Optional. Page token received from a previous `ListCompilationResults` call. - * Provide this to retrieve the subsequent page. + * Optional. Page token received from a previous + * `QueryCompilationResultActions` call. Provide this to retrieve the + * subsequent page. * - * When paginating, all other parameters provided to `ListCompilationResults` - * must match the call that provided the page token. + * When paginating, all other parameters provided to + * `QueryCompilationResultActions` must match the call that provided the page + * token. + * @param {string} [request.filter] + * Optional. Optional filter for the returned list. Filtering is only + * currently supported on the `file_path` field. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. * When you iterate the returned iterable, each element will be an object representing - * {@link protos.google.cloud.dataform.v1beta1.CompilationResult|CompilationResult}. The API will be called under the hood as needed, once per the page, + * {@link protos.google.cloud.dataform.v1beta1.CompilationResultAction|CompilationResultAction}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. - * @example include:samples/generated/v1beta1/dataform.list_compilation_results.js - * region_tag:dataform_v1beta1_generated_Dataform_ListCompilationResults_async + * @example include:samples/generated/v1beta1/dataform.query_compilation_result_actions.js + * region_tag:dataform_v1beta1_generated_Dataform_QueryCompilationResultActions_async */ - listCompilationResultsAsync( - request?: protos.google.cloud.dataform.v1beta1.IListCompilationResultsRequest, + queryCompilationResultActionsAsync( + request?: protos.google.cloud.dataform.v1beta1.IQueryCompilationResultActionsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent ?? '', + name: request.name ?? '', }); - const defaultCallSettings = this._defaults['listCompilationResults']; + const defaultCallSettings = this._defaults['queryCompilationResultActions']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listCompilationResults.asyncIterate( - this.innerApiCalls['listCompilationResults'] as GaxCall, + return this.descriptors.page.queryCompilationResultActions.asyncIterate( + this.innerApiCalls['queryCompilationResultActions'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Returns CompilationResultActions in a given CompilationResult. + * Lists WorkflowConfigs in a given Repository. * * @param {Object} request * The request object that will be sent. - * @param {string} request.name - * Required. The compilation result's name. + * @param {string} request.parent + * Required. The repository in which to list workflow configs. Must be in the + * format `projects/* /locations/* /repositories/*`. * @param {number} [request.pageSize] - * Optional. Maximum number of compilation results to return. The server may return - * fewer items than requested. If unspecified, the server will pick an + * Optional. Maximum number of workflow configs to return. The server may + * return fewer items than requested. If unspecified, the server will pick an * appropriate default. * @param {string} [request.pageToken] - * Optional. Page token received from a previous `QueryCompilationResultActions` call. + * Optional. Page token received from a previous `ListWorkflowConfigs` call. * Provide this to retrieve the subsequent page. * - * When paginating, all other parameters provided to - * `QueryCompilationResultActions` must match the call that provided the page - * token. - * @param {string} [request.filter] - * Optional. Optional filter for the returned list. Filtering is only currently - * supported on the `file_path` field. + * When paginating, all other parameters provided to `ListWorkflowConfigs` + * must match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of {@link protos.google.cloud.dataform.v1beta1.CompilationResultAction|CompilationResultAction}. + * The first element of the array is Array of {@link protos.google.cloud.dataform.v1beta1.WorkflowConfig|WorkflowConfig}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `queryCompilationResultActionsAsync()` + * We recommend using `listWorkflowConfigsAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ - queryCompilationResultActions( - request?: protos.google.cloud.dataform.v1beta1.IQueryCompilationResultActionsRequest, + listWorkflowConfigs( + request?: protos.google.cloud.dataform.v1beta1.IListWorkflowConfigsRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.dataform.v1beta1.ICompilationResultAction[], - protos.google.cloud.dataform.v1beta1.IQueryCompilationResultActionsRequest | null, - protos.google.cloud.dataform.v1beta1.IQueryCompilationResultActionsResponse, + protos.google.cloud.dataform.v1beta1.IWorkflowConfig[], + protos.google.cloud.dataform.v1beta1.IListWorkflowConfigsRequest | null, + protos.google.cloud.dataform.v1beta1.IListWorkflowConfigsResponse, ] >; - queryCompilationResultActions( - request: protos.google.cloud.dataform.v1beta1.IQueryCompilationResultActionsRequest, + listWorkflowConfigs( + request: protos.google.cloud.dataform.v1beta1.IListWorkflowConfigsRequest, options: CallOptions, callback: PaginationCallback< - protos.google.cloud.dataform.v1beta1.IQueryCompilationResultActionsRequest, - | protos.google.cloud.dataform.v1beta1.IQueryCompilationResultActionsResponse + protos.google.cloud.dataform.v1beta1.IListWorkflowConfigsRequest, + | protos.google.cloud.dataform.v1beta1.IListWorkflowConfigsResponse | null | undefined, - protos.google.cloud.dataform.v1beta1.ICompilationResultAction + protos.google.cloud.dataform.v1beta1.IWorkflowConfig > ): void; - queryCompilationResultActions( - request: protos.google.cloud.dataform.v1beta1.IQueryCompilationResultActionsRequest, + listWorkflowConfigs( + request: protos.google.cloud.dataform.v1beta1.IListWorkflowConfigsRequest, callback: PaginationCallback< - protos.google.cloud.dataform.v1beta1.IQueryCompilationResultActionsRequest, - | protos.google.cloud.dataform.v1beta1.IQueryCompilationResultActionsResponse + protos.google.cloud.dataform.v1beta1.IListWorkflowConfigsRequest, + | protos.google.cloud.dataform.v1beta1.IListWorkflowConfigsResponse | null | undefined, - protos.google.cloud.dataform.v1beta1.ICompilationResultAction + protos.google.cloud.dataform.v1beta1.IWorkflowConfig > ): void; - queryCompilationResultActions( - request?: protos.google.cloud.dataform.v1beta1.IQueryCompilationResultActionsRequest, + listWorkflowConfigs( + request?: protos.google.cloud.dataform.v1beta1.IListWorkflowConfigsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.cloud.dataform.v1beta1.IQueryCompilationResultActionsRequest, - | protos.google.cloud.dataform.v1beta1.IQueryCompilationResultActionsResponse + protos.google.cloud.dataform.v1beta1.IListWorkflowConfigsRequest, + | protos.google.cloud.dataform.v1beta1.IListWorkflowConfigsResponse | null | undefined, - protos.google.cloud.dataform.v1beta1.ICompilationResultAction + protos.google.cloud.dataform.v1beta1.IWorkflowConfig >, callback?: PaginationCallback< - protos.google.cloud.dataform.v1beta1.IQueryCompilationResultActionsRequest, - | protos.google.cloud.dataform.v1beta1.IQueryCompilationResultActionsResponse + protos.google.cloud.dataform.v1beta1.IListWorkflowConfigsRequest, + | protos.google.cloud.dataform.v1beta1.IListWorkflowConfigsResponse | null | undefined, - protos.google.cloud.dataform.v1beta1.ICompilationResultAction + protos.google.cloud.dataform.v1beta1.IWorkflowConfig > ): Promise< [ - protos.google.cloud.dataform.v1beta1.ICompilationResultAction[], - protos.google.cloud.dataform.v1beta1.IQueryCompilationResultActionsRequest | null, - protos.google.cloud.dataform.v1beta1.IQueryCompilationResultActionsResponse, + protos.google.cloud.dataform.v1beta1.IWorkflowConfig[], + protos.google.cloud.dataform.v1beta1.IListWorkflowConfigsRequest | null, + protos.google.cloud.dataform.v1beta1.IListWorkflowConfigsResponse, ] > | void { request = request || {}; @@ -4162,49 +6175,42 @@ export class DataformClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name ?? '', + parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.queryCompilationResultActions( - request, - options, - callback - ); + return this.innerApiCalls.listWorkflowConfigs(request, options, callback); } /** * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. * @param {Object} request * The request object that will be sent. - * @param {string} request.name - * Required. The compilation result's name. + * @param {string} request.parent + * Required. The repository in which to list workflow configs. Must be in the + * format `projects/* /locations/* /repositories/*`. * @param {number} [request.pageSize] - * Optional. Maximum number of compilation results to return. The server may return - * fewer items than requested. If unspecified, the server will pick an + * Optional. Maximum number of workflow configs to return. The server may + * return fewer items than requested. If unspecified, the server will pick an * appropriate default. * @param {string} [request.pageToken] - * Optional. Page token received from a previous `QueryCompilationResultActions` call. + * Optional. Page token received from a previous `ListWorkflowConfigs` call. * Provide this to retrieve the subsequent page. * - * When paginating, all other parameters provided to - * `QueryCompilationResultActions` must match the call that provided the page - * token. - * @param {string} [request.filter] - * Optional. Optional filter for the returned list. Filtering is only currently - * supported on the `file_path` field. + * When paginating, all other parameters provided to `ListWorkflowConfigs` + * must match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing {@link protos.google.cloud.dataform.v1beta1.CompilationResultAction|CompilationResultAction} on 'data' event. + * An object stream which emits an object representing {@link protos.google.cloud.dataform.v1beta1.WorkflowConfig|WorkflowConfig} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `queryCompilationResultActionsAsync()` + * We recommend using `listWorkflowConfigsAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ - queryCompilationResultActionsStream( - request?: protos.google.cloud.dataform.v1beta1.IQueryCompilationResultActionsRequest, + listWorkflowConfigsStream( + request?: protos.google.cloud.dataform.v1beta1.IListWorkflowConfigsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -4213,72 +6219,69 @@ export class DataformClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name ?? '', + parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['queryCompilationResultActions']; + const defaultCallSettings = this._defaults['listWorkflowConfigs']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.queryCompilationResultActions.createStream( - this.innerApiCalls.queryCompilationResultActions as GaxCall, + return this.descriptors.page.listWorkflowConfigs.createStream( + this.innerApiCalls.listWorkflowConfigs as GaxCall, request, callSettings ); } /** - * Equivalent to `queryCompilationResultActions`, but returns an iterable object. + * Equivalent to `listWorkflowConfigs`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. - * @param {string} request.name - * Required. The compilation result's name. + * @param {string} request.parent + * Required. The repository in which to list workflow configs. Must be in the + * format `projects/* /locations/* /repositories/*`. * @param {number} [request.pageSize] - * Optional. Maximum number of compilation results to return. The server may return - * fewer items than requested. If unspecified, the server will pick an + * Optional. Maximum number of workflow configs to return. The server may + * return fewer items than requested. If unspecified, the server will pick an * appropriate default. * @param {string} [request.pageToken] - * Optional. Page token received from a previous `QueryCompilationResultActions` call. + * Optional. Page token received from a previous `ListWorkflowConfigs` call. * Provide this to retrieve the subsequent page. * - * When paginating, all other parameters provided to - * `QueryCompilationResultActions` must match the call that provided the page - * token. - * @param {string} [request.filter] - * Optional. Optional filter for the returned list. Filtering is only currently - * supported on the `file_path` field. + * When paginating, all other parameters provided to `ListWorkflowConfigs` + * must match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. * When you iterate the returned iterable, each element will be an object representing - * {@link protos.google.cloud.dataform.v1beta1.CompilationResultAction|CompilationResultAction}. The API will be called under the hood as needed, once per the page, + * {@link protos.google.cloud.dataform.v1beta1.WorkflowConfig|WorkflowConfig}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. - * @example include:samples/generated/v1beta1/dataform.query_compilation_result_actions.js - * region_tag:dataform_v1beta1_generated_Dataform_QueryCompilationResultActions_async + * @example include:samples/generated/v1beta1/dataform.list_workflow_configs.js + * region_tag:dataform_v1beta1_generated_Dataform_ListWorkflowConfigs_async */ - queryCompilationResultActionsAsync( - request?: protos.google.cloud.dataform.v1beta1.IQueryCompilationResultActionsRequest, + listWorkflowConfigsAsync( + request?: protos.google.cloud.dataform.v1beta1.IListWorkflowConfigsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name ?? '', + parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['queryCompilationResultActions']; + const defaultCallSettings = this._defaults['listWorkflowConfigs']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.queryCompilationResultActions.asyncIterate( - this.innerApiCalls['queryCompilationResultActions'] as GaxCall, + return this.descriptors.page.listWorkflowConfigs.asyncIterate( + this.innerApiCalls['listWorkflowConfigs'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** * Lists WorkflowInvocations in a given Repository. @@ -4286,18 +6289,24 @@ export class DataformClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The parent resource of the WorkflowInvocation type. Must be in the - * format `projects/* /locations/* /repositories/*`. + * Required. The parent resource of the WorkflowInvocation type. Must be in + * the format `projects/* /locations/* /repositories/*`. * @param {number} [request.pageSize] - * Optional. Maximum number of workflow invocations to return. The server may return - * fewer items than requested. If unspecified, the server will pick an + * Optional. Maximum number of workflow invocations to return. The server may + * return fewer items than requested. If unspecified, the server will pick an * appropriate default. * @param {string} [request.pageToken] - * Optional. Page token received from a previous `ListWorkflowInvocations` call. - * Provide this to retrieve the subsequent page. + * Optional. Page token received from a previous `ListWorkflowInvocations` + * call. Provide this to retrieve the subsequent page. * * When paginating, all other parameters provided to `ListWorkflowInvocations` * must match the call that provided the page token. + * @param {string} [request.orderBy] + * Optional. This field only supports ordering by `name`. If unspecified, the + * server will choose the ordering. If specified, the default order is + * ascending for the `name` field. + * @param {string} [request.filter] + * Optional. Filter for the returned list. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -4394,18 +6403,24 @@ export class DataformClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The parent resource of the WorkflowInvocation type. Must be in the - * format `projects/* /locations/* /repositories/*`. + * Required. The parent resource of the WorkflowInvocation type. Must be in + * the format `projects/* /locations/* /repositories/*`. * @param {number} [request.pageSize] - * Optional. Maximum number of workflow invocations to return. The server may return - * fewer items than requested. If unspecified, the server will pick an + * Optional. Maximum number of workflow invocations to return. The server may + * return fewer items than requested. If unspecified, the server will pick an * appropriate default. * @param {string} [request.pageToken] - * Optional. Page token received from a previous `ListWorkflowInvocations` call. - * Provide this to retrieve the subsequent page. + * Optional. Page token received from a previous `ListWorkflowInvocations` + * call. Provide this to retrieve the subsequent page. * * When paginating, all other parameters provided to `ListWorkflowInvocations` * must match the call that provided the page token. + * @param {string} [request.orderBy] + * Optional. This field only supports ordering by `name`. If unspecified, the + * server will choose the ordering. If specified, the default order is + * ascending for the `name` field. + * @param {string} [request.filter] + * Optional. Filter for the returned list. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -4446,18 +6461,24 @@ export class DataformClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The parent resource of the WorkflowInvocation type. Must be in the - * format `projects/* /locations/* /repositories/*`. + * Required. The parent resource of the WorkflowInvocation type. Must be in + * the format `projects/* /locations/* /repositories/*`. * @param {number} [request.pageSize] - * Optional. Maximum number of workflow invocations to return. The server may return - * fewer items than requested. If unspecified, the server will pick an + * Optional. Maximum number of workflow invocations to return. The server may + * return fewer items than requested. If unspecified, the server will pick an * appropriate default. * @param {string} [request.pageToken] - * Optional. Page token received from a previous `ListWorkflowInvocations` call. - * Provide this to retrieve the subsequent page. + * Optional. Page token received from a previous `ListWorkflowInvocations` + * call. Provide this to retrieve the subsequent page. * * When paginating, all other parameters provided to `ListWorkflowInvocations` * must match the call that provided the page token. + * @param {string} [request.orderBy] + * Optional. This field only supports ordering by `name`. If unspecified, the + * server will choose the ordering. If specified, the default order is + * ascending for the `name` field. + * @param {string} [request.filter] + * Optional. Filter for the returned list. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -4499,12 +6520,13 @@ export class DataformClient { * @param {string} request.name * Required. The workflow invocation's name. * @param {number} [request.pageSize] - * Optional. Maximum number of workflow invocations to return. The server may return - * fewer items than requested. If unspecified, the server will pick an + * Optional. Maximum number of workflow invocations to return. The server may + * return fewer items than requested. If unspecified, the server will pick an * appropriate default. * @param {string} [request.pageToken] - * Optional. Page token received from a previous `QueryWorkflowInvocationActions` call. - * Provide this to retrieve the subsequent page. + * Optional. Page token received from a previous + * `QueryWorkflowInvocationActions` call. Provide this to retrieve the + * subsequent page. * * When paginating, all other parameters provided to * `QueryWorkflowInvocationActions` must match the call that provided the page @@ -4607,12 +6629,13 @@ export class DataformClient { * @param {string} request.name * Required. The workflow invocation's name. * @param {number} [request.pageSize] - * Optional. Maximum number of workflow invocations to return. The server may return - * fewer items than requested. If unspecified, the server will pick an + * Optional. Maximum number of workflow invocations to return. The server may + * return fewer items than requested. If unspecified, the server will pick an * appropriate default. * @param {string} [request.pageToken] - * Optional. Page token received from a previous `QueryWorkflowInvocationActions` call. - * Provide this to retrieve the subsequent page. + * Optional. Page token received from a previous + * `QueryWorkflowInvocationActions` call. Provide this to retrieve the + * subsequent page. * * When paginating, all other parameters provided to * `QueryWorkflowInvocationActions` must match the call that provided the page @@ -4660,12 +6683,13 @@ export class DataformClient { * @param {string} request.name * Required. The workflow invocation's name. * @param {number} [request.pageSize] - * Optional. Maximum number of workflow invocations to return. The server may return - * fewer items than requested. If unspecified, the server will pick an + * Optional. Maximum number of workflow invocations to return. The server may + * return fewer items than requested. If unspecified, the server will pick an * appropriate default. * @param {string} [request.pageToken] - * Optional. Page token received from a previous `QueryWorkflowInvocationActions` call. - * Provide this to retrieve the subsequent page. + * Optional. Page token received from a previous + * `QueryWorkflowInvocationActions` call. Provide this to retrieve the + * subsequent page. * * When paginating, all other parameters provided to * `QueryWorkflowInvocationActions` must match the call that provided the page @@ -5037,6 +7061,77 @@ export class DataformClient { return this.pathTemplates.locationPathTemplate.match(locationName).location; } + /** + * Return a fully-qualified releaseConfig resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} repository + * @param {string} release_config + * @returns {string} Resource name string. + */ + releaseConfigPath( + project: string, + location: string, + repository: string, + releaseConfig: string + ) { + return this.pathTemplates.releaseConfigPathTemplate.render({ + project: project, + location: location, + repository: repository, + release_config: releaseConfig, + }); + } + + /** + * Parse the project from ReleaseConfig resource. + * + * @param {string} releaseConfigName + * A fully-qualified path representing ReleaseConfig resource. + * @returns {string} A string representing the project. + */ + matchProjectFromReleaseConfigName(releaseConfigName: string) { + return this.pathTemplates.releaseConfigPathTemplate.match(releaseConfigName) + .project; + } + + /** + * Parse the location from ReleaseConfig resource. + * + * @param {string} releaseConfigName + * A fully-qualified path representing ReleaseConfig resource. + * @returns {string} A string representing the location. + */ + matchLocationFromReleaseConfigName(releaseConfigName: string) { + return this.pathTemplates.releaseConfigPathTemplate.match(releaseConfigName) + .location; + } + + /** + * Parse the repository from ReleaseConfig resource. + * + * @param {string} releaseConfigName + * A fully-qualified path representing ReleaseConfig resource. + * @returns {string} A string representing the repository. + */ + matchRepositoryFromReleaseConfigName(releaseConfigName: string) { + return this.pathTemplates.releaseConfigPathTemplate.match(releaseConfigName) + .repository; + } + + /** + * Parse the release_config from ReleaseConfig resource. + * + * @param {string} releaseConfigName + * A fully-qualified path representing ReleaseConfig resource. + * @returns {string} A string representing the release_config. + */ + matchReleaseConfigFromReleaseConfigName(releaseConfigName: string) { + return this.pathTemplates.releaseConfigPathTemplate.match(releaseConfigName) + .release_config; + } + /** * Return a fully-qualified repository resource name string. * @@ -5089,6 +7184,133 @@ export class DataformClient { .repository; } + /** + * Return a fully-qualified secretVersion resource name string. + * + * @param {string} project + * @param {string} secret + * @param {string} version + * @returns {string} Resource name string. + */ + secretVersionPath(project: string, secret: string, version: string) { + return this.pathTemplates.secretVersionPathTemplate.render({ + project: project, + secret: secret, + version: version, + }); + } + + /** + * Parse the project from SecretVersion resource. + * + * @param {string} secretVersionName + * A fully-qualified path representing SecretVersion resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSecretVersionName(secretVersionName: string) { + return this.pathTemplates.secretVersionPathTemplate.match(secretVersionName) + .project; + } + + /** + * Parse the secret from SecretVersion resource. + * + * @param {string} secretVersionName + * A fully-qualified path representing SecretVersion resource. + * @returns {string} A string representing the secret. + */ + matchSecretFromSecretVersionName(secretVersionName: string) { + return this.pathTemplates.secretVersionPathTemplate.match(secretVersionName) + .secret; + } + + /** + * Parse the version from SecretVersion resource. + * + * @param {string} secretVersionName + * A fully-qualified path representing SecretVersion resource. + * @returns {string} A string representing the version. + */ + matchVersionFromSecretVersionName(secretVersionName: string) { + return this.pathTemplates.secretVersionPathTemplate.match(secretVersionName) + .version; + } + + /** + * Return a fully-qualified workflowConfig resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} repository + * @param {string} workflow_config + * @returns {string} Resource name string. + */ + workflowConfigPath( + project: string, + location: string, + repository: string, + workflowConfig: string + ) { + return this.pathTemplates.workflowConfigPathTemplate.render({ + project: project, + location: location, + repository: repository, + workflow_config: workflowConfig, + }); + } + + /** + * Parse the project from WorkflowConfig resource. + * + * @param {string} workflowConfigName + * A fully-qualified path representing WorkflowConfig resource. + * @returns {string} A string representing the project. + */ + matchProjectFromWorkflowConfigName(workflowConfigName: string) { + return this.pathTemplates.workflowConfigPathTemplate.match( + workflowConfigName + ).project; + } + + /** + * Parse the location from WorkflowConfig resource. + * + * @param {string} workflowConfigName + * A fully-qualified path representing WorkflowConfig resource. + * @returns {string} A string representing the location. + */ + matchLocationFromWorkflowConfigName(workflowConfigName: string) { + return this.pathTemplates.workflowConfigPathTemplate.match( + workflowConfigName + ).location; + } + + /** + * Parse the repository from WorkflowConfig resource. + * + * @param {string} workflowConfigName + * A fully-qualified path representing WorkflowConfig resource. + * @returns {string} A string representing the repository. + */ + matchRepositoryFromWorkflowConfigName(workflowConfigName: string) { + return this.pathTemplates.workflowConfigPathTemplate.match( + workflowConfigName + ).repository; + } + + /** + * Parse the workflow_config from WorkflowConfig resource. + * + * @param {string} workflowConfigName + * A fully-qualified path representing WorkflowConfig resource. + * @returns {string} A string representing the workflow_config. + */ + matchWorkflowConfigFromWorkflowConfigName(workflowConfigName: string) { + return this.pathTemplates.workflowConfigPathTemplate.match( + workflowConfigName + ).workflow_config; + } + /** * Return a fully-qualified workflowInvocation resource name string. * diff --git a/packages/google-cloud-dataform/src/v1beta1/dataform_client_config.json b/packages/google-cloud-dataform/src/v1beta1/dataform_client_config.json index 6e6161397a7..7587814c8d2 100644 --- a/packages/google-cloud-dataform/src/v1beta1/dataform_client_config.json +++ b/packages/google-cloud-dataform/src/v1beta1/dataform_client_config.json @@ -40,6 +40,26 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "CommitRepositoryChanges": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ReadRepositoryFile": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "QueryRepositoryDirectoryContents": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "FetchRepositoryHistory": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ComputeRepositoryAccessTokenStatus": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "FetchRemoteBranches": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" @@ -124,6 +144,26 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "ListReleaseConfigs": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetReleaseConfig": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "CreateReleaseConfig": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "UpdateReleaseConfig": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DeleteReleaseConfig": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "ListCompilationResults": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" @@ -140,6 +180,26 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "ListWorkflowConfigs": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetWorkflowConfig": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "CreateWorkflowConfig": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "UpdateWorkflowConfig": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DeleteWorkflowConfig": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "ListWorkflowInvocations": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" diff --git a/packages/google-cloud-dataform/src/v1beta1/gapic_metadata.json b/packages/google-cloud-dataform/src/v1beta1/gapic_metadata.json index 72fc33e7959..0bf13dabb70 100644 --- a/packages/google-cloud-dataform/src/v1beta1/gapic_metadata.json +++ b/packages/google-cloud-dataform/src/v1beta1/gapic_metadata.json @@ -30,6 +30,21 @@ "deleteRepository" ] }, + "CommitRepositoryChanges": { + "methods": [ + "commitRepositoryChanges" + ] + }, + "ReadRepositoryFile": { + "methods": [ + "readRepositoryFile" + ] + }, + "ComputeRepositoryAccessTokenStatus": { + "methods": [ + "computeRepositoryAccessTokenStatus" + ] + }, "FetchRemoteBranches": { "methods": [ "fetchRemoteBranches" @@ -125,6 +140,26 @@ "writeFile" ] }, + "GetReleaseConfig": { + "methods": [ + "getReleaseConfig" + ] + }, + "CreateReleaseConfig": { + "methods": [ + "createReleaseConfig" + ] + }, + "UpdateReleaseConfig": { + "methods": [ + "updateReleaseConfig" + ] + }, + "DeleteReleaseConfig": { + "methods": [ + "deleteReleaseConfig" + ] + }, "GetCompilationResult": { "methods": [ "getCompilationResult" @@ -135,6 +170,26 @@ "createCompilationResult" ] }, + "GetWorkflowConfig": { + "methods": [ + "getWorkflowConfig" + ] + }, + "CreateWorkflowConfig": { + "methods": [ + "createWorkflowConfig" + ] + }, + "UpdateWorkflowConfig": { + "methods": [ + "updateWorkflowConfig" + ] + }, + "DeleteWorkflowConfig": { + "methods": [ + "deleteWorkflowConfig" + ] + }, "GetWorkflowInvocation": { "methods": [ "getWorkflowInvocation" @@ -162,6 +217,20 @@ "listRepositoriesAsync" ] }, + "QueryRepositoryDirectoryContents": { + "methods": [ + "queryRepositoryDirectoryContents", + "queryRepositoryDirectoryContentsStream", + "queryRepositoryDirectoryContentsAsync" + ] + }, + "FetchRepositoryHistory": { + "methods": [ + "fetchRepositoryHistory", + "fetchRepositoryHistoryStream", + "fetchRepositoryHistoryAsync" + ] + }, "ListWorkspaces": { "methods": [ "listWorkspaces", @@ -176,6 +245,13 @@ "queryDirectoryContentsAsync" ] }, + "ListReleaseConfigs": { + "methods": [ + "listReleaseConfigs", + "listReleaseConfigsStream", + "listReleaseConfigsAsync" + ] + }, "ListCompilationResults": { "methods": [ "listCompilationResults", @@ -190,6 +266,13 @@ "queryCompilationResultActionsAsync" ] }, + "ListWorkflowConfigs": { + "methods": [ + "listWorkflowConfigs", + "listWorkflowConfigsStream", + "listWorkflowConfigsAsync" + ] + }, "ListWorkflowInvocations": { "methods": [ "listWorkflowInvocations", @@ -229,6 +312,21 @@ "deleteRepository" ] }, + "CommitRepositoryChanges": { + "methods": [ + "commitRepositoryChanges" + ] + }, + "ReadRepositoryFile": { + "methods": [ + "readRepositoryFile" + ] + }, + "ComputeRepositoryAccessTokenStatus": { + "methods": [ + "computeRepositoryAccessTokenStatus" + ] + }, "FetchRemoteBranches": { "methods": [ "fetchRemoteBranches" @@ -324,6 +422,26 @@ "writeFile" ] }, + "GetReleaseConfig": { + "methods": [ + "getReleaseConfig" + ] + }, + "CreateReleaseConfig": { + "methods": [ + "createReleaseConfig" + ] + }, + "UpdateReleaseConfig": { + "methods": [ + "updateReleaseConfig" + ] + }, + "DeleteReleaseConfig": { + "methods": [ + "deleteReleaseConfig" + ] + }, "GetCompilationResult": { "methods": [ "getCompilationResult" @@ -334,6 +452,26 @@ "createCompilationResult" ] }, + "GetWorkflowConfig": { + "methods": [ + "getWorkflowConfig" + ] + }, + "CreateWorkflowConfig": { + "methods": [ + "createWorkflowConfig" + ] + }, + "UpdateWorkflowConfig": { + "methods": [ + "updateWorkflowConfig" + ] + }, + "DeleteWorkflowConfig": { + "methods": [ + "deleteWorkflowConfig" + ] + }, "GetWorkflowInvocation": { "methods": [ "getWorkflowInvocation" @@ -361,6 +499,20 @@ "listRepositoriesAsync" ] }, + "QueryRepositoryDirectoryContents": { + "methods": [ + "queryRepositoryDirectoryContents", + "queryRepositoryDirectoryContentsStream", + "queryRepositoryDirectoryContentsAsync" + ] + }, + "FetchRepositoryHistory": { + "methods": [ + "fetchRepositoryHistory", + "fetchRepositoryHistoryStream", + "fetchRepositoryHistoryAsync" + ] + }, "ListWorkspaces": { "methods": [ "listWorkspaces", @@ -375,6 +527,13 @@ "queryDirectoryContentsAsync" ] }, + "ListReleaseConfigs": { + "methods": [ + "listReleaseConfigs", + "listReleaseConfigsStream", + "listReleaseConfigsAsync" + ] + }, "ListCompilationResults": { "methods": [ "listCompilationResults", @@ -389,6 +548,13 @@ "queryCompilationResultActionsAsync" ] }, + "ListWorkflowConfigs": { + "methods": [ + "listWorkflowConfigs", + "listWorkflowConfigsStream", + "listWorkflowConfigsAsync" + ] + }, "ListWorkflowInvocations": { "methods": [ "listWorkflowInvocations", diff --git a/packages/google-cloud-dataform/test/gapic_dataform_v1beta1.ts b/packages/google-cloud-dataform/test/gapic_dataform_v1beta1.ts index 03a4187b590..2e9a06d3db4 100644 --- a/packages/google-cloud-dataform/test/gapic_dataform_v1beta1.ts +++ b/packages/google-cloud-dataform/test/gapic_dataform_v1beta1.ts @@ -749,65 +749,65 @@ describe('v1beta1.DataformClient', () => { }); }); - describe('fetchRemoteBranches', () => { - it('invokes fetchRemoteBranches without error', async () => { + describe('commitRepositoryChanges', () => { + it('invokes commitRepositoryChanges without error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest() + new protos.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest', + '.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.fetchRemoteBranches = + client.innerApiCalls.commitRepositoryChanges = stubSimpleCall(expectedResponse); - const [response] = await client.fetchRemoteBranches(request); + const [response] = await client.commitRepositoryChanges(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.fetchRemoteBranches as SinonStub + client.innerApiCalls.commitRepositoryChanges as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.fetchRemoteBranches as SinonStub + client.innerApiCalls.commitRepositoryChanges as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes fetchRemoteBranches without error using callback', async () => { + it('invokes commitRepositoryChanges without error using callback', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest() + new protos.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest', + '.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.fetchRemoteBranches = + client.innerApiCalls.commitRepositoryChanges = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.fetchRemoteBranches( + client.commitRepositoryChanges( request, ( err?: Error | null, - result?: protos.google.cloud.dataform.v1beta1.IFetchRemoteBranchesResponse | null + result?: protos.google.protobuf.IEmpty | null ) => { if (err) { reject(err); @@ -820,124 +820,131 @@ describe('v1beta1.DataformClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.fetchRemoteBranches as SinonStub + client.innerApiCalls.commitRepositoryChanges as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.fetchRemoteBranches as SinonStub + client.innerApiCalls.commitRepositoryChanges as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes fetchRemoteBranches with error', async () => { + it('invokes commitRepositoryChanges with error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest() + new protos.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest', + '.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.fetchRemoteBranches = stubSimpleCall( + client.innerApiCalls.commitRepositoryChanges = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.fetchRemoteBranches(request), expectedError); + await assert.rejects( + client.commitRepositoryChanges(request), + expectedError + ); const actualRequest = ( - client.innerApiCalls.fetchRemoteBranches as SinonStub + client.innerApiCalls.commitRepositoryChanges as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.fetchRemoteBranches as SinonStub + client.innerApiCalls.commitRepositoryChanges as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes fetchRemoteBranches with closed client', async () => { + it('invokes commitRepositoryChanges with closed client', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest() + new protos.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest', + '.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest', ['name'] ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects(client.fetchRemoteBranches(request), expectedError); + await assert.rejects( + client.commitRepositoryChanges(request), + expectedError + ); }); }); - describe('getWorkspace', () => { - it('invokes getWorkspace without error', async () => { + describe('readRepositoryFile', () => { + it('invokes readRepositoryFile without error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.GetWorkspaceRequest() + new protos.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.GetWorkspaceRequest', + '.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.Workspace() + new protos.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse() ); - client.innerApiCalls.getWorkspace = stubSimpleCall(expectedResponse); - const [response] = await client.getWorkspace(request); + client.innerApiCalls.readRepositoryFile = + stubSimpleCall(expectedResponse); + const [response] = await client.readRepositoryFile(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.getWorkspace as SinonStub + client.innerApiCalls.readRepositoryFile as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getWorkspace as SinonStub + client.innerApiCalls.readRepositoryFile as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getWorkspace without error using callback', async () => { + it('invokes readRepositoryFile without error using callback', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.GetWorkspaceRequest() + new protos.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.GetWorkspaceRequest', + '.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.Workspace() + new protos.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse() ); - client.innerApiCalls.getWorkspace = + client.innerApiCalls.readRepositoryFile = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.getWorkspace( + client.readRepositoryFile( request, ( err?: Error | null, - result?: protos.google.cloud.dataform.v1beta1.IWorkspace | null + result?: protos.google.cloud.dataform.v1beta1.IReadRepositoryFileResponse | null ) => { if (err) { reject(err); @@ -950,124 +957,127 @@ describe('v1beta1.DataformClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.getWorkspace as SinonStub + client.innerApiCalls.readRepositoryFile as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getWorkspace as SinonStub + client.innerApiCalls.readRepositoryFile as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getWorkspace with error', async () => { + it('invokes readRepositoryFile with error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.GetWorkspaceRequest() + new protos.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.GetWorkspaceRequest', + '.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.getWorkspace = stubSimpleCall( + client.innerApiCalls.readRepositoryFile = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.getWorkspace(request), expectedError); + await assert.rejects(client.readRepositoryFile(request), expectedError); const actualRequest = ( - client.innerApiCalls.getWorkspace as SinonStub + client.innerApiCalls.readRepositoryFile as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getWorkspace as SinonStub + client.innerApiCalls.readRepositoryFile as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getWorkspace with closed client', async () => { + it('invokes readRepositoryFile with closed client', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.GetWorkspaceRequest() + new protos.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.GetWorkspaceRequest', + '.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest', ['name'] ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects(client.getWorkspace(request), expectedError); + await assert.rejects(client.readRepositoryFile(request), expectedError); }); }); - describe('createWorkspace', () => { - it('invokes createWorkspace without error', async () => { + describe('computeRepositoryAccessTokenStatus', () => { + it('invokes computeRepositoryAccessTokenStatus without error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.CreateWorkspaceRequest() + new protos.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.CreateWorkspaceRequest', - ['parent'] + '.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.Workspace() + new protos.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse() + ); + client.innerApiCalls.computeRepositoryAccessTokenStatus = + stubSimpleCall(expectedResponse); + const [response] = await client.computeRepositoryAccessTokenStatus( + request ); - client.innerApiCalls.createWorkspace = stubSimpleCall(expectedResponse); - const [response] = await client.createWorkspace(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.createWorkspace as SinonStub + client.innerApiCalls.computeRepositoryAccessTokenStatus as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createWorkspace as SinonStub + client.innerApiCalls.computeRepositoryAccessTokenStatus as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createWorkspace without error using callback', async () => { + it('invokes computeRepositoryAccessTokenStatus without error using callback', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.CreateWorkspaceRequest() + new protos.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.CreateWorkspaceRequest', - ['parent'] + '.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.Workspace() + new protos.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse() ); - client.innerApiCalls.createWorkspace = + client.innerApiCalls.computeRepositoryAccessTokenStatus = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.createWorkspace( + client.computeRepositoryAccessTokenStatus( request, ( err?: Error | null, - result?: protos.google.cloud.dataform.v1beta1.IWorkspace | null + result?: protos.google.cloud.dataform.v1beta1.IComputeRepositoryAccessTokenStatusResponse | null ) => { if (err) { reject(err); @@ -1080,124 +1090,131 @@ describe('v1beta1.DataformClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.createWorkspace as SinonStub + client.innerApiCalls.computeRepositoryAccessTokenStatus as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createWorkspace as SinonStub + client.innerApiCalls.computeRepositoryAccessTokenStatus as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createWorkspace with error', async () => { + it('invokes computeRepositoryAccessTokenStatus with error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.CreateWorkspaceRequest() + new protos.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.CreateWorkspaceRequest', - ['parent'] + '.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.createWorkspace = stubSimpleCall( + client.innerApiCalls.computeRepositoryAccessTokenStatus = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.createWorkspace(request), expectedError); + await assert.rejects( + client.computeRepositoryAccessTokenStatus(request), + expectedError + ); const actualRequest = ( - client.innerApiCalls.createWorkspace as SinonStub + client.innerApiCalls.computeRepositoryAccessTokenStatus as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createWorkspace as SinonStub + client.innerApiCalls.computeRepositoryAccessTokenStatus as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createWorkspace with closed client', async () => { + it('invokes computeRepositoryAccessTokenStatus with closed client', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.CreateWorkspaceRequest() + new protos.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.CreateWorkspaceRequest', - ['parent'] + '.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest', + ['name'] ); - request.parent = defaultValue1; + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects(client.createWorkspace(request), expectedError); + await assert.rejects( + client.computeRepositoryAccessTokenStatus(request), + expectedError + ); }); }); - describe('deleteWorkspace', () => { - it('invokes deleteWorkspace without error', async () => { + describe('fetchRemoteBranches', () => { + it('invokes fetchRemoteBranches without error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest() + new protos.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest', + '.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() + new protos.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse() ); - client.innerApiCalls.deleteWorkspace = stubSimpleCall(expectedResponse); - const [response] = await client.deleteWorkspace(request); + client.innerApiCalls.fetchRemoteBranches = + stubSimpleCall(expectedResponse); + const [response] = await client.fetchRemoteBranches(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteWorkspace as SinonStub + client.innerApiCalls.fetchRemoteBranches as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteWorkspace as SinonStub + client.innerApiCalls.fetchRemoteBranches as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteWorkspace without error using callback', async () => { + it('invokes fetchRemoteBranches without error using callback', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest() + new protos.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest', + '.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() + new protos.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse() ); - client.innerApiCalls.deleteWorkspace = + client.innerApiCalls.fetchRemoteBranches = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.deleteWorkspace( + client.fetchRemoteBranches( request, ( err?: Error | null, - result?: protos.google.protobuf.IEmpty | null + result?: protos.google.cloud.dataform.v1beta1.IFetchRemoteBranchesResponse | null ) => { if (err) { reject(err); @@ -1210,125 +1227,124 @@ describe('v1beta1.DataformClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteWorkspace as SinonStub + client.innerApiCalls.fetchRemoteBranches as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteWorkspace as SinonStub + client.innerApiCalls.fetchRemoteBranches as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteWorkspace with error', async () => { + it('invokes fetchRemoteBranches with error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest() + new protos.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest', + '.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.deleteWorkspace = stubSimpleCall( + client.innerApiCalls.fetchRemoteBranches = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.deleteWorkspace(request), expectedError); + await assert.rejects(client.fetchRemoteBranches(request), expectedError); const actualRequest = ( - client.innerApiCalls.deleteWorkspace as SinonStub + client.innerApiCalls.fetchRemoteBranches as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteWorkspace as SinonStub + client.innerApiCalls.fetchRemoteBranches as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteWorkspace with closed client', async () => { + it('invokes fetchRemoteBranches with closed client', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest() + new protos.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest', + '.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest', ['name'] ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects(client.deleteWorkspace(request), expectedError); + await assert.rejects(client.fetchRemoteBranches(request), expectedError); }); }); - describe('installNpmPackages', () => { - it('invokes installNpmPackages without error', async () => { + describe('getWorkspace', () => { + it('invokes getWorkspace without error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest() + new protos.google.cloud.dataform.v1beta1.GetWorkspaceRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest', - ['workspace'] + '.google.cloud.dataform.v1beta1.GetWorkspaceRequest', + ['name'] ); - request.workspace = defaultValue1; - const expectedHeaderRequestParams = `workspace=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse() + new protos.google.cloud.dataform.v1beta1.Workspace() ); - client.innerApiCalls.installNpmPackages = - stubSimpleCall(expectedResponse); - const [response] = await client.installNpmPackages(request); + client.innerApiCalls.getWorkspace = stubSimpleCall(expectedResponse); + const [response] = await client.getWorkspace(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.installNpmPackages as SinonStub + client.innerApiCalls.getWorkspace as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.installNpmPackages as SinonStub + client.innerApiCalls.getWorkspace as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes installNpmPackages without error using callback', async () => { + it('invokes getWorkspace without error using callback', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest() + new protos.google.cloud.dataform.v1beta1.GetWorkspaceRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest', - ['workspace'] + '.google.cloud.dataform.v1beta1.GetWorkspaceRequest', + ['name'] ); - request.workspace = defaultValue1; - const expectedHeaderRequestParams = `workspace=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse() + new protos.google.cloud.dataform.v1beta1.Workspace() ); - client.innerApiCalls.installNpmPackages = + client.innerApiCalls.getWorkspace = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.installNpmPackages( + client.getWorkspace( request, ( err?: Error | null, - result?: protos.google.cloud.dataform.v1beta1.IInstallNpmPackagesResponse | null + result?: protos.google.cloud.dataform.v1beta1.IWorkspace | null ) => { if (err) { reject(err); @@ -1341,124 +1357,124 @@ describe('v1beta1.DataformClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.installNpmPackages as SinonStub + client.innerApiCalls.getWorkspace as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.installNpmPackages as SinonStub + client.innerApiCalls.getWorkspace as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes installNpmPackages with error', async () => { + it('invokes getWorkspace with error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest() + new protos.google.cloud.dataform.v1beta1.GetWorkspaceRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest', - ['workspace'] + '.google.cloud.dataform.v1beta1.GetWorkspaceRequest', + ['name'] ); - request.workspace = defaultValue1; - const expectedHeaderRequestParams = `workspace=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.installNpmPackages = stubSimpleCall( + client.innerApiCalls.getWorkspace = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.installNpmPackages(request), expectedError); + await assert.rejects(client.getWorkspace(request), expectedError); const actualRequest = ( - client.innerApiCalls.installNpmPackages as SinonStub + client.innerApiCalls.getWorkspace as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.installNpmPackages as SinonStub + client.innerApiCalls.getWorkspace as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes installNpmPackages with closed client', async () => { + it('invokes getWorkspace with closed client', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest() + new protos.google.cloud.dataform.v1beta1.GetWorkspaceRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest', - ['workspace'] + '.google.cloud.dataform.v1beta1.GetWorkspaceRequest', + ['name'] ); - request.workspace = defaultValue1; + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects(client.installNpmPackages(request), expectedError); + await assert.rejects(client.getWorkspace(request), expectedError); }); }); - describe('pullGitCommits', () => { - it('invokes pullGitCommits without error', async () => { + describe('createWorkspace', () => { + it('invokes createWorkspace without error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.PullGitCommitsRequest() + new protos.google.cloud.dataform.v1beta1.CreateWorkspaceRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.PullGitCommitsRequest', - ['name'] + '.google.cloud.dataform.v1beta1.CreateWorkspaceRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() + new protos.google.cloud.dataform.v1beta1.Workspace() ); - client.innerApiCalls.pullGitCommits = stubSimpleCall(expectedResponse); - const [response] = await client.pullGitCommits(request); + client.innerApiCalls.createWorkspace = stubSimpleCall(expectedResponse); + const [response] = await client.createWorkspace(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.pullGitCommits as SinonStub + client.innerApiCalls.createWorkspace as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.pullGitCommits as SinonStub + client.innerApiCalls.createWorkspace as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes pullGitCommits without error using callback', async () => { + it('invokes createWorkspace without error using callback', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.PullGitCommitsRequest() + new protos.google.cloud.dataform.v1beta1.CreateWorkspaceRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.PullGitCommitsRequest', - ['name'] + '.google.cloud.dataform.v1beta1.CreateWorkspaceRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() + new protos.google.cloud.dataform.v1beta1.Workspace() ); - client.innerApiCalls.pullGitCommits = + client.innerApiCalls.createWorkspace = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.pullGitCommits( + client.createWorkspace( request, ( err?: Error | null, - result?: protos.google.protobuf.IEmpty | null + result?: protos.google.cloud.dataform.v1beta1.IWorkspace | null ) => { if (err) { reject(err); @@ -1471,78 +1487,78 @@ describe('v1beta1.DataformClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.pullGitCommits as SinonStub + client.innerApiCalls.createWorkspace as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.pullGitCommits as SinonStub + client.innerApiCalls.createWorkspace as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes pullGitCommits with error', async () => { + it('invokes createWorkspace with error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.PullGitCommitsRequest() + new protos.google.cloud.dataform.v1beta1.CreateWorkspaceRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.PullGitCommitsRequest', - ['name'] + '.google.cloud.dataform.v1beta1.CreateWorkspaceRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.pullGitCommits = stubSimpleCall( + client.innerApiCalls.createWorkspace = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.pullGitCommits(request), expectedError); + await assert.rejects(client.createWorkspace(request), expectedError); const actualRequest = ( - client.innerApiCalls.pullGitCommits as SinonStub + client.innerApiCalls.createWorkspace as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.pullGitCommits as SinonStub + client.innerApiCalls.createWorkspace as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes pullGitCommits with closed client', async () => { + it('invokes createWorkspace with closed client', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.PullGitCommitsRequest() + new protos.google.cloud.dataform.v1beta1.CreateWorkspaceRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.PullGitCommitsRequest', - ['name'] + '.google.cloud.dataform.v1beta1.CreateWorkspaceRequest', + ['parent'] ); - request.name = defaultValue1; + request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects(client.pullGitCommits(request), expectedError); + await assert.rejects(client.createWorkspace(request), expectedError); }); }); - describe('pushGitCommits', () => { - it('invokes pushGitCommits without error', async () => { + describe('deleteWorkspace', () => { + it('invokes deleteWorkspace without error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.PushGitCommitsRequest() + new protos.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.PushGitCommitsRequest', + '.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest', ['name'] ); request.name = defaultValue1; @@ -1550,30 +1566,30 @@ describe('v1beta1.DataformClient', () => { const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); - client.innerApiCalls.pushGitCommits = stubSimpleCall(expectedResponse); - const [response] = await client.pushGitCommits(request); + client.innerApiCalls.deleteWorkspace = stubSimpleCall(expectedResponse); + const [response] = await client.deleteWorkspace(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.pushGitCommits as SinonStub + client.innerApiCalls.deleteWorkspace as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.pushGitCommits as SinonStub + client.innerApiCalls.deleteWorkspace as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes pushGitCommits without error using callback', async () => { + it('invokes deleteWorkspace without error using callback', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.PushGitCommitsRequest() + new protos.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.PushGitCommitsRequest', + '.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest', ['name'] ); request.name = defaultValue1; @@ -1581,10 +1597,10 @@ describe('v1beta1.DataformClient', () => { const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); - client.innerApiCalls.pushGitCommits = + client.innerApiCalls.deleteWorkspace = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.pushGitCommits( + client.deleteWorkspace( request, ( err?: Error | null, @@ -1601,125 +1617,125 @@ describe('v1beta1.DataformClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.pushGitCommits as SinonStub + client.innerApiCalls.deleteWorkspace as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.pushGitCommits as SinonStub + client.innerApiCalls.deleteWorkspace as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes pushGitCommits with error', async () => { + it('invokes deleteWorkspace with error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.PushGitCommitsRequest() + new protos.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.PushGitCommitsRequest', + '.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.pushGitCommits = stubSimpleCall( + client.innerApiCalls.deleteWorkspace = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.pushGitCommits(request), expectedError); + await assert.rejects(client.deleteWorkspace(request), expectedError); const actualRequest = ( - client.innerApiCalls.pushGitCommits as SinonStub + client.innerApiCalls.deleteWorkspace as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.pushGitCommits as SinonStub + client.innerApiCalls.deleteWorkspace as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes pushGitCommits with closed client', async () => { + it('invokes deleteWorkspace with closed client', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.PushGitCommitsRequest() + new protos.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.PushGitCommitsRequest', + '.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest', ['name'] ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects(client.pushGitCommits(request), expectedError); + await assert.rejects(client.deleteWorkspace(request), expectedError); }); }); - describe('fetchFileGitStatuses', () => { - it('invokes fetchFileGitStatuses without error', async () => { + describe('installNpmPackages', () => { + it('invokes installNpmPackages without error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest() + new protos.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest', - ['name'] + '.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest', + ['workspace'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.workspace = defaultValue1; + const expectedHeaderRequestParams = `workspace=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse() + new protos.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse() ); - client.innerApiCalls.fetchFileGitStatuses = + client.innerApiCalls.installNpmPackages = stubSimpleCall(expectedResponse); - const [response] = await client.fetchFileGitStatuses(request); + const [response] = await client.installNpmPackages(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.fetchFileGitStatuses as SinonStub + client.innerApiCalls.installNpmPackages as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.fetchFileGitStatuses as SinonStub + client.innerApiCalls.installNpmPackages as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes fetchFileGitStatuses without error using callback', async () => { + it('invokes installNpmPackages without error using callback', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest() + new protos.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest', - ['name'] + '.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest', + ['workspace'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.workspace = defaultValue1; + const expectedHeaderRequestParams = `workspace=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse() + new protos.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse() ); - client.innerApiCalls.fetchFileGitStatuses = + client.innerApiCalls.installNpmPackages = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.fetchFileGitStatuses( + client.installNpmPackages( request, ( err?: Error | null, - result?: protos.google.cloud.dataform.v1beta1.IFetchFileGitStatusesResponse | null + result?: protos.google.cloud.dataform.v1beta1.IInstallNpmPackagesResponse | null ) => { if (err) { reject(err); @@ -1732,125 +1748,124 @@ describe('v1beta1.DataformClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.fetchFileGitStatuses as SinonStub + client.innerApiCalls.installNpmPackages as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.fetchFileGitStatuses as SinonStub + client.innerApiCalls.installNpmPackages as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes fetchFileGitStatuses with error', async () => { + it('invokes installNpmPackages with error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest() + new protos.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest', - ['name'] + '.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest', + ['workspace'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.workspace = defaultValue1; + const expectedHeaderRequestParams = `workspace=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.fetchFileGitStatuses = stubSimpleCall( + client.innerApiCalls.installNpmPackages = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.fetchFileGitStatuses(request), expectedError); + await assert.rejects(client.installNpmPackages(request), expectedError); const actualRequest = ( - client.innerApiCalls.fetchFileGitStatuses as SinonStub + client.innerApiCalls.installNpmPackages as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.fetchFileGitStatuses as SinonStub + client.innerApiCalls.installNpmPackages as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes fetchFileGitStatuses with closed client', async () => { + it('invokes installNpmPackages with closed client', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest() + new protos.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest', - ['name'] + '.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest', + ['workspace'] ); - request.name = defaultValue1; + request.workspace = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects(client.fetchFileGitStatuses(request), expectedError); + await assert.rejects(client.installNpmPackages(request), expectedError); }); }); - describe('fetchGitAheadBehind', () => { - it('invokes fetchGitAheadBehind without error', async () => { + describe('pullGitCommits', () => { + it('invokes pullGitCommits without error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest() + new protos.google.cloud.dataform.v1beta1.PullGitCommitsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest', + '.google.cloud.dataform.v1beta1.PullGitCommitsRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.fetchGitAheadBehind = - stubSimpleCall(expectedResponse); - const [response] = await client.fetchGitAheadBehind(request); + client.innerApiCalls.pullGitCommits = stubSimpleCall(expectedResponse); + const [response] = await client.pullGitCommits(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.fetchGitAheadBehind as SinonStub + client.innerApiCalls.pullGitCommits as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.fetchGitAheadBehind as SinonStub + client.innerApiCalls.pullGitCommits as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes fetchGitAheadBehind without error using callback', async () => { + it('invokes pullGitCommits without error using callback', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest() + new protos.google.cloud.dataform.v1beta1.PullGitCommitsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest', + '.google.cloud.dataform.v1beta1.PullGitCommitsRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.fetchGitAheadBehind = + client.innerApiCalls.pullGitCommits = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.fetchGitAheadBehind( + client.pullGitCommits( request, ( err?: Error | null, - result?: protos.google.cloud.dataform.v1beta1.IFetchGitAheadBehindResponse | null + result?: protos.google.protobuf.IEmpty | null ) => { if (err) { reject(err); @@ -1863,78 +1878,78 @@ describe('v1beta1.DataformClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.fetchGitAheadBehind as SinonStub + client.innerApiCalls.pullGitCommits as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.fetchGitAheadBehind as SinonStub + client.innerApiCalls.pullGitCommits as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes fetchGitAheadBehind with error', async () => { + it('invokes pullGitCommits with error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest() + new protos.google.cloud.dataform.v1beta1.PullGitCommitsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest', + '.google.cloud.dataform.v1beta1.PullGitCommitsRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.fetchGitAheadBehind = stubSimpleCall( + client.innerApiCalls.pullGitCommits = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.fetchGitAheadBehind(request), expectedError); + await assert.rejects(client.pullGitCommits(request), expectedError); const actualRequest = ( - client.innerApiCalls.fetchGitAheadBehind as SinonStub + client.innerApiCalls.pullGitCommits as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.fetchGitAheadBehind as SinonStub + client.innerApiCalls.pullGitCommits as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes fetchGitAheadBehind with closed client', async () => { + it('invokes pullGitCommits with closed client', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest() + new protos.google.cloud.dataform.v1beta1.PullGitCommitsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest', + '.google.cloud.dataform.v1beta1.PullGitCommitsRequest', ['name'] ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects(client.fetchGitAheadBehind(request), expectedError); + await assert.rejects(client.pullGitCommits(request), expectedError); }); }); - describe('commitWorkspaceChanges', () => { - it('invokes commitWorkspaceChanges without error', async () => { + describe('pushGitCommits', () => { + it('invokes pushGitCommits without error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest() + new protos.google.cloud.dataform.v1beta1.PushGitCommitsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest', + '.google.cloud.dataform.v1beta1.PushGitCommitsRequest', ['name'] ); request.name = defaultValue1; @@ -1942,31 +1957,30 @@ describe('v1beta1.DataformClient', () => { const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); - client.innerApiCalls.commitWorkspaceChanges = - stubSimpleCall(expectedResponse); - const [response] = await client.commitWorkspaceChanges(request); + client.innerApiCalls.pushGitCommits = stubSimpleCall(expectedResponse); + const [response] = await client.pushGitCommits(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.commitWorkspaceChanges as SinonStub + client.innerApiCalls.pushGitCommits as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.commitWorkspaceChanges as SinonStub + client.innerApiCalls.pushGitCommits as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes commitWorkspaceChanges without error using callback', async () => { + it('invokes pushGitCommits without error using callback', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest() + new protos.google.cloud.dataform.v1beta1.PushGitCommitsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest', + '.google.cloud.dataform.v1beta1.PushGitCommitsRequest', ['name'] ); request.name = defaultValue1; @@ -1974,10 +1988,10 @@ describe('v1beta1.DataformClient', () => { const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); - client.innerApiCalls.commitWorkspaceChanges = + client.innerApiCalls.pushGitCommits = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.commitWorkspaceChanges( + client.pushGitCommits( request, ( err?: Error | null, @@ -1994,131 +2008,125 @@ describe('v1beta1.DataformClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.commitWorkspaceChanges as SinonStub + client.innerApiCalls.pushGitCommits as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.commitWorkspaceChanges as SinonStub + client.innerApiCalls.pushGitCommits as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes commitWorkspaceChanges with error', async () => { + it('invokes pushGitCommits with error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest() + new protos.google.cloud.dataform.v1beta1.PushGitCommitsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest', + '.google.cloud.dataform.v1beta1.PushGitCommitsRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.commitWorkspaceChanges = stubSimpleCall( + client.innerApiCalls.pushGitCommits = stubSimpleCall( undefined, expectedError ); - await assert.rejects( - client.commitWorkspaceChanges(request), - expectedError - ); + await assert.rejects(client.pushGitCommits(request), expectedError); const actualRequest = ( - client.innerApiCalls.commitWorkspaceChanges as SinonStub + client.innerApiCalls.pushGitCommits as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.commitWorkspaceChanges as SinonStub + client.innerApiCalls.pushGitCommits as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes commitWorkspaceChanges with closed client', async () => { + it('invokes pushGitCommits with closed client', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest() + new protos.google.cloud.dataform.v1beta1.PushGitCommitsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest', + '.google.cloud.dataform.v1beta1.PushGitCommitsRequest', ['name'] ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects( - client.commitWorkspaceChanges(request), - expectedError - ); + await assert.rejects(client.pushGitCommits(request), expectedError); }); }); - describe('resetWorkspaceChanges', () => { - it('invokes resetWorkspaceChanges without error', async () => { + describe('fetchFileGitStatuses', () => { + it('invokes fetchFileGitStatuses without error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest() + new protos.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest', + '.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() + new protos.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse() ); - client.innerApiCalls.resetWorkspaceChanges = + client.innerApiCalls.fetchFileGitStatuses = stubSimpleCall(expectedResponse); - const [response] = await client.resetWorkspaceChanges(request); + const [response] = await client.fetchFileGitStatuses(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.resetWorkspaceChanges as SinonStub + client.innerApiCalls.fetchFileGitStatuses as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.resetWorkspaceChanges as SinonStub + client.innerApiCalls.fetchFileGitStatuses as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes resetWorkspaceChanges without error using callback', async () => { + it('invokes fetchFileGitStatuses without error using callback', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest() + new protos.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest', + '.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() + new protos.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse() ); - client.innerApiCalls.resetWorkspaceChanges = + client.innerApiCalls.fetchFileGitStatuses = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.resetWorkspaceChanges( + client.fetchFileGitStatuses( request, ( err?: Error | null, - result?: protos.google.protobuf.IEmpty | null + result?: protos.google.cloud.dataform.v1beta1.IFetchFileGitStatusesResponse | null ) => { if (err) { reject(err); @@ -2131,130 +2139,125 @@ describe('v1beta1.DataformClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.resetWorkspaceChanges as SinonStub + client.innerApiCalls.fetchFileGitStatuses as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.resetWorkspaceChanges as SinonStub + client.innerApiCalls.fetchFileGitStatuses as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes resetWorkspaceChanges with error', async () => { + it('invokes fetchFileGitStatuses with error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest() + new protos.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest', + '.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.resetWorkspaceChanges = stubSimpleCall( + client.innerApiCalls.fetchFileGitStatuses = stubSimpleCall( undefined, expectedError ); - await assert.rejects( - client.resetWorkspaceChanges(request), - expectedError - ); + await assert.rejects(client.fetchFileGitStatuses(request), expectedError); const actualRequest = ( - client.innerApiCalls.resetWorkspaceChanges as SinonStub + client.innerApiCalls.fetchFileGitStatuses as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.resetWorkspaceChanges as SinonStub + client.innerApiCalls.fetchFileGitStatuses as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes resetWorkspaceChanges with closed client', async () => { + it('invokes fetchFileGitStatuses with closed client', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest() + new protos.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest', + '.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest', ['name'] ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects( - client.resetWorkspaceChanges(request), - expectedError - ); + await assert.rejects(client.fetchFileGitStatuses(request), expectedError); }); }); - describe('fetchFileDiff', () => { - it('invokes fetchFileDiff without error', async () => { + describe('fetchGitAheadBehind', () => { + it('invokes fetchGitAheadBehind without error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.FetchFileDiffRequest() + new protos.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.FetchFileDiffRequest', - ['workspace'] + '.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest', + ['name'] ); - request.workspace = defaultValue1; - const expectedHeaderRequestParams = `workspace=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.FetchFileDiffResponse() + new protos.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse() ); - client.innerApiCalls.fetchFileDiff = stubSimpleCall(expectedResponse); - const [response] = await client.fetchFileDiff(request); + client.innerApiCalls.fetchGitAheadBehind = + stubSimpleCall(expectedResponse); + const [response] = await client.fetchGitAheadBehind(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.fetchFileDiff as SinonStub + client.innerApiCalls.fetchGitAheadBehind as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.fetchFileDiff as SinonStub + client.innerApiCalls.fetchGitAheadBehind as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes fetchFileDiff without error using callback', async () => { + it('invokes fetchGitAheadBehind without error using callback', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.FetchFileDiffRequest() + new protos.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.FetchFileDiffRequest', - ['workspace'] + '.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest', + ['name'] ); - request.workspace = defaultValue1; - const expectedHeaderRequestParams = `workspace=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.FetchFileDiffResponse() + new protos.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse() ); - client.innerApiCalls.fetchFileDiff = + client.innerApiCalls.fetchGitAheadBehind = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.fetchFileDiff( + client.fetchGitAheadBehind( request, ( err?: Error | null, - result?: protos.google.cloud.dataform.v1beta1.IFetchFileDiffResponse | null + result?: protos.google.cloud.dataform.v1beta1.IFetchGitAheadBehindResponse | null ) => { if (err) { reject(err); @@ -2267,124 +2270,125 @@ describe('v1beta1.DataformClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.fetchFileDiff as SinonStub + client.innerApiCalls.fetchGitAheadBehind as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.fetchFileDiff as SinonStub + client.innerApiCalls.fetchGitAheadBehind as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes fetchFileDiff with error', async () => { + it('invokes fetchGitAheadBehind with error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.FetchFileDiffRequest() + new protos.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.FetchFileDiffRequest', - ['workspace'] + '.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest', + ['name'] ); - request.workspace = defaultValue1; - const expectedHeaderRequestParams = `workspace=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.fetchFileDiff = stubSimpleCall( + client.innerApiCalls.fetchGitAheadBehind = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.fetchFileDiff(request), expectedError); + await assert.rejects(client.fetchGitAheadBehind(request), expectedError); const actualRequest = ( - client.innerApiCalls.fetchFileDiff as SinonStub + client.innerApiCalls.fetchGitAheadBehind as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.fetchFileDiff as SinonStub + client.innerApiCalls.fetchGitAheadBehind as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes fetchFileDiff with closed client', async () => { + it('invokes fetchGitAheadBehind with closed client', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.FetchFileDiffRequest() + new protos.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.FetchFileDiffRequest', - ['workspace'] + '.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest', + ['name'] ); - request.workspace = defaultValue1; + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects(client.fetchFileDiff(request), expectedError); + await assert.rejects(client.fetchGitAheadBehind(request), expectedError); }); }); - describe('makeDirectory', () => { - it('invokes makeDirectory without error', async () => { + describe('commitWorkspaceChanges', () => { + it('invokes commitWorkspaceChanges without error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.MakeDirectoryRequest() + new protos.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.MakeDirectoryRequest', - ['workspace'] + '.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest', + ['name'] ); - request.workspace = defaultValue1; - const expectedHeaderRequestParams = `workspace=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.MakeDirectoryResponse() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.makeDirectory = stubSimpleCall(expectedResponse); - const [response] = await client.makeDirectory(request); + client.innerApiCalls.commitWorkspaceChanges = + stubSimpleCall(expectedResponse); + const [response] = await client.commitWorkspaceChanges(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.makeDirectory as SinonStub + client.innerApiCalls.commitWorkspaceChanges as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.makeDirectory as SinonStub + client.innerApiCalls.commitWorkspaceChanges as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes makeDirectory without error using callback', async () => { + it('invokes commitWorkspaceChanges without error using callback', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.MakeDirectoryRequest() + new protos.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.MakeDirectoryRequest', - ['workspace'] + '.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest', + ['name'] ); - request.workspace = defaultValue1; - const expectedHeaderRequestParams = `workspace=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.MakeDirectoryResponse() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.makeDirectory = + client.innerApiCalls.commitWorkspaceChanges = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.makeDirectory( + client.commitWorkspaceChanges( request, ( err?: Error | null, - result?: protos.google.cloud.dataform.v1beta1.IMakeDirectoryResponse | null + result?: protos.google.protobuf.IEmpty | null ) => { if (err) { reject(err); @@ -2397,120 +2401,127 @@ describe('v1beta1.DataformClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.makeDirectory as SinonStub + client.innerApiCalls.commitWorkspaceChanges as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.makeDirectory as SinonStub + client.innerApiCalls.commitWorkspaceChanges as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes makeDirectory with error', async () => { + it('invokes commitWorkspaceChanges with error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.MakeDirectoryRequest() + new protos.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.MakeDirectoryRequest', - ['workspace'] + '.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest', + ['name'] ); - request.workspace = defaultValue1; - const expectedHeaderRequestParams = `workspace=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.makeDirectory = stubSimpleCall( + client.innerApiCalls.commitWorkspaceChanges = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.makeDirectory(request), expectedError); + await assert.rejects( + client.commitWorkspaceChanges(request), + expectedError + ); const actualRequest = ( - client.innerApiCalls.makeDirectory as SinonStub + client.innerApiCalls.commitWorkspaceChanges as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.makeDirectory as SinonStub + client.innerApiCalls.commitWorkspaceChanges as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes makeDirectory with closed client', async () => { + it('invokes commitWorkspaceChanges with closed client', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.MakeDirectoryRequest() + new protos.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.MakeDirectoryRequest', - ['workspace'] + '.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest', + ['name'] ); - request.workspace = defaultValue1; + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects(client.makeDirectory(request), expectedError); + await assert.rejects( + client.commitWorkspaceChanges(request), + expectedError + ); }); }); - describe('removeDirectory', () => { - it('invokes removeDirectory without error', async () => { + describe('resetWorkspaceChanges', () => { + it('invokes resetWorkspaceChanges without error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.RemoveDirectoryRequest() + new protos.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.RemoveDirectoryRequest', - ['workspace'] + '.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest', + ['name'] ); - request.workspace = defaultValue1; - const expectedHeaderRequestParams = `workspace=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); - client.innerApiCalls.removeDirectory = stubSimpleCall(expectedResponse); - const [response] = await client.removeDirectory(request); + client.innerApiCalls.resetWorkspaceChanges = + stubSimpleCall(expectedResponse); + const [response] = await client.resetWorkspaceChanges(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.removeDirectory as SinonStub + client.innerApiCalls.resetWorkspaceChanges as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.removeDirectory as SinonStub + client.innerApiCalls.resetWorkspaceChanges as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes removeDirectory without error using callback', async () => { + it('invokes resetWorkspaceChanges without error using callback', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.RemoveDirectoryRequest() + new protos.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.RemoveDirectoryRequest', - ['workspace'] + '.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest', + ['name'] ); - request.workspace = defaultValue1; - const expectedHeaderRequestParams = `workspace=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); - client.innerApiCalls.removeDirectory = + client.innerApiCalls.resetWorkspaceChanges = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.removeDirectory( + client.resetWorkspaceChanges( request, ( err?: Error | null, @@ -2527,124 +2538,130 @@ describe('v1beta1.DataformClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.removeDirectory as SinonStub + client.innerApiCalls.resetWorkspaceChanges as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.removeDirectory as SinonStub + client.innerApiCalls.resetWorkspaceChanges as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes removeDirectory with error', async () => { + it('invokes resetWorkspaceChanges with error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.RemoveDirectoryRequest() + new protos.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.RemoveDirectoryRequest', - ['workspace'] + '.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest', + ['name'] ); - request.workspace = defaultValue1; - const expectedHeaderRequestParams = `workspace=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.removeDirectory = stubSimpleCall( + client.innerApiCalls.resetWorkspaceChanges = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.removeDirectory(request), expectedError); + await assert.rejects( + client.resetWorkspaceChanges(request), + expectedError + ); const actualRequest = ( - client.innerApiCalls.removeDirectory as SinonStub + client.innerApiCalls.resetWorkspaceChanges as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.removeDirectory as SinonStub + client.innerApiCalls.resetWorkspaceChanges as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes removeDirectory with closed client', async () => { + it('invokes resetWorkspaceChanges with closed client', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.RemoveDirectoryRequest() + new protos.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.RemoveDirectoryRequest', - ['workspace'] + '.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest', + ['name'] ); - request.workspace = defaultValue1; + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects(client.removeDirectory(request), expectedError); + await assert.rejects( + client.resetWorkspaceChanges(request), + expectedError + ); }); }); - describe('moveDirectory', () => { - it('invokes moveDirectory without error', async () => { + describe('fetchFileDiff', () => { + it('invokes fetchFileDiff without error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.MoveDirectoryRequest() + new protos.google.cloud.dataform.v1beta1.FetchFileDiffRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.MoveDirectoryRequest', + '.google.cloud.dataform.v1beta1.FetchFileDiffRequest', ['workspace'] ); request.workspace = defaultValue1; const expectedHeaderRequestParams = `workspace=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.MoveDirectoryResponse() + new protos.google.cloud.dataform.v1beta1.FetchFileDiffResponse() ); - client.innerApiCalls.moveDirectory = stubSimpleCall(expectedResponse); - const [response] = await client.moveDirectory(request); + client.innerApiCalls.fetchFileDiff = stubSimpleCall(expectedResponse); + const [response] = await client.fetchFileDiff(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.moveDirectory as SinonStub + client.innerApiCalls.fetchFileDiff as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.moveDirectory as SinonStub + client.innerApiCalls.fetchFileDiff as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes moveDirectory without error using callback', async () => { + it('invokes fetchFileDiff without error using callback', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.MoveDirectoryRequest() + new protos.google.cloud.dataform.v1beta1.FetchFileDiffRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.MoveDirectoryRequest', + '.google.cloud.dataform.v1beta1.FetchFileDiffRequest', ['workspace'] ); request.workspace = defaultValue1; const expectedHeaderRequestParams = `workspace=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.MoveDirectoryResponse() + new protos.google.cloud.dataform.v1beta1.FetchFileDiffResponse() ); - client.innerApiCalls.moveDirectory = + client.innerApiCalls.fetchFileDiff = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.moveDirectory( + client.fetchFileDiff( request, ( err?: Error | null, - result?: protos.google.cloud.dataform.v1beta1.IMoveDirectoryResponse | null + result?: protos.google.cloud.dataform.v1beta1.IFetchFileDiffResponse | null ) => { if (err) { reject(err); @@ -2657,124 +2674,124 @@ describe('v1beta1.DataformClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.moveDirectory as SinonStub + client.innerApiCalls.fetchFileDiff as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.moveDirectory as SinonStub + client.innerApiCalls.fetchFileDiff as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes moveDirectory with error', async () => { + it('invokes fetchFileDiff with error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.MoveDirectoryRequest() + new protos.google.cloud.dataform.v1beta1.FetchFileDiffRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.MoveDirectoryRequest', + '.google.cloud.dataform.v1beta1.FetchFileDiffRequest', ['workspace'] ); request.workspace = defaultValue1; const expectedHeaderRequestParams = `workspace=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.moveDirectory = stubSimpleCall( + client.innerApiCalls.fetchFileDiff = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.moveDirectory(request), expectedError); + await assert.rejects(client.fetchFileDiff(request), expectedError); const actualRequest = ( - client.innerApiCalls.moveDirectory as SinonStub + client.innerApiCalls.fetchFileDiff as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.moveDirectory as SinonStub + client.innerApiCalls.fetchFileDiff as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes moveDirectory with closed client', async () => { + it('invokes fetchFileDiff with closed client', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.MoveDirectoryRequest() + new protos.google.cloud.dataform.v1beta1.FetchFileDiffRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.MoveDirectoryRequest', + '.google.cloud.dataform.v1beta1.FetchFileDiffRequest', ['workspace'] ); request.workspace = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects(client.moveDirectory(request), expectedError); + await assert.rejects(client.fetchFileDiff(request), expectedError); }); }); - describe('readFile', () => { - it('invokes readFile without error', async () => { + describe('makeDirectory', () => { + it('invokes makeDirectory without error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.ReadFileRequest() + new protos.google.cloud.dataform.v1beta1.MakeDirectoryRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.ReadFileRequest', + '.google.cloud.dataform.v1beta1.MakeDirectoryRequest', ['workspace'] ); request.workspace = defaultValue1; const expectedHeaderRequestParams = `workspace=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.ReadFileResponse() + new protos.google.cloud.dataform.v1beta1.MakeDirectoryResponse() ); - client.innerApiCalls.readFile = stubSimpleCall(expectedResponse); - const [response] = await client.readFile(request); + client.innerApiCalls.makeDirectory = stubSimpleCall(expectedResponse); + const [response] = await client.makeDirectory(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.readFile as SinonStub + client.innerApiCalls.makeDirectory as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.readFile as SinonStub + client.innerApiCalls.makeDirectory as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes readFile without error using callback', async () => { + it('invokes makeDirectory without error using callback', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.ReadFileRequest() + new protos.google.cloud.dataform.v1beta1.MakeDirectoryRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.ReadFileRequest', + '.google.cloud.dataform.v1beta1.MakeDirectoryRequest', ['workspace'] ); request.workspace = defaultValue1; const expectedHeaderRequestParams = `workspace=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.ReadFileResponse() + new protos.google.cloud.dataform.v1beta1.MakeDirectoryResponse() ); - client.innerApiCalls.readFile = + client.innerApiCalls.makeDirectory = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.readFile( + client.makeDirectory( request, ( err?: Error | null, - result?: protos.google.cloud.dataform.v1beta1.IReadFileResponse | null + result?: protos.google.cloud.dataform.v1beta1.IMakeDirectoryResponse | null ) => { if (err) { reject(err); @@ -2787,75 +2804,78 @@ describe('v1beta1.DataformClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.readFile as SinonStub + client.innerApiCalls.makeDirectory as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.readFile as SinonStub + client.innerApiCalls.makeDirectory as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes readFile with error', async () => { + it('invokes makeDirectory with error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.ReadFileRequest() + new protos.google.cloud.dataform.v1beta1.MakeDirectoryRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.ReadFileRequest', + '.google.cloud.dataform.v1beta1.MakeDirectoryRequest', ['workspace'] ); request.workspace = defaultValue1; const expectedHeaderRequestParams = `workspace=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.readFile = stubSimpleCall(undefined, expectedError); - await assert.rejects(client.readFile(request), expectedError); + client.innerApiCalls.makeDirectory = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.makeDirectory(request), expectedError); const actualRequest = ( - client.innerApiCalls.readFile as SinonStub + client.innerApiCalls.makeDirectory as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.readFile as SinonStub + client.innerApiCalls.makeDirectory as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes readFile with closed client', async () => { + it('invokes makeDirectory with closed client', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.ReadFileRequest() + new protos.google.cloud.dataform.v1beta1.MakeDirectoryRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.ReadFileRequest', + '.google.cloud.dataform.v1beta1.MakeDirectoryRequest', ['workspace'] ); request.workspace = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects(client.readFile(request), expectedError); + await assert.rejects(client.makeDirectory(request), expectedError); }); }); - describe('removeFile', () => { - it('invokes removeFile without error', async () => { + describe('removeDirectory', () => { + it('invokes removeDirectory without error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.RemoveFileRequest() + new protos.google.cloud.dataform.v1beta1.RemoveDirectoryRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.RemoveFileRequest', + '.google.cloud.dataform.v1beta1.RemoveDirectoryRequest', ['workspace'] ); request.workspace = defaultValue1; @@ -2863,30 +2883,30 @@ describe('v1beta1.DataformClient', () => { const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); - client.innerApiCalls.removeFile = stubSimpleCall(expectedResponse); - const [response] = await client.removeFile(request); + client.innerApiCalls.removeDirectory = stubSimpleCall(expectedResponse); + const [response] = await client.removeDirectory(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.removeFile as SinonStub + client.innerApiCalls.removeDirectory as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.removeFile as SinonStub + client.innerApiCalls.removeDirectory as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes removeFile without error using callback', async () => { + it('invokes removeDirectory without error using callback', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.RemoveFileRequest() + new protos.google.cloud.dataform.v1beta1.RemoveDirectoryRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.RemoveFileRequest', + '.google.cloud.dataform.v1beta1.RemoveDirectoryRequest', ['workspace'] ); request.workspace = defaultValue1; @@ -2894,10 +2914,10 @@ describe('v1beta1.DataformClient', () => { const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); - client.innerApiCalls.removeFile = + client.innerApiCalls.removeDirectory = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.removeFile( + client.removeDirectory( request, ( err?: Error | null, @@ -2914,124 +2934,124 @@ describe('v1beta1.DataformClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.removeFile as SinonStub + client.innerApiCalls.removeDirectory as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.removeFile as SinonStub + client.innerApiCalls.removeDirectory as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes removeFile with error', async () => { + it('invokes removeDirectory with error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.RemoveFileRequest() + new protos.google.cloud.dataform.v1beta1.RemoveDirectoryRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.RemoveFileRequest', + '.google.cloud.dataform.v1beta1.RemoveDirectoryRequest', ['workspace'] ); request.workspace = defaultValue1; const expectedHeaderRequestParams = `workspace=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.removeFile = stubSimpleCall( + client.innerApiCalls.removeDirectory = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.removeFile(request), expectedError); + await assert.rejects(client.removeDirectory(request), expectedError); const actualRequest = ( - client.innerApiCalls.removeFile as SinonStub + client.innerApiCalls.removeDirectory as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.removeFile as SinonStub + client.innerApiCalls.removeDirectory as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes removeFile with closed client', async () => { + it('invokes removeDirectory with closed client', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.RemoveFileRequest() + new protos.google.cloud.dataform.v1beta1.RemoveDirectoryRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.RemoveFileRequest', + '.google.cloud.dataform.v1beta1.RemoveDirectoryRequest', ['workspace'] ); request.workspace = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects(client.removeFile(request), expectedError); + await assert.rejects(client.removeDirectory(request), expectedError); }); }); - describe('moveFile', () => { - it('invokes moveFile without error', async () => { + describe('moveDirectory', () => { + it('invokes moveDirectory without error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.MoveFileRequest() + new protos.google.cloud.dataform.v1beta1.MoveDirectoryRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.MoveFileRequest', + '.google.cloud.dataform.v1beta1.MoveDirectoryRequest', ['workspace'] ); request.workspace = defaultValue1; const expectedHeaderRequestParams = `workspace=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.MoveFileResponse() + new protos.google.cloud.dataform.v1beta1.MoveDirectoryResponse() ); - client.innerApiCalls.moveFile = stubSimpleCall(expectedResponse); - const [response] = await client.moveFile(request); + client.innerApiCalls.moveDirectory = stubSimpleCall(expectedResponse); + const [response] = await client.moveDirectory(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.moveFile as SinonStub + client.innerApiCalls.moveDirectory as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.moveFile as SinonStub + client.innerApiCalls.moveDirectory as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes moveFile without error using callback', async () => { + it('invokes moveDirectory without error using callback', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.MoveFileRequest() + new protos.google.cloud.dataform.v1beta1.MoveDirectoryRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.MoveFileRequest', + '.google.cloud.dataform.v1beta1.MoveDirectoryRequest', ['workspace'] ); request.workspace = defaultValue1; const expectedHeaderRequestParams = `workspace=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.MoveFileResponse() + new protos.google.cloud.dataform.v1beta1.MoveDirectoryResponse() ); - client.innerApiCalls.moveFile = + client.innerApiCalls.moveDirectory = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.moveFile( + client.moveDirectory( request, ( err?: Error | null, - result?: protos.google.cloud.dataform.v1beta1.IMoveFileResponse | null + result?: protos.google.cloud.dataform.v1beta1.IMoveDirectoryResponse | null ) => { if (err) { reject(err); @@ -3044,121 +3064,124 @@ describe('v1beta1.DataformClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.moveFile as SinonStub + client.innerApiCalls.moveDirectory as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.moveFile as SinonStub + client.innerApiCalls.moveDirectory as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes moveFile with error', async () => { + it('invokes moveDirectory with error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.MoveFileRequest() + new protos.google.cloud.dataform.v1beta1.MoveDirectoryRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.MoveFileRequest', + '.google.cloud.dataform.v1beta1.MoveDirectoryRequest', ['workspace'] ); request.workspace = defaultValue1; const expectedHeaderRequestParams = `workspace=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.moveFile = stubSimpleCall(undefined, expectedError); - await assert.rejects(client.moveFile(request), expectedError); + client.innerApiCalls.moveDirectory = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.moveDirectory(request), expectedError); const actualRequest = ( - client.innerApiCalls.moveFile as SinonStub + client.innerApiCalls.moveDirectory as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.moveFile as SinonStub + client.innerApiCalls.moveDirectory as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes moveFile with closed client', async () => { + it('invokes moveDirectory with closed client', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.MoveFileRequest() + new protos.google.cloud.dataform.v1beta1.MoveDirectoryRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.MoveFileRequest', + '.google.cloud.dataform.v1beta1.MoveDirectoryRequest', ['workspace'] ); request.workspace = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects(client.moveFile(request), expectedError); + await assert.rejects(client.moveDirectory(request), expectedError); }); }); - describe('writeFile', () => { - it('invokes writeFile without error', async () => { + describe('readFile', () => { + it('invokes readFile without error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.WriteFileRequest() + new protos.google.cloud.dataform.v1beta1.ReadFileRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.WriteFileRequest', + '.google.cloud.dataform.v1beta1.ReadFileRequest', ['workspace'] ); request.workspace = defaultValue1; const expectedHeaderRequestParams = `workspace=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.WriteFileResponse() + new protos.google.cloud.dataform.v1beta1.ReadFileResponse() ); - client.innerApiCalls.writeFile = stubSimpleCall(expectedResponse); - const [response] = await client.writeFile(request); + client.innerApiCalls.readFile = stubSimpleCall(expectedResponse); + const [response] = await client.readFile(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.writeFile as SinonStub + client.innerApiCalls.readFile as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.writeFile as SinonStub + client.innerApiCalls.readFile as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes writeFile without error using callback', async () => { + it('invokes readFile without error using callback', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.WriteFileRequest() + new protos.google.cloud.dataform.v1beta1.ReadFileRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.WriteFileRequest', + '.google.cloud.dataform.v1beta1.ReadFileRequest', ['workspace'] ); request.workspace = defaultValue1; const expectedHeaderRequestParams = `workspace=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.WriteFileResponse() + new protos.google.cloud.dataform.v1beta1.ReadFileResponse() ); - client.innerApiCalls.writeFile = + client.innerApiCalls.readFile = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.writeFile( + client.readFile( request, ( err?: Error | null, - result?: protos.google.cloud.dataform.v1beta1.IWriteFileResponse | null + result?: protos.google.cloud.dataform.v1beta1.IReadFileResponse | null ) => { if (err) { reject(err); @@ -3171,122 +3194,121 @@ describe('v1beta1.DataformClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.writeFile as SinonStub + client.innerApiCalls.readFile as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.writeFile as SinonStub + client.innerApiCalls.readFile as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes writeFile with error', async () => { + it('invokes readFile with error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.WriteFileRequest() + new protos.google.cloud.dataform.v1beta1.ReadFileRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.WriteFileRequest', + '.google.cloud.dataform.v1beta1.ReadFileRequest', ['workspace'] ); request.workspace = defaultValue1; const expectedHeaderRequestParams = `workspace=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.writeFile = stubSimpleCall(undefined, expectedError); - await assert.rejects(client.writeFile(request), expectedError); + client.innerApiCalls.readFile = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.readFile(request), expectedError); const actualRequest = ( - client.innerApiCalls.writeFile as SinonStub + client.innerApiCalls.readFile as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.writeFile as SinonStub + client.innerApiCalls.readFile as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes writeFile with closed client', async () => { + it('invokes readFile with closed client', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.WriteFileRequest() + new protos.google.cloud.dataform.v1beta1.ReadFileRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.WriteFileRequest', + '.google.cloud.dataform.v1beta1.ReadFileRequest', ['workspace'] ); request.workspace = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects(client.writeFile(request), expectedError); + await assert.rejects(client.readFile(request), expectedError); }); }); - describe('getCompilationResult', () => { - it('invokes getCompilationResult without error', async () => { + describe('removeFile', () => { + it('invokes removeFile without error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.GetCompilationResultRequest() + new protos.google.cloud.dataform.v1beta1.RemoveFileRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.GetCompilationResultRequest', - ['name'] + '.google.cloud.dataform.v1beta1.RemoveFileRequest', + ['workspace'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.workspace = defaultValue1; + const expectedHeaderRequestParams = `workspace=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.CompilationResult() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.getCompilationResult = - stubSimpleCall(expectedResponse); - const [response] = await client.getCompilationResult(request); + client.innerApiCalls.removeFile = stubSimpleCall(expectedResponse); + const [response] = await client.removeFile(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.getCompilationResult as SinonStub + client.innerApiCalls.removeFile as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getCompilationResult as SinonStub + client.innerApiCalls.removeFile as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getCompilationResult without error using callback', async () => { + it('invokes removeFile without error using callback', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.GetCompilationResultRequest() + new protos.google.cloud.dataform.v1beta1.RemoveFileRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.GetCompilationResultRequest', - ['name'] + '.google.cloud.dataform.v1beta1.RemoveFileRequest', + ['workspace'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.workspace = defaultValue1; + const expectedHeaderRequestParams = `workspace=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.CompilationResult() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.getCompilationResult = + client.innerApiCalls.removeFile = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.getCompilationResult( + client.removeFile( request, ( err?: Error | null, - result?: protos.google.cloud.dataform.v1beta1.ICompilationResult | null + result?: protos.google.protobuf.IEmpty | null ) => { if (err) { reject(err); @@ -3299,125 +3321,124 @@ describe('v1beta1.DataformClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.getCompilationResult as SinonStub + client.innerApiCalls.removeFile as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getCompilationResult as SinonStub + client.innerApiCalls.removeFile as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getCompilationResult with error', async () => { + it('invokes removeFile with error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.GetCompilationResultRequest() + new protos.google.cloud.dataform.v1beta1.RemoveFileRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.GetCompilationResultRequest', - ['name'] + '.google.cloud.dataform.v1beta1.RemoveFileRequest', + ['workspace'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.workspace = defaultValue1; + const expectedHeaderRequestParams = `workspace=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.getCompilationResult = stubSimpleCall( + client.innerApiCalls.removeFile = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.getCompilationResult(request), expectedError); + await assert.rejects(client.removeFile(request), expectedError); const actualRequest = ( - client.innerApiCalls.getCompilationResult as SinonStub + client.innerApiCalls.removeFile as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getCompilationResult as SinonStub + client.innerApiCalls.removeFile as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getCompilationResult with closed client', async () => { + it('invokes removeFile with closed client', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.GetCompilationResultRequest() + new protos.google.cloud.dataform.v1beta1.RemoveFileRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.GetCompilationResultRequest', - ['name'] + '.google.cloud.dataform.v1beta1.RemoveFileRequest', + ['workspace'] ); - request.name = defaultValue1; + request.workspace = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects(client.getCompilationResult(request), expectedError); + await assert.rejects(client.removeFile(request), expectedError); }); }); - describe('createCompilationResult', () => { - it('invokes createCompilationResult without error', async () => { + describe('moveFile', () => { + it('invokes moveFile without error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.CreateCompilationResultRequest() + new protos.google.cloud.dataform.v1beta1.MoveFileRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.CreateCompilationResultRequest', - ['parent'] + '.google.cloud.dataform.v1beta1.MoveFileRequest', + ['workspace'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.workspace = defaultValue1; + const expectedHeaderRequestParams = `workspace=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.CompilationResult() + new protos.google.cloud.dataform.v1beta1.MoveFileResponse() ); - client.innerApiCalls.createCompilationResult = - stubSimpleCall(expectedResponse); - const [response] = await client.createCompilationResult(request); + client.innerApiCalls.moveFile = stubSimpleCall(expectedResponse); + const [response] = await client.moveFile(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.createCompilationResult as SinonStub + client.innerApiCalls.moveFile as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createCompilationResult as SinonStub + client.innerApiCalls.moveFile as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createCompilationResult without error using callback', async () => { + it('invokes moveFile without error using callback', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.CreateCompilationResultRequest() + new protos.google.cloud.dataform.v1beta1.MoveFileRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.CreateCompilationResultRequest', - ['parent'] + '.google.cloud.dataform.v1beta1.MoveFileRequest', + ['workspace'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.workspace = defaultValue1; + const expectedHeaderRequestParams = `workspace=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.CompilationResult() + new protos.google.cloud.dataform.v1beta1.MoveFileResponse() ); - client.innerApiCalls.createCompilationResult = + client.innerApiCalls.moveFile = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.createCompilationResult( + client.moveFile( request, ( err?: Error | null, - result?: protos.google.cloud.dataform.v1beta1.ICompilationResult | null + result?: protos.google.cloud.dataform.v1beta1.IMoveFileResponse | null ) => { if (err) { reject(err); @@ -3430,131 +3451,121 @@ describe('v1beta1.DataformClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.createCompilationResult as SinonStub + client.innerApiCalls.moveFile as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createCompilationResult as SinonStub + client.innerApiCalls.moveFile as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createCompilationResult with error', async () => { + it('invokes moveFile with error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.CreateCompilationResultRequest() + new protos.google.cloud.dataform.v1beta1.MoveFileRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.CreateCompilationResultRequest', - ['parent'] + '.google.cloud.dataform.v1beta1.MoveFileRequest', + ['workspace'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.workspace = defaultValue1; + const expectedHeaderRequestParams = `workspace=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.createCompilationResult = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects( - client.createCompilationResult(request), - expectedError - ); + client.innerApiCalls.moveFile = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.moveFile(request), expectedError); const actualRequest = ( - client.innerApiCalls.createCompilationResult as SinonStub + client.innerApiCalls.moveFile as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createCompilationResult as SinonStub + client.innerApiCalls.moveFile as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createCompilationResult with closed client', async () => { + it('invokes moveFile with closed client', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.CreateCompilationResultRequest() + new protos.google.cloud.dataform.v1beta1.MoveFileRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.CreateCompilationResultRequest', - ['parent'] + '.google.cloud.dataform.v1beta1.MoveFileRequest', + ['workspace'] ); - request.parent = defaultValue1; + request.workspace = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects( - client.createCompilationResult(request), - expectedError - ); + await assert.rejects(client.moveFile(request), expectedError); }); }); - describe('getWorkflowInvocation', () => { - it('invokes getWorkflowInvocation without error', async () => { + describe('writeFile', () => { + it('invokes writeFile without error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest() + new protos.google.cloud.dataform.v1beta1.WriteFileRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest', - ['name'] + '.google.cloud.dataform.v1beta1.WriteFileRequest', + ['workspace'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.workspace = defaultValue1; + const expectedHeaderRequestParams = `workspace=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.WorkflowInvocation() + new protos.google.cloud.dataform.v1beta1.WriteFileResponse() ); - client.innerApiCalls.getWorkflowInvocation = - stubSimpleCall(expectedResponse); - const [response] = await client.getWorkflowInvocation(request); + client.innerApiCalls.writeFile = stubSimpleCall(expectedResponse); + const [response] = await client.writeFile(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.getWorkflowInvocation as SinonStub + client.innerApiCalls.writeFile as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getWorkflowInvocation as SinonStub + client.innerApiCalls.writeFile as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getWorkflowInvocation without error using callback', async () => { + it('invokes writeFile without error using callback', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest() + new protos.google.cloud.dataform.v1beta1.WriteFileRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest', - ['name'] + '.google.cloud.dataform.v1beta1.WriteFileRequest', + ['workspace'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.workspace = defaultValue1; + const expectedHeaderRequestParams = `workspace=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.WorkflowInvocation() + new protos.google.cloud.dataform.v1beta1.WriteFileResponse() ); - client.innerApiCalls.getWorkflowInvocation = + client.innerApiCalls.writeFile = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.getWorkflowInvocation( + client.writeFile( request, ( err?: Error | null, - result?: protos.google.cloud.dataform.v1beta1.IWorkflowInvocation | null + result?: protos.google.cloud.dataform.v1beta1.IWriteFileResponse | null ) => { if (err) { reject(err); @@ -3567,131 +3578,121 @@ describe('v1beta1.DataformClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.getWorkflowInvocation as SinonStub + client.innerApiCalls.writeFile as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getWorkflowInvocation as SinonStub + client.innerApiCalls.writeFile as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getWorkflowInvocation with error', async () => { + it('invokes writeFile with error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest() + new protos.google.cloud.dataform.v1beta1.WriteFileRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest', - ['name'] + '.google.cloud.dataform.v1beta1.WriteFileRequest', + ['workspace'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.workspace = defaultValue1; + const expectedHeaderRequestParams = `workspace=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.getWorkflowInvocation = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects( - client.getWorkflowInvocation(request), - expectedError - ); + client.innerApiCalls.writeFile = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.writeFile(request), expectedError); const actualRequest = ( - client.innerApiCalls.getWorkflowInvocation as SinonStub + client.innerApiCalls.writeFile as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getWorkflowInvocation as SinonStub + client.innerApiCalls.writeFile as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getWorkflowInvocation with closed client', async () => { + it('invokes writeFile with closed client', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest() + new protos.google.cloud.dataform.v1beta1.WriteFileRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest', - ['name'] + '.google.cloud.dataform.v1beta1.WriteFileRequest', + ['workspace'] ); - request.name = defaultValue1; + request.workspace = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects( - client.getWorkflowInvocation(request), - expectedError - ); + await assert.rejects(client.writeFile(request), expectedError); }); }); - describe('createWorkflowInvocation', () => { - it('invokes createWorkflowInvocation without error', async () => { + describe('getReleaseConfig', () => { + it('invokes getReleaseConfig without error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest() + new protos.google.cloud.dataform.v1beta1.GetReleaseConfigRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest', - ['parent'] + '.google.cloud.dataform.v1beta1.GetReleaseConfigRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.WorkflowInvocation() + new protos.google.cloud.dataform.v1beta1.ReleaseConfig() ); - client.innerApiCalls.createWorkflowInvocation = - stubSimpleCall(expectedResponse); - const [response] = await client.createWorkflowInvocation(request); + client.innerApiCalls.getReleaseConfig = stubSimpleCall(expectedResponse); + const [response] = await client.getReleaseConfig(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.createWorkflowInvocation as SinonStub + client.innerApiCalls.getReleaseConfig as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createWorkflowInvocation as SinonStub + client.innerApiCalls.getReleaseConfig as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createWorkflowInvocation without error using callback', async () => { + it('invokes getReleaseConfig without error using callback', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest() + new protos.google.cloud.dataform.v1beta1.GetReleaseConfigRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest', - ['parent'] + '.google.cloud.dataform.v1beta1.GetReleaseConfigRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.WorkflowInvocation() + new protos.google.cloud.dataform.v1beta1.ReleaseConfig() ); - client.innerApiCalls.createWorkflowInvocation = + client.innerApiCalls.getReleaseConfig = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.createWorkflowInvocation( + client.getReleaseConfig( request, ( err?: Error | null, - result?: protos.google.cloud.dataform.v1beta1.IWorkflowInvocation | null + result?: protos.google.cloud.dataform.v1beta1.IReleaseConfig | null ) => { if (err) { reject(err); @@ -3704,131 +3705,125 @@ describe('v1beta1.DataformClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.createWorkflowInvocation as SinonStub + client.innerApiCalls.getReleaseConfig as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createWorkflowInvocation as SinonStub + client.innerApiCalls.getReleaseConfig as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createWorkflowInvocation with error', async () => { + it('invokes getReleaseConfig with error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest() + new protos.google.cloud.dataform.v1beta1.GetReleaseConfigRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest', - ['parent'] + '.google.cloud.dataform.v1beta1.GetReleaseConfigRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.createWorkflowInvocation = stubSimpleCall( + client.innerApiCalls.getReleaseConfig = stubSimpleCall( undefined, expectedError ); - await assert.rejects( - client.createWorkflowInvocation(request), - expectedError - ); + await assert.rejects(client.getReleaseConfig(request), expectedError); const actualRequest = ( - client.innerApiCalls.createWorkflowInvocation as SinonStub + client.innerApiCalls.getReleaseConfig as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createWorkflowInvocation as SinonStub + client.innerApiCalls.getReleaseConfig as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createWorkflowInvocation with closed client', async () => { + it('invokes getReleaseConfig with closed client', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest() + new protos.google.cloud.dataform.v1beta1.GetReleaseConfigRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest', - ['parent'] + '.google.cloud.dataform.v1beta1.GetReleaseConfigRequest', + ['name'] ); - request.parent = defaultValue1; + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects( - client.createWorkflowInvocation(request), - expectedError - ); + await assert.rejects(client.getReleaseConfig(request), expectedError); }); }); - describe('deleteWorkflowInvocation', () => { - it('invokes deleteWorkflowInvocation without error', async () => { + describe('createReleaseConfig', () => { + it('invokes createReleaseConfig without error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest() + new protos.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest', - ['name'] + '.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() + new protos.google.cloud.dataform.v1beta1.ReleaseConfig() ); - client.innerApiCalls.deleteWorkflowInvocation = + client.innerApiCalls.createReleaseConfig = stubSimpleCall(expectedResponse); - const [response] = await client.deleteWorkflowInvocation(request); + const [response] = await client.createReleaseConfig(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteWorkflowInvocation as SinonStub + client.innerApiCalls.createReleaseConfig as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteWorkflowInvocation as SinonStub + client.innerApiCalls.createReleaseConfig as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteWorkflowInvocation without error using callback', async () => { + it('invokes createReleaseConfig without error using callback', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest() + new protos.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest', - ['name'] + '.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() + new protos.google.cloud.dataform.v1beta1.ReleaseConfig() ); - client.innerApiCalls.deleteWorkflowInvocation = + client.innerApiCalls.createReleaseConfig = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.deleteWorkflowInvocation( + client.createReleaseConfig( request, ( err?: Error | null, - result?: protos.google.protobuf.IEmpty | null + result?: protos.google.cloud.dataform.v1beta1.IReleaseConfig | null ) => { if (err) { reject(err); @@ -3841,131 +3836,127 @@ describe('v1beta1.DataformClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteWorkflowInvocation as SinonStub + client.innerApiCalls.createReleaseConfig as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteWorkflowInvocation as SinonStub + client.innerApiCalls.createReleaseConfig as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteWorkflowInvocation with error', async () => { + it('invokes createReleaseConfig with error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest() + new protos.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest', - ['name'] + '.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.deleteWorkflowInvocation = stubSimpleCall( + client.innerApiCalls.createReleaseConfig = stubSimpleCall( undefined, expectedError ); - await assert.rejects( - client.deleteWorkflowInvocation(request), - expectedError - ); + await assert.rejects(client.createReleaseConfig(request), expectedError); const actualRequest = ( - client.innerApiCalls.deleteWorkflowInvocation as SinonStub + client.innerApiCalls.createReleaseConfig as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteWorkflowInvocation as SinonStub + client.innerApiCalls.createReleaseConfig as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteWorkflowInvocation with closed client', async () => { + it('invokes createReleaseConfig with closed client', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest() + new protos.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest', - ['name'] + '.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest', + ['parent'] ); - request.name = defaultValue1; + request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects( - client.deleteWorkflowInvocation(request), - expectedError - ); + await assert.rejects(client.createReleaseConfig(request), expectedError); }); }); - describe('cancelWorkflowInvocation', () => { - it('invokes cancelWorkflowInvocation without error', async () => { + describe('updateReleaseConfig', () => { + it('invokes updateReleaseConfig without error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest() + new protos.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest() ); + request.releaseConfig ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest', - ['name'] + '.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest', + ['releaseConfig', 'name'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.releaseConfig.name = defaultValue1; + const expectedHeaderRequestParams = `release_config.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() + new protos.google.cloud.dataform.v1beta1.ReleaseConfig() ); - client.innerApiCalls.cancelWorkflowInvocation = + client.innerApiCalls.updateReleaseConfig = stubSimpleCall(expectedResponse); - const [response] = await client.cancelWorkflowInvocation(request); + const [response] = await client.updateReleaseConfig(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.cancelWorkflowInvocation as SinonStub + client.innerApiCalls.updateReleaseConfig as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.cancelWorkflowInvocation as SinonStub + client.innerApiCalls.updateReleaseConfig as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes cancelWorkflowInvocation without error using callback', async () => { + it('invokes updateReleaseConfig without error using callback', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest() + new protos.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest() ); + request.releaseConfig ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest', - ['name'] + '.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest', + ['releaseConfig', 'name'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.releaseConfig.name = defaultValue1; + const expectedHeaderRequestParams = `release_config.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() + new protos.google.cloud.dataform.v1beta1.ReleaseConfig() ); - client.innerApiCalls.cancelWorkflowInvocation = + client.innerApiCalls.updateReleaseConfig = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.cancelWorkflowInvocation( + client.updateReleaseConfig( request, ( err?: Error | null, - result?: protos.google.protobuf.IEmpty | null + result?: protos.google.cloud.dataform.v1beta1.IReleaseConfig | null ) => { if (err) { reject(err); @@ -3978,146 +3969,127 @@ describe('v1beta1.DataformClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.cancelWorkflowInvocation as SinonStub + client.innerApiCalls.updateReleaseConfig as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.cancelWorkflowInvocation as SinonStub + client.innerApiCalls.updateReleaseConfig as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes cancelWorkflowInvocation with error', async () => { + it('invokes updateReleaseConfig with error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest() + new protos.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest() ); + request.releaseConfig ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest', - ['name'] + '.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest', + ['releaseConfig', 'name'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.releaseConfig.name = defaultValue1; + const expectedHeaderRequestParams = `release_config.name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.cancelWorkflowInvocation = stubSimpleCall( + client.innerApiCalls.updateReleaseConfig = stubSimpleCall( undefined, expectedError ); - await assert.rejects( - client.cancelWorkflowInvocation(request), - expectedError - ); + await assert.rejects(client.updateReleaseConfig(request), expectedError); const actualRequest = ( - client.innerApiCalls.cancelWorkflowInvocation as SinonStub + client.innerApiCalls.updateReleaseConfig as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.cancelWorkflowInvocation as SinonStub + client.innerApiCalls.updateReleaseConfig as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes cancelWorkflowInvocation with closed client', async () => { + it('invokes updateReleaseConfig with closed client', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest() + new protos.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest() ); + request.releaseConfig ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest', - ['name'] + '.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest', + ['releaseConfig', 'name'] ); - request.name = defaultValue1; + request.releaseConfig.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects( - client.cancelWorkflowInvocation(request), - expectedError - ); + await assert.rejects(client.updateReleaseConfig(request), expectedError); }); }); - describe('listRepositories', () => { - it('invokes listRepositories without error', async () => { + describe('deleteReleaseConfig', () => { + it('invokes deleteReleaseConfig without error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.ListRepositoriesRequest() + new protos.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.ListRepositoriesRequest', - ['parent'] + '.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; - const expectedResponse = [ - generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.Repository() - ), - generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.Repository() - ), - generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.Repository() - ), - ]; - client.innerApiCalls.listRepositories = stubSimpleCall(expectedResponse); - const [response] = await client.listRepositories(request); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteReleaseConfig = + stubSimpleCall(expectedResponse); + const [response] = await client.deleteReleaseConfig(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listRepositories as SinonStub + client.innerApiCalls.deleteReleaseConfig as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listRepositories as SinonStub + client.innerApiCalls.deleteReleaseConfig as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listRepositories without error using callback', async () => { + it('invokes deleteReleaseConfig without error using callback', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.ListRepositoriesRequest() + new protos.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.ListRepositoriesRequest', - ['parent'] + '.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; - const expectedResponse = [ - generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.Repository() - ), - generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.Repository() - ), - generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.Repository() - ), - ]; - client.innerApiCalls.listRepositories = + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteReleaseConfig = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listRepositories( + client.deleteReleaseConfig( request, ( err?: Error | null, - result?: protos.google.cloud.dataform.v1beta1.IRepository[] | null + result?: protos.google.protobuf.IEmpty | null ) => { if (err) { reject(err); @@ -4130,130 +4102,3000 @@ describe('v1beta1.DataformClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listRepositories as SinonStub + client.innerApiCalls.deleteReleaseConfig as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listRepositories as SinonStub + client.innerApiCalls.deleteReleaseConfig as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listRepositories with error', async () => { + it('invokes deleteReleaseConfig with error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.ListRepositoriesRequest() + new protos.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.ListRepositoriesRequest', - ['parent'] + '.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listRepositories = stubSimpleCall( + client.innerApiCalls.deleteReleaseConfig = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listRepositories(request), expectedError); + await assert.rejects(client.deleteReleaseConfig(request), expectedError); const actualRequest = ( - client.innerApiCalls.listRepositories as SinonStub + client.innerApiCalls.deleteReleaseConfig as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listRepositories as SinonStub + client.innerApiCalls.deleteReleaseConfig as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listRepositoriesStream without error', async () => { + it('invokes deleteReleaseConfig with closed client', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.ListRepositoriesRequest() + new protos.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.ListRepositoriesRequest', - ['parent'] + '.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; - const expectedResponse = [ - generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.Repository() - ), - generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.Repository() - ), - generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.Repository() - ), - ]; - client.descriptors.page.listRepositories.createStream = - stubPageStreamingCall(expectedResponse); - const stream = client.listRepositoriesStream(request); - const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.dataform.v1beta1.Repository[] = []; - stream.on( - 'data', - (response: protos.google.cloud.dataform.v1beta1.Repository) => { - responses.push(response); - } - ); - stream.on('end', () => { - resolve(responses); - }); - stream.on('error', (err: Error) => { - reject(err); - }); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.deleteReleaseConfig(request), expectedError); + }); + }); + + describe('getCompilationResult', () => { + it('invokes getCompilationResult without error', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', }); - const responses = await promise; - assert.deepStrictEqual(responses, expectedResponse); - assert( - (client.descriptors.page.listRepositories.createStream as SinonStub) - .getCall(0) - .calledWith(client.innerApiCalls.listRepositories, request) + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.GetCompilationResultRequest() ); - assert( - (client.descriptors.page.listRepositories.createStream as SinonStub) - .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.GetCompilationResultRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.CompilationResult() ); + client.innerApiCalls.getCompilationResult = + stubSimpleCall(expectedResponse); + const [response] = await client.getCompilationResult(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getCompilationResult as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getCompilationResult as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listRepositoriesStream with error', async () => { + it('invokes getCompilationResult without error using callback', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.ListRepositoriesRequest() + new protos.google.cloud.dataform.v1beta1.GetCompilationResultRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.ListRepositoriesRequest', - ['parent'] + '.google.cloud.dataform.v1beta1.GetCompilationResultRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; - const expectedError = new Error('expected'); - client.descriptors.page.listRepositories.createStream = - stubPageStreamingCall(undefined, expectedError); - const stream = client.listRepositoriesStream(request); - const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.dataform.v1beta1.Repository[] = []; - stream.on( + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.CompilationResult() + ); + client.innerApiCalls.getCompilationResult = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getCompilationResult( + request, + ( + err?: Error | null, + result?: protos.google.cloud.dataform.v1beta1.ICompilationResult | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getCompilationResult as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getCompilationResult as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getCompilationResult with error', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.GetCompilationResultRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.GetCompilationResultRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.getCompilationResult = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.getCompilationResult(request), expectedError); + const actualRequest = ( + client.innerApiCalls.getCompilationResult as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getCompilationResult as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getCompilationResult with closed client', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.GetCompilationResultRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.GetCompilationResultRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getCompilationResult(request), expectedError); + }); + }); + + describe('createCompilationResult', () => { + it('invokes createCompilationResult without error', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.CreateCompilationResultRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.CreateCompilationResultRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.CompilationResult() + ); + client.innerApiCalls.createCompilationResult = + stubSimpleCall(expectedResponse); + const [response] = await client.createCompilationResult(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.createCompilationResult as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createCompilationResult as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createCompilationResult without error using callback', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.CreateCompilationResultRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.CreateCompilationResultRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.CompilationResult() + ); + client.innerApiCalls.createCompilationResult = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.createCompilationResult( + request, + ( + err?: Error | null, + result?: protos.google.cloud.dataform.v1beta1.ICompilationResult | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.createCompilationResult as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createCompilationResult as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createCompilationResult with error', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.CreateCompilationResultRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.CreateCompilationResultRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.createCompilationResult = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.createCompilationResult(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.createCompilationResult as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createCompilationResult as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createCompilationResult with closed client', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.CreateCompilationResultRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.CreateCompilationResultRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.createCompilationResult(request), + expectedError + ); + }); + }); + + describe('getWorkflowConfig', () => { + it('invokes getWorkflowConfig without error', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.WorkflowConfig() + ); + client.innerApiCalls.getWorkflowConfig = stubSimpleCall(expectedResponse); + const [response] = await client.getWorkflowConfig(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getWorkflowConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getWorkflowConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getWorkflowConfig without error using callback', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.WorkflowConfig() + ); + client.innerApiCalls.getWorkflowConfig = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getWorkflowConfig( + request, + ( + err?: Error | null, + result?: protos.google.cloud.dataform.v1beta1.IWorkflowConfig | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getWorkflowConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getWorkflowConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getWorkflowConfig with error', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.getWorkflowConfig = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.getWorkflowConfig(request), expectedError); + const actualRequest = ( + client.innerApiCalls.getWorkflowConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getWorkflowConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getWorkflowConfig with closed client', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getWorkflowConfig(request), expectedError); + }); + }); + + describe('createWorkflowConfig', () => { + it('invokes createWorkflowConfig without error', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.WorkflowConfig() + ); + client.innerApiCalls.createWorkflowConfig = + stubSimpleCall(expectedResponse); + const [response] = await client.createWorkflowConfig(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.createWorkflowConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createWorkflowConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createWorkflowConfig without error using callback', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.WorkflowConfig() + ); + client.innerApiCalls.createWorkflowConfig = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.createWorkflowConfig( + request, + ( + err?: Error | null, + result?: protos.google.cloud.dataform.v1beta1.IWorkflowConfig | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.createWorkflowConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createWorkflowConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createWorkflowConfig with error', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.createWorkflowConfig = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.createWorkflowConfig(request), expectedError); + const actualRequest = ( + client.innerApiCalls.createWorkflowConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createWorkflowConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createWorkflowConfig with closed client', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.createWorkflowConfig(request), expectedError); + }); + }); + + describe('updateWorkflowConfig', () => { + it('invokes updateWorkflowConfig without error', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest() + ); + request.workflowConfig ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest', + ['workflowConfig', 'name'] + ); + request.workflowConfig.name = defaultValue1; + const expectedHeaderRequestParams = `workflow_config.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.WorkflowConfig() + ); + client.innerApiCalls.updateWorkflowConfig = + stubSimpleCall(expectedResponse); + const [response] = await client.updateWorkflowConfig(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateWorkflowConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateWorkflowConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateWorkflowConfig without error using callback', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest() + ); + request.workflowConfig ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest', + ['workflowConfig', 'name'] + ); + request.workflowConfig.name = defaultValue1; + const expectedHeaderRequestParams = `workflow_config.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.WorkflowConfig() + ); + client.innerApiCalls.updateWorkflowConfig = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateWorkflowConfig( + request, + ( + err?: Error | null, + result?: protos.google.cloud.dataform.v1beta1.IWorkflowConfig | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateWorkflowConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateWorkflowConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateWorkflowConfig with error', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest() + ); + request.workflowConfig ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest', + ['workflowConfig', 'name'] + ); + request.workflowConfig.name = defaultValue1; + const expectedHeaderRequestParams = `workflow_config.name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateWorkflowConfig = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.updateWorkflowConfig(request), expectedError); + const actualRequest = ( + client.innerApiCalls.updateWorkflowConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateWorkflowConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateWorkflowConfig with closed client', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest() + ); + request.workflowConfig ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest', + ['workflowConfig', 'name'] + ); + request.workflowConfig.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.updateWorkflowConfig(request), expectedError); + }); + }); + + describe('deleteWorkflowConfig', () => { + it('invokes deleteWorkflowConfig without error', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteWorkflowConfig = + stubSimpleCall(expectedResponse); + const [response] = await client.deleteWorkflowConfig(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteWorkflowConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteWorkflowConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteWorkflowConfig without error using callback', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteWorkflowConfig = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteWorkflowConfig( + request, + ( + err?: Error | null, + result?: protos.google.protobuf.IEmpty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteWorkflowConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteWorkflowConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteWorkflowConfig with error', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteWorkflowConfig = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.deleteWorkflowConfig(request), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteWorkflowConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteWorkflowConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteWorkflowConfig with closed client', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.deleteWorkflowConfig(request), expectedError); + }); + }); + + describe('getWorkflowInvocation', () => { + it('invokes getWorkflowInvocation without error', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.WorkflowInvocation() + ); + client.innerApiCalls.getWorkflowInvocation = + stubSimpleCall(expectedResponse); + const [response] = await client.getWorkflowInvocation(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getWorkflowInvocation as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getWorkflowInvocation as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getWorkflowInvocation without error using callback', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.WorkflowInvocation() + ); + client.innerApiCalls.getWorkflowInvocation = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getWorkflowInvocation( + request, + ( + err?: Error | null, + result?: protos.google.cloud.dataform.v1beta1.IWorkflowInvocation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getWorkflowInvocation as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getWorkflowInvocation as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getWorkflowInvocation with error', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.getWorkflowInvocation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.getWorkflowInvocation(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.getWorkflowInvocation as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getWorkflowInvocation as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getWorkflowInvocation with closed client', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.getWorkflowInvocation(request), + expectedError + ); + }); + }); + + describe('createWorkflowInvocation', () => { + it('invokes createWorkflowInvocation without error', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.WorkflowInvocation() + ); + client.innerApiCalls.createWorkflowInvocation = + stubSimpleCall(expectedResponse); + const [response] = await client.createWorkflowInvocation(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.createWorkflowInvocation as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createWorkflowInvocation as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createWorkflowInvocation without error using callback', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.WorkflowInvocation() + ); + client.innerApiCalls.createWorkflowInvocation = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.createWorkflowInvocation( + request, + ( + err?: Error | null, + result?: protos.google.cloud.dataform.v1beta1.IWorkflowInvocation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.createWorkflowInvocation as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createWorkflowInvocation as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createWorkflowInvocation with error', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.createWorkflowInvocation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.createWorkflowInvocation(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.createWorkflowInvocation as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createWorkflowInvocation as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createWorkflowInvocation with closed client', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.createWorkflowInvocation(request), + expectedError + ); + }); + }); + + describe('deleteWorkflowInvocation', () => { + it('invokes deleteWorkflowInvocation without error', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteWorkflowInvocation = + stubSimpleCall(expectedResponse); + const [response] = await client.deleteWorkflowInvocation(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteWorkflowInvocation as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteWorkflowInvocation as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteWorkflowInvocation without error using callback', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteWorkflowInvocation = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteWorkflowInvocation( + request, + ( + err?: Error | null, + result?: protos.google.protobuf.IEmpty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteWorkflowInvocation as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteWorkflowInvocation as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteWorkflowInvocation with error', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteWorkflowInvocation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.deleteWorkflowInvocation(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.deleteWorkflowInvocation as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteWorkflowInvocation as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteWorkflowInvocation with closed client', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.deleteWorkflowInvocation(request), + expectedError + ); + }); + }); + + describe('cancelWorkflowInvocation', () => { + it('invokes cancelWorkflowInvocation without error', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.cancelWorkflowInvocation = + stubSimpleCall(expectedResponse); + const [response] = await client.cancelWorkflowInvocation(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.cancelWorkflowInvocation as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.cancelWorkflowInvocation as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes cancelWorkflowInvocation without error using callback', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.cancelWorkflowInvocation = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.cancelWorkflowInvocation( + request, + ( + err?: Error | null, + result?: protos.google.protobuf.IEmpty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.cancelWorkflowInvocation as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.cancelWorkflowInvocation as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes cancelWorkflowInvocation with error', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.cancelWorkflowInvocation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.cancelWorkflowInvocation(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.cancelWorkflowInvocation as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.cancelWorkflowInvocation as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes cancelWorkflowInvocation with closed client', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.cancelWorkflowInvocation(request), + expectedError + ); + }); + }); + + describe('listRepositories', () => { + it('invokes listRepositories without error', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.ListRepositoriesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.ListRepositoriesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.Repository() + ), + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.Repository() + ), + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.Repository() + ), + ]; + client.innerApiCalls.listRepositories = stubSimpleCall(expectedResponse); + const [response] = await client.listRepositories(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listRepositories as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listRepositories as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listRepositories without error using callback', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.ListRepositoriesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.ListRepositoriesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.Repository() + ), + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.Repository() + ), + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.Repository() + ), + ]; + client.innerApiCalls.listRepositories = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listRepositories( + request, + ( + err?: Error | null, + result?: protos.google.cloud.dataform.v1beta1.IRepository[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listRepositories as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listRepositories as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listRepositories with error', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.ListRepositoriesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.ListRepositoriesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.listRepositories = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listRepositories(request), expectedError); + const actualRequest = ( + client.innerApiCalls.listRepositories as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listRepositories as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listRepositoriesStream without error', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.ListRepositoriesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.ListRepositoriesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.Repository() + ), + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.Repository() + ), + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.Repository() + ), + ]; + client.descriptors.page.listRepositories.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listRepositoriesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.dataform.v1beta1.Repository[] = []; + stream.on( + 'data', + (response: protos.google.cloud.dataform.v1beta1.Repository) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listRepositories.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listRepositories, request) + ); + assert( + (client.descriptors.page.listRepositories.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listRepositoriesStream with error', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.ListRepositoriesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.ListRepositoriesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listRepositories.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listRepositoriesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.dataform.v1beta1.Repository[] = []; + stream.on( + 'data', + (response: protos.google.cloud.dataform.v1beta1.Repository) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listRepositories.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listRepositories, request) + ); + assert( + (client.descriptors.page.listRepositories.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listRepositories without error', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.ListRepositoriesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.ListRepositoriesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.Repository() + ), + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.Repository() + ), + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.Repository() + ), + ]; + client.descriptors.page.listRepositories.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.dataform.v1beta1.IRepository[] = []; + const iterable = client.listRepositoriesAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listRepositories.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listRepositories.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listRepositories with error', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.ListRepositoriesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.ListRepositoriesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listRepositories.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listRepositoriesAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.dataform.v1beta1.IRepository[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listRepositories.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listRepositories.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + + describe('queryRepositoryDirectoryContents', () => { + it('invokes queryRepositoryDirectoryContents without error', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.DirectoryEntry() + ), + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.DirectoryEntry() + ), + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.DirectoryEntry() + ), + ]; + client.innerApiCalls.queryRepositoryDirectoryContents = + stubSimpleCall(expectedResponse); + const [response] = await client.queryRepositoryDirectoryContents(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.queryRepositoryDirectoryContents as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.queryRepositoryDirectoryContents as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes queryRepositoryDirectoryContents without error using callback', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.DirectoryEntry() + ), + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.DirectoryEntry() + ), + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.DirectoryEntry() + ), + ]; + client.innerApiCalls.queryRepositoryDirectoryContents = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.queryRepositoryDirectoryContents( + request, + ( + err?: Error | null, + result?: + | protos.google.cloud.dataform.v1beta1.IDirectoryEntry[] + | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.queryRepositoryDirectoryContents as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.queryRepositoryDirectoryContents as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes queryRepositoryDirectoryContents with error', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.queryRepositoryDirectoryContents = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.queryRepositoryDirectoryContents(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.queryRepositoryDirectoryContents as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.queryRepositoryDirectoryContents as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes queryRepositoryDirectoryContentsStream without error', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.DirectoryEntry() + ), + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.DirectoryEntry() + ), + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.DirectoryEntry() + ), + ]; + client.descriptors.page.queryRepositoryDirectoryContents.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.queryRepositoryDirectoryContentsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.dataform.v1beta1.DirectoryEntry[] = + []; + stream.on( + 'data', + (response: protos.google.cloud.dataform.v1beta1.DirectoryEntry) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + ( + client.descriptors.page.queryRepositoryDirectoryContents + .createStream as SinonStub + ) + .getCall(0) + .calledWith( + client.innerApiCalls.queryRepositoryDirectoryContents, + request + ) + ); + assert( + ( + client.descriptors.page.queryRepositoryDirectoryContents + .createStream as SinonStub + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes queryRepositoryDirectoryContentsStream with error', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.queryRepositoryDirectoryContents.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.queryRepositoryDirectoryContentsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.dataform.v1beta1.DirectoryEntry[] = + []; + stream.on( + 'data', + (response: protos.google.cloud.dataform.v1beta1.DirectoryEntry) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + ( + client.descriptors.page.queryRepositoryDirectoryContents + .createStream as SinonStub + ) + .getCall(0) + .calledWith( + client.innerApiCalls.queryRepositoryDirectoryContents, + request + ) + ); + assert( + ( + client.descriptors.page.queryRepositoryDirectoryContents + .createStream as SinonStub + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with queryRepositoryDirectoryContents without error', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.DirectoryEntry() + ), + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.DirectoryEntry() + ), + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.DirectoryEntry() + ), + ]; + client.descriptors.page.queryRepositoryDirectoryContents.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.dataform.v1beta1.IDirectoryEntry[] = + []; + const iterable = client.queryRepositoryDirectoryContentsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.queryRepositoryDirectoryContents + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + ( + client.descriptors.page.queryRepositoryDirectoryContents + .asyncIterate as SinonStub + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with queryRepositoryDirectoryContents with error', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.queryRepositoryDirectoryContents.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.queryRepositoryDirectoryContentsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.dataform.v1beta1.IDirectoryEntry[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.queryRepositoryDirectoryContents + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + ( + client.descriptors.page.queryRepositoryDirectoryContents + .asyncIterate as SinonStub + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + + describe('fetchRepositoryHistory', () => { + it('invokes fetchRepositoryHistory without error', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.CommitLogEntry() + ), + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.CommitLogEntry() + ), + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.CommitLogEntry() + ), + ]; + client.innerApiCalls.fetchRepositoryHistory = + stubSimpleCall(expectedResponse); + const [response] = await client.fetchRepositoryHistory(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.fetchRepositoryHistory as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.fetchRepositoryHistory as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes fetchRepositoryHistory without error using callback', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.CommitLogEntry() + ), + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.CommitLogEntry() + ), + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.CommitLogEntry() + ), + ]; + client.innerApiCalls.fetchRepositoryHistory = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.fetchRepositoryHistory( + request, + ( + err?: Error | null, + result?: + | protos.google.cloud.dataform.v1beta1.ICommitLogEntry[] + | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.fetchRepositoryHistory as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.fetchRepositoryHistory as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes fetchRepositoryHistory with error', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.fetchRepositoryHistory = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.fetchRepositoryHistory(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.fetchRepositoryHistory as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.fetchRepositoryHistory as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes fetchRepositoryHistoryStream without error', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.CommitLogEntry() + ), + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.CommitLogEntry() + ), + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.CommitLogEntry() + ), + ]; + client.descriptors.page.fetchRepositoryHistory.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.fetchRepositoryHistoryStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.dataform.v1beta1.CommitLogEntry[] = + []; + stream.on( + 'data', + (response: protos.google.cloud.dataform.v1beta1.CommitLogEntry) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + ( + client.descriptors.page.fetchRepositoryHistory + .createStream as SinonStub + ) + .getCall(0) + .calledWith(client.innerApiCalls.fetchRepositoryHistory, request) + ); + assert( + ( + client.descriptors.page.fetchRepositoryHistory + .createStream as SinonStub + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes fetchRepositoryHistoryStream with error', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.fetchRepositoryHistory.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.fetchRepositoryHistoryStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.dataform.v1beta1.CommitLogEntry[] = + []; + stream.on( + 'data', + (response: protos.google.cloud.dataform.v1beta1.CommitLogEntry) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + ( + client.descriptors.page.fetchRepositoryHistory + .createStream as SinonStub + ) + .getCall(0) + .calledWith(client.innerApiCalls.fetchRepositoryHistory, request) + ); + assert( + ( + client.descriptors.page.fetchRepositoryHistory + .createStream as SinonStub + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with fetchRepositoryHistory without error', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.CommitLogEntry() + ), + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.CommitLogEntry() + ), + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.CommitLogEntry() + ), + ]; + client.descriptors.page.fetchRepositoryHistory.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.dataform.v1beta1.ICommitLogEntry[] = + []; + const iterable = client.fetchRepositoryHistoryAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.fetchRepositoryHistory + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + ( + client.descriptors.page.fetchRepositoryHistory + .asyncIterate as SinonStub + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with fetchRepositoryHistory with error', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.fetchRepositoryHistory.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.fetchRepositoryHistoryAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.dataform.v1beta1.ICommitLogEntry[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.fetchRepositoryHistory + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + ( + client.descriptors.page.fetchRepositoryHistory + .asyncIterate as SinonStub + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + + describe('listWorkspaces', () => { + it('invokes listWorkspaces without error', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.ListWorkspacesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.ListWorkspacesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.Workspace() + ), + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.Workspace() + ), + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.Workspace() + ), + ]; + client.innerApiCalls.listWorkspaces = stubSimpleCall(expectedResponse); + const [response] = await client.listWorkspaces(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listWorkspaces as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listWorkspaces as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listWorkspaces without error using callback', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.ListWorkspacesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.ListWorkspacesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.Workspace() + ), + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.Workspace() + ), + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.Workspace() + ), + ]; + client.innerApiCalls.listWorkspaces = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listWorkspaces( + request, + ( + err?: Error | null, + result?: protos.google.cloud.dataform.v1beta1.IWorkspace[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listWorkspaces as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listWorkspaces as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listWorkspaces with error', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.ListWorkspacesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.ListWorkspacesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.listWorkspaces = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listWorkspaces(request), expectedError); + const actualRequest = ( + client.innerApiCalls.listWorkspaces as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listWorkspaces as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listWorkspacesStream without error', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.ListWorkspacesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.ListWorkspacesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.Workspace() + ), + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.Workspace() + ), + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.Workspace() + ), + ]; + client.descriptors.page.listWorkspaces.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listWorkspacesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.dataform.v1beta1.Workspace[] = []; + stream.on( + 'data', + (response: protos.google.cloud.dataform.v1beta1.Workspace) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listWorkspaces.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listWorkspaces, request) + ); + assert( + (client.descriptors.page.listWorkspaces.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listWorkspacesStream with error', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.ListWorkspacesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.ListWorkspacesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listWorkspaces.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listWorkspacesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.dataform.v1beta1.Workspace[] = []; + stream.on( + 'data', + (response: protos.google.cloud.dataform.v1beta1.Workspace) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listWorkspaces.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listWorkspaces, request) + ); + assert( + (client.descriptors.page.listWorkspaces.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listWorkspaces without error', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.ListWorkspacesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.ListWorkspacesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.Workspace() + ), + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.Workspace() + ), + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.Workspace() + ), + ]; + client.descriptors.page.listWorkspaces.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.dataform.v1beta1.IWorkspace[] = []; + const iterable = client.listWorkspacesAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listWorkspaces.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listWorkspaces.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listWorkspaces with error', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.ListWorkspacesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.ListWorkspacesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listWorkspaces.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listWorkspacesAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.dataform.v1beta1.IWorkspace[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listWorkspaces.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listWorkspaces.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + + describe('queryDirectoryContents', () => { + it('invokes queryDirectoryContents without error', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest', + ['workspace'] + ); + request.workspace = defaultValue1; + const expectedHeaderRequestParams = `workspace=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.DirectoryEntry() + ), + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.DirectoryEntry() + ), + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.DirectoryEntry() + ), + ]; + client.innerApiCalls.queryDirectoryContents = + stubSimpleCall(expectedResponse); + const [response] = await client.queryDirectoryContents(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.queryDirectoryContents as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.queryDirectoryContents as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes queryDirectoryContents without error using callback', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest', + ['workspace'] + ); + request.workspace = defaultValue1; + const expectedHeaderRequestParams = `workspace=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.DirectoryEntry() + ), + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.DirectoryEntry() + ), + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.DirectoryEntry() + ), + ]; + client.innerApiCalls.queryDirectoryContents = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.queryDirectoryContents( + request, + ( + err?: Error | null, + result?: + | protos.google.cloud.dataform.v1beta1.IDirectoryEntry[] + | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.queryDirectoryContents as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.queryDirectoryContents as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes queryDirectoryContents with error', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest', + ['workspace'] + ); + request.workspace = defaultValue1; + const expectedHeaderRequestParams = `workspace=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.queryDirectoryContents = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.queryDirectoryContents(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.queryDirectoryContents as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.queryDirectoryContents as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes queryDirectoryContentsStream without error', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest', + ['workspace'] + ); + request.workspace = defaultValue1; + const expectedHeaderRequestParams = `workspace=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.DirectoryEntry() + ), + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.DirectoryEntry() + ), + generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.DirectoryEntry() + ), + ]; + client.descriptors.page.queryDirectoryContents.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.queryDirectoryContentsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.dataform.v1beta1.DirectoryEntry[] = + []; + stream.on( 'data', - (response: protos.google.cloud.dataform.v1beta1.Repository) => { + (response: protos.google.cloud.dataform.v1beta1.DirectoryEntry) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + ( + client.descriptors.page.queryDirectoryContents + .createStream as SinonStub + ) + .getCall(0) + .calledWith(client.innerApiCalls.queryDirectoryContents, request) + ); + assert( + ( + client.descriptors.page.queryDirectoryContents + .createStream as SinonStub + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes queryDirectoryContentsStream with error', async () => { + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest', + ['workspace'] + ); + request.workspace = defaultValue1; + const expectedHeaderRequestParams = `workspace=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.queryDirectoryContents.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.queryDirectoryContentsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.dataform.v1beta1.DirectoryEntry[] = + []; + stream.on( + 'data', + (response: protos.google.cloud.dataform.v1beta1.DirectoryEntry) => { responses.push(response); } ); @@ -4266,12 +7108,18 @@ describe('v1beta1.DataformClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listRepositories.createStream as SinonStub) + ( + client.descriptors.page.queryDirectoryContents + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listRepositories, request) + .calledWith(client.innerApiCalls.queryDirectoryContents, request) ); assert( - (client.descriptors.page.listRepositories.createStream as SinonStub) + ( + client.descriptors.page.queryDirectoryContents + .createStream as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -4279,48 +7127,53 @@ describe('v1beta1.DataformClient', () => { ); }); - it('uses async iteration with listRepositories without error', async () => { + it('uses async iteration with queryDirectoryContents without error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.ListRepositoriesRequest() + new protos.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.ListRepositoriesRequest', - ['parent'] + '.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest', + ['workspace'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.workspace = defaultValue1; + const expectedHeaderRequestParams = `workspace=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.Repository() + new protos.google.cloud.dataform.v1beta1.DirectoryEntry() ), generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.Repository() + new protos.google.cloud.dataform.v1beta1.DirectoryEntry() ), generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.Repository() + new protos.google.cloud.dataform.v1beta1.DirectoryEntry() ), ]; - client.descriptors.page.listRepositories.asyncIterate = + client.descriptors.page.queryDirectoryContents.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.cloud.dataform.v1beta1.IRepository[] = []; - const iterable = client.listRepositoriesAsync(request); + const responses: protos.google.cloud.dataform.v1beta1.IDirectoryEntry[] = + []; + const iterable = client.queryDirectoryContentsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listRepositories.asyncIterate as SinonStub + client.descriptors.page.queryDirectoryContents + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listRepositories.asyncIterate as SinonStub) + ( + client.descriptors.page.queryDirectoryContents + .asyncIterate as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -4328,27 +7181,27 @@ describe('v1beta1.DataformClient', () => { ); }); - it('uses async iteration with listRepositories with error', async () => { + it('uses async iteration with queryDirectoryContents with error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.ListRepositoriesRequest() + new protos.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.ListRepositoriesRequest', - ['parent'] + '.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest', + ['workspace'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.workspace = defaultValue1; + const expectedHeaderRequestParams = `workspace=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listRepositories.asyncIterate = + client.descriptors.page.queryDirectoryContents.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listRepositoriesAsync(request); + const iterable = client.queryDirectoryContentsAsync(request); await assert.rejects(async () => { - const responses: protos.google.cloud.dataform.v1beta1.IRepository[] = + const responses: protos.google.cloud.dataform.v1beta1.IDirectoryEntry[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -4356,12 +7209,16 @@ describe('v1beta1.DataformClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listRepositories.asyncIterate as SinonStub + client.descriptors.page.queryDirectoryContents + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listRepositories.asyncIterate as SinonStub) + ( + client.descriptors.page.queryDirectoryContents + .asyncIterate as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -4370,80 +7227,83 @@ describe('v1beta1.DataformClient', () => { }); }); - describe('listWorkspaces', () => { - it('invokes listWorkspaces without error', async () => { + describe('listReleaseConfigs', () => { + it('invokes listReleaseConfigs without error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.ListWorkspacesRequest() + new protos.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.ListWorkspacesRequest', + '.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.Workspace() + new protos.google.cloud.dataform.v1beta1.ReleaseConfig() ), generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.Workspace() + new protos.google.cloud.dataform.v1beta1.ReleaseConfig() ), generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.Workspace() + new protos.google.cloud.dataform.v1beta1.ReleaseConfig() ), ]; - client.innerApiCalls.listWorkspaces = stubSimpleCall(expectedResponse); - const [response] = await client.listWorkspaces(request); + client.innerApiCalls.listReleaseConfigs = + stubSimpleCall(expectedResponse); + const [response] = await client.listReleaseConfigs(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listWorkspaces as SinonStub + client.innerApiCalls.listReleaseConfigs as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listWorkspaces as SinonStub + client.innerApiCalls.listReleaseConfigs as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listWorkspaces without error using callback', async () => { + it('invokes listReleaseConfigs without error using callback', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.ListWorkspacesRequest() + new protos.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.ListWorkspacesRequest', + '.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.Workspace() + new protos.google.cloud.dataform.v1beta1.ReleaseConfig() ), generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.Workspace() + new protos.google.cloud.dataform.v1beta1.ReleaseConfig() ), generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.Workspace() + new protos.google.cloud.dataform.v1beta1.ReleaseConfig() ), ]; - client.innerApiCalls.listWorkspaces = + client.innerApiCalls.listReleaseConfigs = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listWorkspaces( + client.listReleaseConfigs( request, ( err?: Error | null, - result?: protos.google.cloud.dataform.v1beta1.IWorkspace[] | null + result?: + | protos.google.cloud.dataform.v1beta1.IReleaseConfig[] + | null ) => { if (err) { reject(err); @@ -4456,80 +7316,81 @@ describe('v1beta1.DataformClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listWorkspaces as SinonStub + client.innerApiCalls.listReleaseConfigs as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listWorkspaces as SinonStub + client.innerApiCalls.listReleaseConfigs as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listWorkspaces with error', async () => { + it('invokes listReleaseConfigs with error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.ListWorkspacesRequest() + new protos.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.ListWorkspacesRequest', + '.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listWorkspaces = stubSimpleCall( + client.innerApiCalls.listReleaseConfigs = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listWorkspaces(request), expectedError); + await assert.rejects(client.listReleaseConfigs(request), expectedError); const actualRequest = ( - client.innerApiCalls.listWorkspaces as SinonStub + client.innerApiCalls.listReleaseConfigs as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listWorkspaces as SinonStub + client.innerApiCalls.listReleaseConfigs as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listWorkspacesStream without error', async () => { + it('invokes listReleaseConfigsStream without error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.ListWorkspacesRequest() + new protos.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.ListWorkspacesRequest', + '.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.Workspace() + new protos.google.cloud.dataform.v1beta1.ReleaseConfig() ), generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.Workspace() + new protos.google.cloud.dataform.v1beta1.ReleaseConfig() ), generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.Workspace() + new protos.google.cloud.dataform.v1beta1.ReleaseConfig() ), ]; - client.descriptors.page.listWorkspaces.createStream = + client.descriptors.page.listReleaseConfigs.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listWorkspacesStream(request); + const stream = client.listReleaseConfigsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.dataform.v1beta1.Workspace[] = []; + const responses: protos.google.cloud.dataform.v1beta1.ReleaseConfig[] = + []; stream.on( 'data', - (response: protos.google.cloud.dataform.v1beta1.Workspace) => { + (response: protos.google.cloud.dataform.v1beta1.ReleaseConfig) => { responses.push(response); } ); @@ -4543,12 +7404,12 @@ describe('v1beta1.DataformClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listWorkspaces.createStream as SinonStub) + (client.descriptors.page.listReleaseConfigs.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listWorkspaces, request) + .calledWith(client.innerApiCalls.listReleaseConfigs, request) ); assert( - (client.descriptors.page.listWorkspaces.createStream as SinonStub) + (client.descriptors.page.listReleaseConfigs.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -4556,30 +7417,31 @@ describe('v1beta1.DataformClient', () => { ); }); - it('invokes listWorkspacesStream with error', async () => { + it('invokes listReleaseConfigsStream with error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.ListWorkspacesRequest() + new protos.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.ListWorkspacesRequest', + '.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listWorkspaces.createStream = + client.descriptors.page.listReleaseConfigs.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listWorkspacesStream(request); + const stream = client.listReleaseConfigsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.dataform.v1beta1.Workspace[] = []; + const responses: protos.google.cloud.dataform.v1beta1.ReleaseConfig[] = + []; stream.on( 'data', - (response: protos.google.cloud.dataform.v1beta1.Workspace) => { + (response: protos.google.cloud.dataform.v1beta1.ReleaseConfig) => { responses.push(response); } ); @@ -4592,12 +7454,12 @@ describe('v1beta1.DataformClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listWorkspaces.createStream as SinonStub) + (client.descriptors.page.listReleaseConfigs.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listWorkspaces, request) + .calledWith(client.innerApiCalls.listReleaseConfigs, request) ); assert( - (client.descriptors.page.listWorkspaces.createStream as SinonStub) + (client.descriptors.page.listReleaseConfigs.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -4605,48 +7467,49 @@ describe('v1beta1.DataformClient', () => { ); }); - it('uses async iteration with listWorkspaces without error', async () => { + it('uses async iteration with listReleaseConfigs without error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.ListWorkspacesRequest() + new protos.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.ListWorkspacesRequest', + '.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.Workspace() + new protos.google.cloud.dataform.v1beta1.ReleaseConfig() ), generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.Workspace() + new protos.google.cloud.dataform.v1beta1.ReleaseConfig() ), generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.Workspace() + new protos.google.cloud.dataform.v1beta1.ReleaseConfig() ), ]; - client.descriptors.page.listWorkspaces.asyncIterate = + client.descriptors.page.listReleaseConfigs.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.cloud.dataform.v1beta1.IWorkspace[] = []; - const iterable = client.listWorkspacesAsync(request); + const responses: protos.google.cloud.dataform.v1beta1.IReleaseConfig[] = + []; + const iterable = client.listReleaseConfigsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listWorkspaces.asyncIterate as SinonStub + client.descriptors.page.listReleaseConfigs.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listWorkspaces.asyncIterate as SinonStub) + (client.descriptors.page.listReleaseConfigs.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -4654,39 +7517,40 @@ describe('v1beta1.DataformClient', () => { ); }); - it('uses async iteration with listWorkspaces with error', async () => { + it('uses async iteration with listReleaseConfigs with error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.ListWorkspacesRequest() + new protos.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.ListWorkspacesRequest', + '.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listWorkspaces.asyncIterate = + client.descriptors.page.listReleaseConfigs.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listWorkspacesAsync(request); + const iterable = client.listReleaseConfigsAsync(request); await assert.rejects(async () => { - const responses: protos.google.cloud.dataform.v1beta1.IWorkspace[] = []; + const responses: protos.google.cloud.dataform.v1beta1.IReleaseConfig[] = + []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( ( - client.descriptors.page.listWorkspaces.asyncIterate as SinonStub + client.descriptors.page.listReleaseConfigs.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listWorkspaces.asyncIterate as SinonStub) + (client.descriptors.page.listReleaseConfigs.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -4695,82 +7559,82 @@ describe('v1beta1.DataformClient', () => { }); }); - describe('queryDirectoryContents', () => { - it('invokes queryDirectoryContents without error', async () => { + describe('listCompilationResults', () => { + it('invokes listCompilationResults without error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest() + new protos.google.cloud.dataform.v1beta1.ListCompilationResultsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest', - ['workspace'] + '.google.cloud.dataform.v1beta1.ListCompilationResultsRequest', + ['parent'] ); - request.workspace = defaultValue1; - const expectedHeaderRequestParams = `workspace=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry() + new protos.google.cloud.dataform.v1beta1.CompilationResult() ), generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry() + new protos.google.cloud.dataform.v1beta1.CompilationResult() ), generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry() + new protos.google.cloud.dataform.v1beta1.CompilationResult() ), ]; - client.innerApiCalls.queryDirectoryContents = + client.innerApiCalls.listCompilationResults = stubSimpleCall(expectedResponse); - const [response] = await client.queryDirectoryContents(request); + const [response] = await client.listCompilationResults(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.queryDirectoryContents as SinonStub + client.innerApiCalls.listCompilationResults as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.queryDirectoryContents as SinonStub + client.innerApiCalls.listCompilationResults as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes queryDirectoryContents without error using callback', async () => { + it('invokes listCompilationResults without error using callback', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest() + new protos.google.cloud.dataform.v1beta1.ListCompilationResultsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest', - ['workspace'] + '.google.cloud.dataform.v1beta1.ListCompilationResultsRequest', + ['parent'] ); - request.workspace = defaultValue1; - const expectedHeaderRequestParams = `workspace=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry() + new protos.google.cloud.dataform.v1beta1.CompilationResult() ), generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry() + new protos.google.cloud.dataform.v1beta1.CompilationResult() ), generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry() + new protos.google.cloud.dataform.v1beta1.CompilationResult() ), ]; - client.innerApiCalls.queryDirectoryContents = + client.innerApiCalls.listCompilationResults = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.queryDirectoryContents( + client.listCompilationResults( request, ( err?: Error | null, result?: - | protos.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.IDirectoryEntry[] + | protos.google.cloud.dataform.v1beta1.ICompilationResult[] | null ) => { if (err) { @@ -4784,85 +7648,85 @@ describe('v1beta1.DataformClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.queryDirectoryContents as SinonStub + client.innerApiCalls.listCompilationResults as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.queryDirectoryContents as SinonStub + client.innerApiCalls.listCompilationResults as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes queryDirectoryContents with error', async () => { + it('invokes listCompilationResults with error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest() + new protos.google.cloud.dataform.v1beta1.ListCompilationResultsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest', - ['workspace'] + '.google.cloud.dataform.v1beta1.ListCompilationResultsRequest', + ['parent'] ); - request.workspace = defaultValue1; - const expectedHeaderRequestParams = `workspace=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.queryDirectoryContents = stubSimpleCall( + client.innerApiCalls.listCompilationResults = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.queryDirectoryContents(request), + client.listCompilationResults(request), expectedError ); const actualRequest = ( - client.innerApiCalls.queryDirectoryContents as SinonStub + client.innerApiCalls.listCompilationResults as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.queryDirectoryContents as SinonStub + client.innerApiCalls.listCompilationResults as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes queryDirectoryContentsStream without error', async () => { + it('invokes listCompilationResultsStream without error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest() + new protos.google.cloud.dataform.v1beta1.ListCompilationResultsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest', - ['workspace'] + '.google.cloud.dataform.v1beta1.ListCompilationResultsRequest', + ['parent'] ); - request.workspace = defaultValue1; - const expectedHeaderRequestParams = `workspace=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry() + new protos.google.cloud.dataform.v1beta1.CompilationResult() ), generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry() + new protos.google.cloud.dataform.v1beta1.CompilationResult() ), generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry() + new protos.google.cloud.dataform.v1beta1.CompilationResult() ), ]; - client.descriptors.page.queryDirectoryContents.createStream = + client.descriptors.page.listCompilationResults.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.queryDirectoryContentsStream(request); + const stream = client.listCompilationResultsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry[] = + const responses: protos.google.cloud.dataform.v1beta1.CompilationResult[] = []; stream.on( 'data', ( - response: protos.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry + response: protos.google.cloud.dataform.v1beta1.CompilationResult ) => { responses.push(response); } @@ -4878,15 +7742,15 @@ describe('v1beta1.DataformClient', () => { assert.deepStrictEqual(responses, expectedResponse); assert( ( - client.descriptors.page.queryDirectoryContents + client.descriptors.page.listCompilationResults .createStream as SinonStub ) .getCall(0) - .calledWith(client.innerApiCalls.queryDirectoryContents, request) + .calledWith(client.innerApiCalls.listCompilationResults, request) ); assert( ( - client.descriptors.page.queryDirectoryContents + client.descriptors.page.listCompilationResults .createStream as SinonStub ) .getCall(0) @@ -4896,32 +7760,32 @@ describe('v1beta1.DataformClient', () => { ); }); - it('invokes queryDirectoryContentsStream with error', async () => { + it('invokes listCompilationResultsStream with error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest() + new protos.google.cloud.dataform.v1beta1.ListCompilationResultsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest', - ['workspace'] + '.google.cloud.dataform.v1beta1.ListCompilationResultsRequest', + ['parent'] ); - request.workspace = defaultValue1; - const expectedHeaderRequestParams = `workspace=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.queryDirectoryContents.createStream = + client.descriptors.page.listCompilationResults.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.queryDirectoryContentsStream(request); + const stream = client.listCompilationResultsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry[] = + const responses: protos.google.cloud.dataform.v1beta1.CompilationResult[] = []; stream.on( 'data', ( - response: protos.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry + response: protos.google.cloud.dataform.v1beta1.CompilationResult ) => { responses.push(response); } @@ -4936,15 +7800,15 @@ describe('v1beta1.DataformClient', () => { await assert.rejects(promise, expectedError); assert( ( - client.descriptors.page.queryDirectoryContents + client.descriptors.page.listCompilationResults .createStream as SinonStub ) .getCall(0) - .calledWith(client.innerApiCalls.queryDirectoryContents, request) + .calledWith(client.innerApiCalls.listCompilationResults, request) ); assert( ( - client.descriptors.page.queryDirectoryContents + client.descriptors.page.listCompilationResults .createStream as SinonStub ) .getCall(0) @@ -4954,51 +7818,51 @@ describe('v1beta1.DataformClient', () => { ); }); - it('uses async iteration with queryDirectoryContents without error', async () => { + it('uses async iteration with listCompilationResults without error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest() + new protos.google.cloud.dataform.v1beta1.ListCompilationResultsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest', - ['workspace'] + '.google.cloud.dataform.v1beta1.ListCompilationResultsRequest', + ['parent'] ); - request.workspace = defaultValue1; - const expectedHeaderRequestParams = `workspace=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry() + new protos.google.cloud.dataform.v1beta1.CompilationResult() ), generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry() + new protos.google.cloud.dataform.v1beta1.CompilationResult() ), generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry() + new protos.google.cloud.dataform.v1beta1.CompilationResult() ), ]; - client.descriptors.page.queryDirectoryContents.asyncIterate = + client.descriptors.page.listCompilationResults.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.IDirectoryEntry[] = + const responses: protos.google.cloud.dataform.v1beta1.ICompilationResult[] = []; - const iterable = client.queryDirectoryContentsAsync(request); + const iterable = client.listCompilationResultsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.queryDirectoryContents + client.descriptors.page.listCompilationResults .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( ( - client.descriptors.page.queryDirectoryContents + client.descriptors.page.listCompilationResults .asyncIterate as SinonStub ) .getCall(0) @@ -5008,27 +7872,27 @@ describe('v1beta1.DataformClient', () => { ); }); - it('uses async iteration with queryDirectoryContents with error', async () => { + it('uses async iteration with listCompilationResults with error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest() + new protos.google.cloud.dataform.v1beta1.ListCompilationResultsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest', - ['workspace'] + '.google.cloud.dataform.v1beta1.ListCompilationResultsRequest', + ['parent'] ); - request.workspace = defaultValue1; - const expectedHeaderRequestParams = `workspace=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.queryDirectoryContents.asyncIterate = + client.descriptors.page.listCompilationResults.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.queryDirectoryContentsAsync(request); + const iterable = client.listCompilationResultsAsync(request); await assert.rejects(async () => { - const responses: protos.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.IDirectoryEntry[] = + const responses: protos.google.cloud.dataform.v1beta1.ICompilationResult[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -5036,14 +7900,14 @@ describe('v1beta1.DataformClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.queryDirectoryContents + client.descriptors.page.listCompilationResults .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( ( - client.descriptors.page.queryDirectoryContents + client.descriptors.page.listCompilationResults .asyncIterate as SinonStub ) .getCall(0) @@ -5054,82 +7918,82 @@ describe('v1beta1.DataformClient', () => { }); }); - describe('listCompilationResults', () => { - it('invokes listCompilationResults without error', async () => { + describe('queryCompilationResultActions', () => { + it('invokes queryCompilationResultActions without error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.ListCompilationResultsRequest() + new protos.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.ListCompilationResultsRequest', - ['parent'] + '.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.CompilationResult() + new protos.google.cloud.dataform.v1beta1.CompilationResultAction() ), generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.CompilationResult() + new protos.google.cloud.dataform.v1beta1.CompilationResultAction() ), generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.CompilationResult() + new protos.google.cloud.dataform.v1beta1.CompilationResultAction() ), ]; - client.innerApiCalls.listCompilationResults = + client.innerApiCalls.queryCompilationResultActions = stubSimpleCall(expectedResponse); - const [response] = await client.listCompilationResults(request); + const [response] = await client.queryCompilationResultActions(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listCompilationResults as SinonStub + client.innerApiCalls.queryCompilationResultActions as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listCompilationResults as SinonStub + client.innerApiCalls.queryCompilationResultActions as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listCompilationResults without error using callback', async () => { + it('invokes queryCompilationResultActions without error using callback', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.ListCompilationResultsRequest() + new protos.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.ListCompilationResultsRequest', - ['parent'] + '.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.CompilationResult() + new protos.google.cloud.dataform.v1beta1.CompilationResultAction() ), generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.CompilationResult() + new protos.google.cloud.dataform.v1beta1.CompilationResultAction() ), generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.CompilationResult() + new protos.google.cloud.dataform.v1beta1.CompilationResultAction() ), ]; - client.innerApiCalls.listCompilationResults = + client.innerApiCalls.queryCompilationResultActions = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listCompilationResults( + client.queryCompilationResultActions( request, ( err?: Error | null, result?: - | protos.google.cloud.dataform.v1beta1.ICompilationResult[] + | protos.google.cloud.dataform.v1beta1.ICompilationResultAction[] | null ) => { if (err) { @@ -5143,85 +8007,85 @@ describe('v1beta1.DataformClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listCompilationResults as SinonStub + client.innerApiCalls.queryCompilationResultActions as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listCompilationResults as SinonStub + client.innerApiCalls.queryCompilationResultActions as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listCompilationResults with error', async () => { + it('invokes queryCompilationResultActions with error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.ListCompilationResultsRequest() + new protos.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.ListCompilationResultsRequest', - ['parent'] + '.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listCompilationResults = stubSimpleCall( + client.innerApiCalls.queryCompilationResultActions = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.listCompilationResults(request), + client.queryCompilationResultActions(request), expectedError ); const actualRequest = ( - client.innerApiCalls.listCompilationResults as SinonStub + client.innerApiCalls.queryCompilationResultActions as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listCompilationResults as SinonStub + client.innerApiCalls.queryCompilationResultActions as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listCompilationResultsStream without error', async () => { + it('invokes queryCompilationResultActionsStream without error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.ListCompilationResultsRequest() + new protos.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.ListCompilationResultsRequest', - ['parent'] + '.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.CompilationResult() + new protos.google.cloud.dataform.v1beta1.CompilationResultAction() ), generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.CompilationResult() + new protos.google.cloud.dataform.v1beta1.CompilationResultAction() ), generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.CompilationResult() + new protos.google.cloud.dataform.v1beta1.CompilationResultAction() ), ]; - client.descriptors.page.listCompilationResults.createStream = + client.descriptors.page.queryCompilationResultActions.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listCompilationResultsStream(request); + const stream = client.queryCompilationResultActionsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.dataform.v1beta1.CompilationResult[] = + const responses: protos.google.cloud.dataform.v1beta1.CompilationResultAction[] = []; stream.on( 'data', ( - response: protos.google.cloud.dataform.v1beta1.CompilationResult + response: protos.google.cloud.dataform.v1beta1.CompilationResultAction ) => { responses.push(response); } @@ -5237,15 +8101,18 @@ describe('v1beta1.DataformClient', () => { assert.deepStrictEqual(responses, expectedResponse); assert( ( - client.descriptors.page.listCompilationResults + client.descriptors.page.queryCompilationResultActions .createStream as SinonStub ) .getCall(0) - .calledWith(client.innerApiCalls.listCompilationResults, request) + .calledWith( + client.innerApiCalls.queryCompilationResultActions, + request + ) ); assert( ( - client.descriptors.page.listCompilationResults + client.descriptors.page.queryCompilationResultActions .createStream as SinonStub ) .getCall(0) @@ -5255,32 +8122,32 @@ describe('v1beta1.DataformClient', () => { ); }); - it('invokes listCompilationResultsStream with error', async () => { + it('invokes queryCompilationResultActionsStream with error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.ListCompilationResultsRequest() + new protos.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.ListCompilationResultsRequest', - ['parent'] + '.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listCompilationResults.createStream = + client.descriptors.page.queryCompilationResultActions.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listCompilationResultsStream(request); + const stream = client.queryCompilationResultActionsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.dataform.v1beta1.CompilationResult[] = + const responses: protos.google.cloud.dataform.v1beta1.CompilationResultAction[] = []; stream.on( 'data', ( - response: protos.google.cloud.dataform.v1beta1.CompilationResult + response: protos.google.cloud.dataform.v1beta1.CompilationResultAction ) => { responses.push(response); } @@ -5295,15 +8162,18 @@ describe('v1beta1.DataformClient', () => { await assert.rejects(promise, expectedError); assert( ( - client.descriptors.page.listCompilationResults + client.descriptors.page.queryCompilationResultActions .createStream as SinonStub ) .getCall(0) - .calledWith(client.innerApiCalls.listCompilationResults, request) + .calledWith( + client.innerApiCalls.queryCompilationResultActions, + request + ) ); assert( ( - client.descriptors.page.listCompilationResults + client.descriptors.page.queryCompilationResultActions .createStream as SinonStub ) .getCall(0) @@ -5313,51 +8183,51 @@ describe('v1beta1.DataformClient', () => { ); }); - it('uses async iteration with listCompilationResults without error', async () => { + it('uses async iteration with queryCompilationResultActions without error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.ListCompilationResultsRequest() + new protos.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.ListCompilationResultsRequest', - ['parent'] + '.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.CompilationResult() + new protos.google.cloud.dataform.v1beta1.CompilationResultAction() ), generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.CompilationResult() + new protos.google.cloud.dataform.v1beta1.CompilationResultAction() ), generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.CompilationResult() + new protos.google.cloud.dataform.v1beta1.CompilationResultAction() ), ]; - client.descriptors.page.listCompilationResults.asyncIterate = + client.descriptors.page.queryCompilationResultActions.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.cloud.dataform.v1beta1.ICompilationResult[] = + const responses: protos.google.cloud.dataform.v1beta1.ICompilationResultAction[] = []; - const iterable = client.listCompilationResultsAsync(request); + const iterable = client.queryCompilationResultActionsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listCompilationResults + client.descriptors.page.queryCompilationResultActions .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( ( - client.descriptors.page.listCompilationResults + client.descriptors.page.queryCompilationResultActions .asyncIterate as SinonStub ) .getCall(0) @@ -5367,27 +8237,27 @@ describe('v1beta1.DataformClient', () => { ); }); - it('uses async iteration with listCompilationResults with error', async () => { + it('uses async iteration with queryCompilationResultActions with error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.ListCompilationResultsRequest() + new protos.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.ListCompilationResultsRequest', - ['parent'] + '.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listCompilationResults.asyncIterate = + client.descriptors.page.queryCompilationResultActions.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listCompilationResultsAsync(request); + const iterable = client.queryCompilationResultActionsAsync(request); await assert.rejects(async () => { - const responses: protos.google.cloud.dataform.v1beta1.ICompilationResult[] = + const responses: protos.google.cloud.dataform.v1beta1.ICompilationResultAction[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -5395,14 +8265,14 @@ describe('v1beta1.DataformClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listCompilationResults + client.descriptors.page.queryCompilationResultActions .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( ( - client.descriptors.page.listCompilationResults + client.descriptors.page.queryCompilationResultActions .asyncIterate as SinonStub ) .getCall(0) @@ -5413,82 +8283,82 @@ describe('v1beta1.DataformClient', () => { }); }); - describe('queryCompilationResultActions', () => { - it('invokes queryCompilationResultActions without error', async () => { + describe('listWorkflowConfigs', () => { + it('invokes listWorkflowConfigs without error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest() + new protos.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest', - ['name'] + '.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.CompilationResultAction() + new protos.google.cloud.dataform.v1beta1.WorkflowConfig() ), generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.CompilationResultAction() + new protos.google.cloud.dataform.v1beta1.WorkflowConfig() ), generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.CompilationResultAction() + new protos.google.cloud.dataform.v1beta1.WorkflowConfig() ), ]; - client.innerApiCalls.queryCompilationResultActions = + client.innerApiCalls.listWorkflowConfigs = stubSimpleCall(expectedResponse); - const [response] = await client.queryCompilationResultActions(request); + const [response] = await client.listWorkflowConfigs(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.queryCompilationResultActions as SinonStub + client.innerApiCalls.listWorkflowConfigs as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.queryCompilationResultActions as SinonStub + client.innerApiCalls.listWorkflowConfigs as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes queryCompilationResultActions without error using callback', async () => { + it('invokes listWorkflowConfigs without error using callback', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest() + new protos.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest', - ['name'] + '.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.CompilationResultAction() + new protos.google.cloud.dataform.v1beta1.WorkflowConfig() ), generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.CompilationResultAction() + new protos.google.cloud.dataform.v1beta1.WorkflowConfig() ), generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.CompilationResultAction() + new protos.google.cloud.dataform.v1beta1.WorkflowConfig() ), ]; - client.innerApiCalls.queryCompilationResultActions = + client.innerApiCalls.listWorkflowConfigs = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.queryCompilationResultActions( + client.listWorkflowConfigs( request, ( err?: Error | null, result?: - | protos.google.cloud.dataform.v1beta1.ICompilationResultAction[] + | protos.google.cloud.dataform.v1beta1.IWorkflowConfig[] | null ) => { if (err) { @@ -5502,86 +8372,81 @@ describe('v1beta1.DataformClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.queryCompilationResultActions as SinonStub + client.innerApiCalls.listWorkflowConfigs as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.queryCompilationResultActions as SinonStub + client.innerApiCalls.listWorkflowConfigs as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes queryCompilationResultActions with error', async () => { + it('invokes listWorkflowConfigs with error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest() + new protos.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest', - ['name'] + '.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.queryCompilationResultActions = stubSimpleCall( + client.innerApiCalls.listWorkflowConfigs = stubSimpleCall( undefined, expectedError ); - await assert.rejects( - client.queryCompilationResultActions(request), - expectedError - ); + await assert.rejects(client.listWorkflowConfigs(request), expectedError); const actualRequest = ( - client.innerApiCalls.queryCompilationResultActions as SinonStub + client.innerApiCalls.listWorkflowConfigs as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.queryCompilationResultActions as SinonStub + client.innerApiCalls.listWorkflowConfigs as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes queryCompilationResultActionsStream without error', async () => { + it('invokes listWorkflowConfigsStream without error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest() + new protos.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest', - ['name'] + '.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.CompilationResultAction() + new protos.google.cloud.dataform.v1beta1.WorkflowConfig() ), generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.CompilationResultAction() + new protos.google.cloud.dataform.v1beta1.WorkflowConfig() ), generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.CompilationResultAction() + new protos.google.cloud.dataform.v1beta1.WorkflowConfig() ), ]; - client.descriptors.page.queryCompilationResultActions.createStream = + client.descriptors.page.listWorkflowConfigs.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.queryCompilationResultActionsStream(request); + const stream = client.listWorkflowConfigsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.dataform.v1beta1.CompilationResultAction[] = + const responses: protos.google.cloud.dataform.v1beta1.WorkflowConfig[] = []; stream.on( 'data', - ( - response: protos.google.cloud.dataform.v1beta1.CompilationResultAction - ) => { + (response: protos.google.cloud.dataform.v1beta1.WorkflowConfig) => { responses.push(response); } ); @@ -5595,21 +8460,12 @@ describe('v1beta1.DataformClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - ( - client.descriptors.page.queryCompilationResultActions - .createStream as SinonStub - ) + (client.descriptors.page.listWorkflowConfigs.createStream as SinonStub) .getCall(0) - .calledWith( - client.innerApiCalls.queryCompilationResultActions, - request - ) + .calledWith(client.innerApiCalls.listWorkflowConfigs, request) ); assert( - ( - client.descriptors.page.queryCompilationResultActions - .createStream as SinonStub - ) + (client.descriptors.page.listWorkflowConfigs.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -5617,33 +8473,31 @@ describe('v1beta1.DataformClient', () => { ); }); - it('invokes queryCompilationResultActionsStream with error', async () => { + it('invokes listWorkflowConfigsStream with error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest() + new protos.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest', - ['name'] + '.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.queryCompilationResultActions.createStream = + client.descriptors.page.listWorkflowConfigs.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.queryCompilationResultActionsStream(request); + const stream = client.listWorkflowConfigsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.dataform.v1beta1.CompilationResultAction[] = + const responses: protos.google.cloud.dataform.v1beta1.WorkflowConfig[] = []; stream.on( 'data', - ( - response: protos.google.cloud.dataform.v1beta1.CompilationResultAction - ) => { + (response: protos.google.cloud.dataform.v1beta1.WorkflowConfig) => { responses.push(response); } ); @@ -5656,21 +8510,12 @@ describe('v1beta1.DataformClient', () => { }); await assert.rejects(promise, expectedError); assert( - ( - client.descriptors.page.queryCompilationResultActions - .createStream as SinonStub - ) + (client.descriptors.page.listWorkflowConfigs.createStream as SinonStub) .getCall(0) - .calledWith( - client.innerApiCalls.queryCompilationResultActions, - request - ) + .calledWith(client.innerApiCalls.listWorkflowConfigs, request) ); assert( - ( - client.descriptors.page.queryCompilationResultActions - .createStream as SinonStub - ) + (client.descriptors.page.listWorkflowConfigs.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -5678,53 +8523,49 @@ describe('v1beta1.DataformClient', () => { ); }); - it('uses async iteration with queryCompilationResultActions without error', async () => { + it('uses async iteration with listWorkflowConfigs without error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest() + new protos.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest', - ['name'] + '.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.CompilationResultAction() + new protos.google.cloud.dataform.v1beta1.WorkflowConfig() ), generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.CompilationResultAction() + new protos.google.cloud.dataform.v1beta1.WorkflowConfig() ), generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.CompilationResultAction() + new protos.google.cloud.dataform.v1beta1.WorkflowConfig() ), ]; - client.descriptors.page.queryCompilationResultActions.asyncIterate = + client.descriptors.page.listWorkflowConfigs.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.cloud.dataform.v1beta1.ICompilationResultAction[] = + const responses: protos.google.cloud.dataform.v1beta1.IWorkflowConfig[] = []; - const iterable = client.queryCompilationResultActionsAsync(request); + const iterable = client.listWorkflowConfigsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.queryCompilationResultActions - .asyncIterate as SinonStub + client.descriptors.page.listWorkflowConfigs.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - ( - client.descriptors.page.queryCompilationResultActions - .asyncIterate as SinonStub - ) + (client.descriptors.page.listWorkflowConfigs.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -5732,27 +8573,27 @@ describe('v1beta1.DataformClient', () => { ); }); - it('uses async iteration with queryCompilationResultActions with error', async () => { + it('uses async iteration with listWorkflowConfigs with error', async () => { const client = new dataformModule.v1beta1.DataformClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest() + new protos.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest', - ['name'] + '.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.queryCompilationResultActions.asyncIterate = + client.descriptors.page.listWorkflowConfigs.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.queryCompilationResultActionsAsync(request); + const iterable = client.listWorkflowConfigsAsync(request); await assert.rejects(async () => { - const responses: protos.google.cloud.dataform.v1beta1.ICompilationResultAction[] = + const responses: protos.google.cloud.dataform.v1beta1.IWorkflowConfig[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -5760,16 +8601,12 @@ describe('v1beta1.DataformClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.queryCompilationResultActions - .asyncIterate as SinonStub + client.descriptors.page.listWorkflowConfigs.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - ( - client.descriptors.page.queryCompilationResultActions - .asyncIterate as SinonStub - ) + (client.descriptors.page.listWorkflowConfigs.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -7167,6 +10004,82 @@ describe('v1beta1.DataformClient', () => { }); }); + describe('releaseConfig', () => { + const fakePath = '/rendered/path/releaseConfig'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + repository: 'repositoryValue', + release_config: 'releaseConfigValue', + }; + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.releaseConfigPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.releaseConfigPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('releaseConfigPath', () => { + const result = client.releaseConfigPath( + 'projectValue', + 'locationValue', + 'repositoryValue', + 'releaseConfigValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.releaseConfigPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromReleaseConfigName', () => { + const result = client.matchProjectFromReleaseConfigName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.releaseConfigPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromReleaseConfigName', () => { + const result = client.matchLocationFromReleaseConfigName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.releaseConfigPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchRepositoryFromReleaseConfigName', () => { + const result = client.matchRepositoryFromReleaseConfigName(fakePath); + assert.strictEqual(result, 'repositoryValue'); + assert( + (client.pathTemplates.releaseConfigPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchReleaseConfigFromReleaseConfigName', () => { + const result = client.matchReleaseConfigFromReleaseConfigName(fakePath); + assert.strictEqual(result, 'releaseConfigValue'); + assert( + (client.pathTemplates.releaseConfigPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('repository', () => { const fakePath = '/rendered/path/repository'; const expectedParameters = { @@ -7231,6 +10144,147 @@ describe('v1beta1.DataformClient', () => { }); }); + describe('secretVersion', () => { + const fakePath = '/rendered/path/secretVersion'; + const expectedParameters = { + project: 'projectValue', + secret: 'secretValue', + version: 'versionValue', + }; + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.secretVersionPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.secretVersionPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('secretVersionPath', () => { + const result = client.secretVersionPath( + 'projectValue', + 'secretValue', + 'versionValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.secretVersionPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSecretVersionName', () => { + const result = client.matchProjectFromSecretVersionName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.secretVersionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSecretFromSecretVersionName', () => { + const result = client.matchSecretFromSecretVersionName(fakePath); + assert.strictEqual(result, 'secretValue'); + assert( + (client.pathTemplates.secretVersionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchVersionFromSecretVersionName', () => { + const result = client.matchVersionFromSecretVersionName(fakePath); + assert.strictEqual(result, 'versionValue'); + assert( + (client.pathTemplates.secretVersionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('workflowConfig', () => { + const fakePath = '/rendered/path/workflowConfig'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + repository: 'repositoryValue', + workflow_config: 'workflowConfigValue', + }; + const client = new dataformModule.v1beta1.DataformClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.workflowConfigPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.workflowConfigPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('workflowConfigPath', () => { + const result = client.workflowConfigPath( + 'projectValue', + 'locationValue', + 'repositoryValue', + 'workflowConfigValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.workflowConfigPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromWorkflowConfigName', () => { + const result = client.matchProjectFromWorkflowConfigName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.workflowConfigPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromWorkflowConfigName', () => { + const result = client.matchLocationFromWorkflowConfigName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.workflowConfigPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchRepositoryFromWorkflowConfigName', () => { + const result = client.matchRepositoryFromWorkflowConfigName(fakePath); + assert.strictEqual(result, 'repositoryValue'); + assert( + (client.pathTemplates.workflowConfigPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchWorkflowConfigFromWorkflowConfigName', () => { + const result = + client.matchWorkflowConfigFromWorkflowConfigName(fakePath); + assert.strictEqual(result, 'workflowConfigValue'); + assert( + (client.pathTemplates.workflowConfigPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('workflowInvocation', () => { const fakePath = '/rendered/path/workflowInvocation'; const expectedParameters = {